Courses › Graduate Econometrics
Large-sample OLS and robust inference
Consistency and asymptotic normality of OLS, the sandwich variance, HC0 to HC3, Wald tests of linear and nonlinear restrictions, confidence regions, and what changes in small samples.
Module 3 derived exact results for OLS under strong assumptions: a linear conditional mean, and for exact t-tests, homoskedastic normal errors. Real data rarely oblige. This module shows that almost nothing is lost if we give those assumptions up and rely on large samples instead. OLS consistently estimates the best linear predictor of Module 1 under weak conditions, it is asymptotically normal, and its variance can be estimated without knowing the form of heteroskedasticity.
The practical payoff is the heteroskedasticity-robust standard error, now the default in applied economics, together with the Wald test for single and joint hypotheses, including nonlinear ones. We also look at what goes wrong in small samples and how the HC2 and HC3 corrections help.
By the end of this module you will be able to
- Prove that OLS is consistent for the best linear predictor using the law of large numbers and the continuous mapping theorem.
- Derive the asymptotic distribution √n(β̂ − β) →d N(0, Q−1ΩQ−1) and its homoskedastic special case.
- Compute HC0, HC1, HC2 and HC3 standard errors and explain why they differ in small samples.
- Construct Wald tests and confidence regions for linear and nonlinear restrictions.
- Judge what robust standard errors do and do not fix.
What this module covers
- Consistency of OLS
- Asymptotic normality
- Heteroskedasticity-robust standard errors
- Wald tests and confidence regions
- What robust inference does and does not fix
- Problem set with step-by-step solutions
- Module quiz
Lesson 4.1 Free lesson
Consistency of OLS
Assume the observations (yi, xi) are independent and identically distributed, with finite second moments and Q = E[xixi′] positive definite. Let β be the population best linear predictor and ui = yi − xi′β its error, so E[xiui] = 0 by construction (Module 1). Substituting yi = xi′β + ui into the estimator gives
Now apply Module 2’s tools piece by piece. By the weak law of large numbers, (1/n)Σxixi′ →p Q and (1/n)Σxiui →p E[xiui] = 0. Matrix inversion is continuous wherever the matrix is invertible, so by the continuous mapping theorem the product converges to Q−1 × 0 = 0. Hence β̂ →p β.
Notice what was not assumed: no linear conditional mean, no homoskedasticity, no normality. OLS consistently estimates the best linear predictor of y given x, whatever the true relationship. Whether that predictor is the parameter you care about is a separate question. If you want a causal effect and a confounder is omitted, OLS is consistent for the wrong thing: the population omitted-variable formula of Module 1.
Worked example: A consistent estimate of the wrong number
In a large city, suppose the best linear predictor of weekly gym visits given whether someone has a premium membership has slope 1.8 visits. Premium members are partly people who were going to exercise a lot anyway.
With 50 people the OLS slope might be 1.1 or 2.6. With 50,000 it will be very close to 1.8: OLS is consistent.
If the causal effect of the premium membership is 0.6 visits, more data only make you more confident about 1.8. Consistency removes sampling error, not selection.
Common mistake
Saying “OLS is biased because the errors are not normal” or “because of heteroskedasticity”. Neither affects consistency for the best linear predictor. Bias and inconsistency for a causal parameter come from correlation between the regressors and the structural error: omitted variables, simultaneity, measurement error.
Key ideas
- β̂ − β = (X′X/n)−1(X′u/n), and the LLN plus the CMT make it vanish.
- Consistency needs only iid sampling, finite second moments and E[xx′] invertible.
- OLS is consistent for the best linear predictor; whether that is causal is a separate question.
Practice questions: Large-sample OLS and robust inference
Try these, then open each answer to check your work.
- 1.OLS is consistent for the population best linear predictor under iid sampling when
- E[xx′] is invertible and second moments are finite
- the errors are normally distributed
- the errors are homoskedastic
- the conditional mean of y is linear in x
Show answer
Answer: A. The LLN and CMT give β̂ →p Q−1E[xy], the BLP. Normality, homoskedasticity and a linear CEF are not needed.
- 2.Under heteroskedasticity, the asymptotic variance of √n(β̂ − β) is
- σ2Q−1 with σ2 = E[u2]
- Q−1ΩQ−1 with Ω = E[xx′u2]
- Ω−1QΩ−1 with Ω = E[xx′u2]
- Q−1 + Ω with Ω = E[xx′u2]
Show answer
Answer: B. The CLT applies to (1/√n)Σxiui with variance Ω, and Slutsky multiplies by Q−1 on both sides.
- 3.How does HC3 differ from HC0?
- It multiplies by n/(n − k)
- It ignores observations with high leverage
- It divides each squared residual by (1 − hii)2
- It assumes homoskedasticity
Show answer
Answer: C. HC3 inflates residuals at high-leverage points, offsetting the downward bias of HC0 in small samples.
Problems with step-by-step solutions
- 4.Write β̂ − β in terms of sample averages and explain, step by step, why it converges to zero.
Show step-by-step solution
- β̂ − β = (X′X/n)−1(X′u/n), where u is the BLP error.
- WLLN: X′X/n →p Q (invertible) and X′u/n →p E[xu] = 0.
- CMT: inversion is continuous at Q, so the product →p Q−1 × 0 = 0.
- 5.With one regressor and an intercept, show that the asymptotic variance of the slope is E[(x − μx)2u2]/Var(x)2, and that it reduces to σ2/Var(x) under homoskedasticity.
Show step-by-step solution
- By FWL the slope is the regression of y on x̃ = x − μx (asymptotically). Then Q = Var(x) and Ω = E[x̃2u2].
- V = Ω/Q2 = E[x̃2u2]/Var(x)2.
- If E[u2 | x] = σ2, then E[x̃2u2] = E[x̃2]σ2 = σ2Var(x), so V = σ2/Var(x).
Get the full module
The complete module adds every lesson, interactive graphs, a full problem set with step-by-step solutions, and a quiz. The academy opens in January 2027: join the waitlist for the founding price (lifetime access for $179).
Join the waitlist Try a full module free
More practice: free practice questions for this course.