A stock’s beta is 1.2. What slope do you get if you regress the market on the stock?
Statistics
Easy
A regression puzzle about the slope of Y on X and the slope of X on Y.
Try it first, then open the solution.
NoteCode: regress both ways
import numpy as np
rng = np.random.default_rng(1)
market = rng.normal(0, 1, 100_000)
stock = 1.2 * market + rng.normal(0, 1.6, 100_000)
stock_on_market = np.polyfit(market, stock, 1)[0]
market_on_stock = np.polyfit(stock, market, 1)[0]
by_equation_3 = stock_on_market * market.var() / stock.var()
print(round(stock_on_market, 2), round(market_on_stock, 2))
print(round(by_equation_3, 2))1.2 0.3
0.3