ML0135 OLS Diagnostics & Gauss-Markov

What makes OLS the best linear unbiased estimator? Explain the Gauss-Markov theorem, heteroscedasticity and robust standard errors, and omitted-variable bias, and say which diagnostics tell you whether a regression’s coefficients and t-statistics can be trusted.

Line-art scene: an inputs box with daily stock returns y and an order-flow signal x1 feeds an OLS fit box, which produces a regression printout reading slope 0.42, t equals 3.1, R squared equals 0.04; arrows from the printout lead to three question boxes asking whether the slope is biased by a factor left out of the model, whether t equals 3.1 can be trusted if noise is larger in volatile regimes, and whether R squared of 0.04 means the signal is worthless

The Problem: A regression of returns on a trading signal prints a significant slope and a tiny R^2. Before any capital moves, three questions decide whether the coefficient, its t-statistic, and its fit statistic can be believed.

Answer

The Gauss-Markov theorem says that ordinary least squares has the smallest variance among all linear unbiased estimators once four conditions hold, which is exactly what BLUE means. The conditions are linearity in the parameters, a full-rank regressor matrix, errors with zero conditional mean (strict exogeneity), and homoscedastic, uncorrelated errors. Exogeneity alone delivers unbiasedness, while the error-variance condition delivers efficiency and the validity of the textbook covariance \sigma^2(X^\top X)^{-1}. Heteroscedasticity therefore leaves the coefficients unbiased but makes the classical standard errors and t-statistics wrong, which Huber-White robust standard errors repair. An omitted variable correlated with an included regressor breaks exogeneity instead, so the coefficient itself is biased and no standard-error correction can rescue it. Normality is not among the conditions and only matters for exact small-sample t and F tests.

(1) Best Within A Narrow Class: OLS beats only linear unbiased estimators. A biased estimator such as ridge can have lower mean squared error, and under heteroscedasticity GLS beats OLS.
(2) Heteroscedasticity Hurts Inference, Not The Estimate: With \mathrm{Var}(\varepsilon_i \mid X) = \sigma_i^2 the slope stays unbiased and consistent, but s^2(X^\top X)^{-1} is wrong. It typically understates uncertainty when the error variance rises with leverage.
(3) Sandwich Standard Errors: White’s estimator replaces \sigma^2 I with the squared residuals. Use HC3 in small samples, and cluster-robust or Newey-West HAC errors when errors correlate within groups or over time.
(4) Omitted-Variable Bias: Leaving out x_2 shifts the slope on x_1 by \beta_2 \delta_1, where \delta_1 is the slope from regressing x_2 on x_1. The sign of the bias follows the signs of \beta_2 and the covariance.
(5) R-Squared Is Not A Validity Check: R^2 never falls when a regressor is added, and neither it nor adjusted R^2 says anything about bias or correct standard errors. A return forecast with R^2 = 0.01 can be valuable, while two trending series can show a spurious R^2 = 0.9.
(6) Diagnose Through Residuals: Residual-versus-fitted plots, Breusch-Pagan tests, Q-Q plots, Durbin-Watson statistics, and leverage with Cook’s distance each target one specific assumption.

Three-column ladder. The center column lists the Gauss-Markov assumptions top to bottom: A1 linear in beta and A2 full column rank, A3 strict exogeneity E of epsilon given X equals zero, A4 spherical errors with variance sigma squared I, A5 normal errors. Solid arrows to the right lead to cumulative properties: beta-hat exists and is unique, beta-hat is unbiased, beta-hat is BLUE and the classical standard error is valid, exact t and F tests for small n, with downward arrows labeled plus A3, plus A4, plus A5. Dashed red arrows to the left lead to failure boxes: perfect collinearity makes beta-hat unidentified; omitted variables, measurement error, or simultaneity make beta-hat biased and robust standard errors cannot fix it; heteroscedasticity or autocorrelation leave beta-hat unbiased but the standard error wrong, fixed by HC or HAC errors or GLS; fat tails make t and F only approximate

Figure 1: Each Gauss-Markov assumption buys one property and each violation costs one. Breaking strict exogeneity damages the point estimate itself, while breaking spherical errors damages only the reported uncertainty, which is why the two failures need completely different fixes.

Reading the ladder from top to bottom shows why answers that treat the assumptions as one block go wrong. A failure of A3 moves the center of the sampling distribution, so the slope is aimed at the wrong number no matter how much data you collect. A failure of A4 leaves the center in place but changes its width, so the slope is right on average while its reported t-statistic is not. A careful analyst therefore checks the specification before trusting the coefficient and checks the error structure before trusting the t-statistic. The proof of the theorem is short enough to reproduce at a whiteboard.

Mathematical Formulation:
y = X\beta + \varepsilon
\hat\beta = (X^\top X)^{-1} X^\top y
\mathrm{Var}(\hat\beta \mid X) = \sigma^2 (X^\top X)^{-1}
\tilde\beta = \left[(X^\top X)^{-1} X^\top + D\right] y
\mathrm{Var}(\tilde\beta \mid X) = \mathrm{Var}(\hat\beta \mid X) + \sigma^2 D D^\top
\hat V_{\mathrm{HC}} = (X^\top X)^{-1} X^\top \hat\Omega X (X^\top X)^{-1}

Where:

  • y is the n \times 1 response, X the n \times k regressor matrix including the intercept column, \beta the true coefficients, and \varepsilon the error vector.
  • \hat\beta is the OLS estimator and \sigma^2 the common error variance assumed by A4; the classical covariance is valid only when \mathrm{Var}(\varepsilon \mid X) = \sigma^2 I.
  • \tilde\beta is any other linear estimator, written as OLS plus an arbitrary k \times n matrix D. Unbiasedness for every \beta forces DX = 0, which kills the cross terms in the variance.
  • D D^\top is positive semidefinite, so every linear combination of \tilde\beta has variance at least as large as the same combination of \hat\beta. That inequality is the Gauss-Markov theorem.
  • \hat V_{\mathrm{HC}} is the sandwich covariance with \hat\Omega = \mathrm{diag}(e_1^2, \ldots, e_n^2) and residuals e_i = y_i - x_i^\top \hat\beta (HC0). HC3 replaces e_i^2 with e_i^2/(1-h_{ii})^2, where h_{ii} is the leverage of observation i.

Worked Example:
Suppose returns follow y = 1.0\,x_1 + 0.5\,x_2 + u, with a signal x_1 and a market factor x_2 where \mathrm{Var}(x_1) = 1 and \mathrm{Cov}(x_1, x_2) = 0.6. An analyst regresses y on x_1 alone.

\mathrm{plim}\ \hat\beta_1^{\mathrm{short}} = \beta_1 + \beta_2 \delta_1
\delta_1 = \mathrm{Cov}(x_1, x_2) / \mathrm{Var}(x_1) = 0.6
\hat\beta_1^{\mathrm{short}} \approx 1.0 + 0.5 \times 0.6 = 1.3

The short regression reports 1.3 instead of 1.0, a 30% overstatement of the signal that comes entirely from its correlation with the market factor. In sample the identity \hat\beta_1^{\mathrm{short}} = \hat\beta_1^{\mathrm{long}} + \hat\beta_2^{\mathrm{long}} \hat\delta_1 holds exactly, not just in the limit. Adding x_2 recovers 1.0, at the price of a standard error inflated by the variance inflation factor 1/(1 - 0.6^2) \approx 1.56. Robust standard errors on the short regression would simply draw a tight interval around 1.3, confidently centered on the wrong value.


Login to view more content
Log in to track your progress

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *