The full academy launches January 2027. Join the waitlist for the $179 founding price.
Waldbauer Academy of Economics

Courses › Graduate Econometrics

Graduate · Module 4 of 15

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.

By Maximus S. Waldbauer · About 5 to 6 hours, including the problem set and quiz.

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

What this module covers

  1. Consistency of OLS
  2. Asymptotic normality
  3. Heteroskedasticity-robust standard errors
  4. Wald tests and confidence regions
  5. What robust inference does and does not fix
  6. Problem set with step-by-step solutions
  7. 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

β̂ − β = ( (1/n)Σxixi′ )−1 ( (1/n)Σxiui )

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. 1.OLS is consistent for the population best linear predictor under iid sampling when
    1. E[xx′] is invertible and second moments are finite
    2. the errors are normally distributed
    3. the errors are homoskedastic
    4. 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. 2.Under heteroskedasticity, the asymptotic variance of √n(β̂ − β) is
    1. σ2Q−1 with σ2 = E[u2]
    2. Q−1ΩQ−1 with Ω = E[xx′u2]
    3. Ω−1QΩ−1 with Ω = E[xx′u2]
    4. 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. 3.How does HC3 differ from HC0?
    1. It multiplies by n/(n − k)
    2. It ignores observations with high leverage
    3. It divides each squared residual by (1 − hii)2
    4. 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

  1. 4.Write β̂ − β in terms of sample averages and explain, step by step, why it converges to zero.
    Show step-by-step solution
    1. β̂ − β = (X′X/n)−1(X′u/n), where u is the BLP error.
    2. WLLN: X′X/n →p Q (invertible) and X′u/n →p E[xu] = 0.
    3. CMT: inversion is continuous at Q, so the product →p Q−1 × 0 = 0.
  2. 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
    1. By FWL the slope is the regression of y on x̃ = x − μx (asymptotically). Then Q = Var(x) and Ω = E[x̃2u2].
    2. V = Ω/Q2 = E[x̃2u2]/Var(x)2.
    3. 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.