A regression of a fund’s monthly excess returns on the market’s excess returns gives a slope that is often read as the fund’s market beta. Computing that slope is pure geometry and works for any data set. Whether it estimates a definite population coefficient, how uncertain it is, and whether it says anything about what would happen if the fund’s market exposure changed are separate questions, and each needs assumptions about errors that are never observed. This lesson derives ordinary least squares as an orthogonal projection, states the exogeneity and identification assumptions that interpretation needs, derives the omitted variable formula, and shows how heteroskedasticity changes the covariance of the estimator but not the fit.
Key terms
Ordinary least squares
Definition Let be a vector of responses and an design matrix whose columns are the regressors, often including a column of ones for an intercept. An ordinary least squares estimate is any that minimizes, over , the sum of squared residuals
The fitted vector is the orthogonal projection of onto the column space , so a minimizer always exists and the fitted vector is unique. If has full column rank , which requires , the minimizer itself is unique and
If the columns are linearly dependent, the minimizers form the set , and the pseudoinverse solution is the one with the smallest Euclidean norm. With an intercept and one regressor, so that has rows , the slope and intercept are
Nothing in this definition involves probability.
In plain words Least squares picks the combination of the regressor columns that comes closest to the response vector in Euclidean distance. The closest fitted vector is always unique. The coefficients that produce it are unique only when no column is a linear combination of the others.
Example Take the constructed predictor values , , , and responses , , , . The means are and . The centered predictors , , , have squared sum , and their products with the centered responses , , , are , , , , with sum . So and , with fitted values , , , and sum of squared residuals . The line with intercept and slope fits , , , and has sum of squared residuals , which is plus , the squared distance between the two fitted vectors.
Normal equations
Definition The normal equations of the least squares problem are
The objective has gradient and Hessian , which is positive semidefinite, so is convex and minimizes if and only if it solves the normal equations. Equivalently, the residual is orthogonal to every column of , that is, . Writing and using gives, for every ,
which proves the minimum directly. The normal equations always have a solution. The matrix is invertible exactly when has full column rank, and then it is positive definite and the solution is unique. When contains a column of ones, the corresponding equation says that the residuals sum to zero, and with one regressor the fitted line passes through the point of means .
In plain words At the best fit, nothing linear is left in the residual that a regressor column could still explain. If the residual had a nonzero dot product with some column, moving the fit a little along that column would reduce the squared error.
Example For the four data points above,
so for an intercept and a slope the normal equations are and . The values and satisfy both, since and . The residuals , , , sum to zero, and weighted by the predictors they give . These two zero sums are the two normal equations.
Exogeneity
Definition Consider the linear model
with a random design , an unknown coefficient vector and an error vector whose entries are integrable. The regressors are strictly exogenous if , so every error has conditional mean zero given the regressors of all observations. If has full column rank, substituting the model into the formula for gives
and therefore . This is conditional unbiasedness, and it gives whenever is integrable. A weaker condition, contemporaneous exogeneity, asks only that the error of each observation have mean zero and be uncorrelated with the regressors of the same observation. It does not by itself give unbiasedness. Together with independent and identically distributed observations, finite second moments and a nonsingular second-moment matrix of the regressors, it gives consistency of through the law of large numbers, a result stated here without the details. In an autoregression the regressor depends on earlier errors, so strict exogeneity fails while contemporaneous exogeneity can still hold.
In plain words Exogeneity says that the unobserved part of the response has no systematic component that lines up with the regressors. It is an assumption about errors that are never seen. The fitted residuals cannot confirm it, because they are orthogonal to the regressors by construction in every data set.
Example Take the model with the predictor values , , , . The error of the estimated slope is a weighted sum of the errors,
with . Under strict exogeneity its conditional mean is zero. Since the weights sum to zero, an error mean that is the same constant for every observation shifts only the intercept. If instead , then , because . The fit then reports a slope that is too large by on average, and nothing in the residuals reveals it.
Statistical identification
Definition A parameter is identified in a statistical model if the distribution of the observable data determines its value uniquely, so that two different parameter values allowed by the model never produce the same distribution of observables. For a pair with a random regressor vector and a response , both with finite second moments, and a nonsingular matrix , the coefficient of the best linear predictor of given ,
is identified. If , then
so the projection coefficient equals the model coefficient exactly when . If is singular, some regressor is almost surely a linear combination of the others, and only certain combinations of the coefficients are identified. Reading as the change in caused by an intervention on needs further assumptions or a research design that rules out confounding, reverse causation and selection. Using it for forecasting needs regressors that are known when the forecast is made.
In plain words A regression always produces numbers. Identification asks whether those numbers estimate one definite population quantity, and which one. The projection coefficient is fixed by the distribution of the data, while reading it as a structural or causal coefficient adds assumptions that the data cannot check.
Example A model includes the market’s excess return twice, once in percent as and once in decimals as . Then , so all coefficient pairs with the same value of give the same distribution of the data. Only that combination is identified, the design matrix of every sample lacks full column rank, and the fitted values are still unique. Timing gives a second example. A regression of a fund’s daily return on the same day’s market return can have a well-identified projection coefficient and still not provide a forecast of the fund’s return, because the regressor is not known in advance.
Omitted variable bias
Definition Suppose scalar random variables satisfy
where , and have finite second moments, and . The population slope of the regression of on alone, with an intercept, is . Covariance with a constant is zero, so
and dividing by gives
The second term is the omitted variable bias. It vanishes exactly when or . Under independent and identically distributed sampling with finite second moments, the slope of the short regression converges in probability to , not to . The same algebra holds exactly in every sample. The short regression slope equals the long regression’s coefficient on plus its coefficient on times the slope from regressing on .
In plain words A regression that leaves out credits with the part of the effect of that moves together with . The bias has the sign of times the sign of , and more data do not remove it.
Example In a constructed model a fund’s return depends on the market return and a size factor return with , , and . The short regression targets
twice the direct coefficient. Larger samples estimate more and more precisely, and the estimate never moves toward . Including as a regressor recovers when is also uncorrelated with and the second-moment matrix of the regressors is nonsingular.
Heteroskedasticity and sandwich covariance
Definition In the linear model with strict exogeneity and full column rank, let , assumed finite. From ,
called the sandwich covariance. The errors are homoskedastic when , for example when they are uncorrelated with a common conditional variance. The sandwich then reduces to , and with the estimate is conditionally unbiased for . The errors are heteroskedastic when the conditional variances differ across observations. Heteroskedasticity leaves the normal equations, the fitted vector and conditional unbiasedness unchanged. It changes only the covariance, and the classical formula can then be too small or too large. The heteroskedasticity-consistent estimator replaces by built from the residuals. Its justification is asymptotic, for independent observations under moment conditions, and is stated here without proof. With serially correlated errors also has off-diagonal entries, which a diagonal correction does not cover, and estimators that add cross-date terms are needed.
In plain words The fit does not care whether some observations are noisier than others. The uncertainty does, because each observation’s error variance enters the covariance with a weight that reflects how strongly that observation moves the coefficients.
Example For the four-point fit, a homoskedastic model gives and an estimated slope variance of , a standard error of about . To see the sandwich without sampling error, keep the same predictors and suppose the errors are conditionally uncorrelated with conditional variances known to be , , and . With the slope weights ,
The homoskedastic formula with the average variance would give , too small, because the noisiest observation sits at the edge of the design where its weight is largest. Four observations are far too few for any large-sample result, which is why this example uses known variances instead of the residual-based estimator.
Check yourself
- A constructed fund has monthly excess returns , , and percent in months when the market’s excess return is , , and percent. Fit an intercept and a slope by ordinary least squares and check both normal equations through the residuals.
Show the answer
The means are and . The centered market returns , , , have squared sum , and the centered fund returns are , , , . The products sum to , so the slope is and the intercept is . The fitted values are , , , , and the residuals are , , , . They sum to zero, and weighted by the market returns they give
so both normal equations hold. The sum of squared residuals is . The slope is a projection coefficient of these data. Reading it as the fund’s sensitivity to the market needs exogeneity, which these checks cannot establish.
- A model has predictor values , , and strictly exogenous regressors, and its errors are conditionally uncorrelated with known conditional variances , and . A colleague says that the heteroskedasticity makes the slope estimator biased, and that its variance is the homoskedastic value computed with the average error variance . Correct both claims.
Show the answer
Unbiasedness needs only and full column rank, so the slope estimator is still conditionally unbiased. The centered predictors are , , with squared sum , so the slope weights are , , and the sandwich variance is
a standard error of about . The homoskedastic formula with variance gives , which is too small. The error can go either way. With variances , , the sandwich gives , while the homoskedastic formula still gives , because the middle observation has zero weight on the slope.
- A constructed model has with , , and finite second moments. What does the slope of a regression of on alone estimate in large samples, and would ten times more data fix the problem?
Show the answer
The omitted variable formula gives
The short regression targets a negative slope although the direct coefficient of is positive. The bias has the sign of times the sign of the positive covariance. Ten times more data would concentrate the estimate more tightly around , not move it toward . Recovering requires including , with also uncorrelated with and a nonsingular second-moment matrix of the regressors, or some other identification strategy.