Simple regression
Fit by minimising the sum of squared residuals. The solution is
The fitted line always passes through . In finance, of a stock's returns on the market's returns is the stock's beta.
Because , the predicted is fewer standard deviations from its mean than is. This is regression to the mean, and it is why regressing on and on give two different lines.
Multiple regression and its geometry
With a design matrix (one column per regressor, including a column of ones),
Geometrically, is the orthogonal projection of onto the space spanned by the columns of . The residuals are orthogonal to every column: . With an intercept, they therefore sum to zero.
Each coefficient is a partial effect: the change in for a one-unit change in that regressor holding the others fixed. Equivalently (Frisch–Waugh–Lovell), is the slope from regressing on the part of that the other regressors cannot explain.
R² and what it hides
In simple regression . Some cautions:
- Adding a regressor never lowers in-sample , even if it is pure noise. Use adjusted or out-of-sample tests.
- A low is normal in finance. Predicting daily returns with would be extremely valuable.
- A high between two trending series is often spurious: regress one random walk on another and you will usually find a "significant" relationship.
Worked example
a stock's beta
A stock's daily returns have a standard deviation of 2%, the market's 1%, and their correlation is 0.3. What are the stock's beta and the regression ? How much of the stock's variance is idiosyncratic?
Show solutionHide solution
, and .
The market explains (in units of ) of the stock's total variance of , which is . The other is idiosyncratic.
Omitted variables and correlated regressors
If the truth is but you leave out , your estimate of converges to
The coefficient picks up the effect of whatever correlated variable is missing. Conversely, including two highly correlated regressors leaves the fit fine but makes each coefficient's standard error large, because the data cannot tell the two apart.
Worked example
omitted-variable bias
Returns follow , where . You regress on alone. What slope do you expect?
Show solutionHide solution
. You would overstate the effect of by 20% because it partly stands in for .
Knowledge check
A simple regression of y on x has R² = 0.25. What is the absolute correlation between x and y?
Knowledge check
You rescale a regressor from decimals to percentages (multiply it by 100). What happens to its slope and t-statistic?
Knowledge check
You add a regressor of pure random noise to a regression. What happens to the in-sample R²?
Practice problems
Finished reading?
Answer the 3 knowledge checks to complete this lesson (0 done).