Prove the Gauss–Markov theorem: under y=Xβ+ε with E[ε]=0, Cov⁡(ε)=σ2I and X of full column rank, the OLS estimator has the smallest covariance matrix among all linear unbiased estimators. Why does this not rule out ridge regression doing better in MSE?

Supervised learning, Gauss–Markov theorem
Level L5 Expert. Length Long. Nature Mat Mathematical.

What's being asked

A clean matrix proof: any linear unbiased estimator is OLS plus a perturbation D with DX=0, and the covariance adds a positive semi-definite term.

Key idea

Write any linear unbiased estimator as β~=Cy with C=(X⊤X)−1X⊤+D. Unbiasedness forces DX=0, and then Cov⁡(β~)=Cov⁡(β^)+σ2DD⊤⪰Cov⁡(β^).

Steps

  1. A linear estimator has the form β~=Cy with C a fixed p×n matrix. Write C=(X⊤X)−1X⊤+D for some matrix D.
  2. Unbiasedness: E[β~]=CXβ=β+DXβ, using (X⊤X)−1X⊤X=I. For this to hold for all β we need DX=0.
  3. Covariance: Cov⁡(β~)=σ2CC⊤. Expand: CC⊤=(X⊤X)−1+(X⊤X)−1X⊤D⊤+DX(X⊤X)−1+DD⊤.
  4. The cross terms vanish: DX=0 and so X⊤D⊤=0. This leaves CC⊤=(X⊤X)−1+DD⊤.
  5. Hence Cov⁡(β~)−Cov⁡(β^)=σ2DD⊤, which is positive semi-definite since v⊤DD⊤v=∥D⊤v∥2≥0.
  6. Consequently for any vector a, Var⁡(a⊤β~)≥Var⁡(a⊤β^). OLS is the best linear unbiased estimator (BLUE). Equality holds only if D=0.
  7. Why ridge is not excluded: ridge is linear but biased, so it is outside the class of unbiased estimators. By trading a little bias for a big drop in variance it can have smaller MSE (see the ridge MSE result). Gauss–Markov also says nothing about non-linear estimators.

Common mistakes

How long your answer should be

One page; 8–10 minutes.

Last checked on 4 December 2026.

Read this

Previous in Supervised learning: Write the optimality (KKT) conditions for the lasso min⁡β12∥y−Xβ∥2+λ∥β∥1. Using them, what is the smallest λ at which β^=0, and how do you verify that β^=(1.5,0) is the solution for X=I2, y=(3,1), λ=1.5?
Next in Supervised learning: How do you prove that the Gaussian kernel k(x,z)=exp⁡(−γ∥x−z∥2) is a valid (positive semi-definite) kernel, using only the linear kernel and closure rules?