Heteroskedasticity
When error variance is not constant, why it leaves OLS unbiased but wrecks its standard errors, the White/robust sandwich covariance that fixes inference, and the tests that detect it.
Prerequisites: Ordinary Least Squares (OLS), The Gauss–Markov Theorem
Heteroskedasticity, error variance that changes across observations, is the normal state of financial data, not the exception. The Gauss–Markov assumption of spherical errors requires for every ; markets flatly refuse. Volatility clusters, larger firms have noisier returns, and cross-sectional regressions mix calm and turbulent observations. The crucial thing to understand is what breaks and what doesn't: your coefficients are fine, your standard errors are lies, and the fix is a one-line change to the covariance estimator.
The problem, precisely
Keep the linear model with strict exogeneity , but let the conditional variance vary:
The errors are still uncorrelated (off-diagonals zero) but no longer identically scaled. Because strict exogeneity survives, the unbiasedness proof is untouched:
So OLS remains unbiased and consistent, this is the single most important fact and the most common thing candidates get wrong. What fails is efficiency (OLS is no longer BLUE; see The Gauss–Markov Theorem) and, more damagingly, the variance formula.
Why the standard errors are wrong
The textbook OLS covariance was derived assuming . With general , the correct sandwich is
The naive formula replaces with , which is simply wrong when . The reported standard errors can be too small or too large, often too small when high-variance observations coincide with extreme regressor values, so -statistics are inflated and you declare significance that isn't there. Every hypothesis test and confidence interval built on the naive formula is invalid.
The White / robust fix
Halbert White's insight (1980): you do not need to know to estimate the sandwich consistently. You cannot estimate separate from points, but you can estimate the matrix by plugging in squared residuals:
giving the heteroskedasticity-consistent (HC0) covariance
These are White standard errors (robust, HC standard errors). Finite-sample refinements HC1–HC3 rescale (e.g. HC3 divides by using the hat-matrix leverage) and are preferred in small samples. The practical rule on a desk: use robust standard errors by default, they are correct under homoskedasticity too (they just cost a little efficiency), so there is little reason not to.
Detecting it
- Breusch–Pagan test, regress squared residuals on the regressors (or their determinants of variance); a significant fit means variance depends on . It is a score/LM test: under homoskedasticity.
- White test, the same idea but including squares and cross-products of regressors, catching general (nonlinear) heteroskedasticity at the cost of many degrees of freedom.
- Eyeball, plot residuals against fitted values or against time; a fanning "megaphone" shape or visible volatility clustering is heteroskedasticity you can see.
Worked example: pooled cross-sectional return regression
Regress monthly stock returns on a value signal across all stocks and months, . Residual variance is far larger in crisis months (Oct 2008) than calm ones, and larger for small caps than mega caps, textbook heteroskedasticity. The OLS slope (the value premium estimate) is still unbiased. But the naive -stat might read 3.5 and the White -stat only 2.0: the naive standard error understated uncertainty because the high-variance crisis observations also had extreme value spreads. Reporting the naive would overstate how sure you are the value premium exists. (In panels you would go further and cluster by month and/or firm.)
Failure modes in financial data
- Volatility clustering is heteroskedasticity in time series form; modeling it explicitly (rather than just robustifying standard errors) is the entire subject of GARCH Volatility Models.
- Robust SEs don't restore efficiency. White fixes inference but leaves OLS inefficient. If the variance structure is known or modelable, weighted/generalized least squares recovers the lost efficiency and is BLUE.
- Heteroskedasticity plus autocorrelation. Financial errors usually have both. White handles only the variance; you need the HAC (Newey–West) estimator to also handle serial correlation. See Autocorrelation and Serial Correlation.
- Leverage points. A few high-leverage observations dominate ; HC3 guards against this, plain HC0 does not.
In interviews
The clean two-part answer: heteroskedasticity leaves OLS unbiased and consistent but not efficient, and, the part that actually matters, makes the standard errors wrong, so all -tests and confidence intervals are invalid until fixed. Be able to write the sandwich covariance and explain that White's trick estimates the middle with , you cannot estimate every but you can estimate the sandwich meat. Name a detection test (Breusch–Pagan / White) and know the practical default: always report robust standard errors. A strong closer connects it to GARCH as the time-series counterpart.
Related concepts
Practice in interviews
Further reading
- White (1980), A Heteroskedasticity-Consistent Covariance Matrix Estimator
- Greene, Econometric Analysis (Ch. 9)
- Hayashi, Econometrics (Ch. 2)