Home › Linear Functions › Lesson 9

The Gauss–Markov Theorem

Lesson 9 of 12

Key idea of this section

Model:  y = Xβ + ε,   E[ε] = 0,   Cov(ε) = σ²I,   X of full column rank p
OLS:    β̂ = (XᵀX)⁻¹Xᵀy,   E[β̂] = β,   Cov(β̂) = σ²(XᵀX)⁻¹
Gauss–Markov:  β̂ is the Best Linear Unbiased Estimator (BLUE)

The linear model

Lesson 8 treated least squares as geometry. Statistics asks why it is a good idea. In the linear model an n-vector of observations y is generated as y = Xβ + ε, where X is a known n × p design matrix of full column rank, β ∈ ℝᵖ is an unknown parameter, and ε is a random error vector. The Gauss–Markov assumptions are that the errors have mean zero, E[ε] = 0, and are uncorrelated with common variance, Cov(ε) = E[εεᵀ] = σ²I (homoscedasticity). No normality is assumed.

An estimator β̃ of β is linear if β̃ = Cy for a fixed p × n matrix C, and unbiased if E[β̃] = β for every β. Since E[Cy] = CXβ, a linear estimator is unbiased exactly when CX = I. The ordinary least squares (OLS) estimator β̂ = (XᵀX)⁻¹Xᵀy is linear, with C₀ = (XᵀX)⁻¹Xᵀ, and unbiased because C₀X = I. Its covariance is

Cov(β̂) = C₀ Cov(y) C₀ᵀ = σ² (XᵀX)⁻¹XᵀX(XᵀX)⁻¹ = σ²(XᵀX)⁻¹.

For symmetric matrices write M ⪰ N if M − N is positive semidefinite. This is the natural order on covariance matrices: M ⪰ N means that every linear combination aᵀβ̃ has at least as large a variance under M as under N.

Theorem 9.1 (Gauss–Markov)

Under the Gauss–Markov assumptions, every linear unbiased estimator β̃ = Cy satisfies Cov(β̃) ⪰ Cov(β̂). Consequently, for every vector a, the estimator aᵀβ̂ has the smallest variance among all linear unbiased estimators of aᵀβ.

Proof. Write C = C₀ + D. Unbiasedness gives CX = I = C₀X, so DX = 0. Then

Cov(β̃) = σ²CCᵀ = σ²(C₀C₀ᵀ + C₀Dᵀ + DC₀ᵀ + DDᵀ).

Now DC₀ᵀ = DX(XᵀX)⁻¹ = 0, and C₀Dᵀ is its transpose, so Cov(β̃) = σ²(XᵀX)⁻¹ + σ²DDᵀ. The matrix DDᵀ is positive semidefinite, since aᵀDDᵀa = ‖Dᵀa‖² ≥ 0. Hence Cov(β̃) − Cov(β̂) = σ²DDᵀ ⪰ 0, with equality only if D = 0, that is β̃ = β̂. The second statement follows because Var(aᵀβ̃) = aᵀCov(β̃)a. ∎

Estimating the error variance

The fitted values are ŷ = Hy with H = X(XᵀX)⁻¹Xᵀ, and the residual vector is e = (I − H)y. Since (I − H)X = 0, we have e = (I − H)ε, and the residual sum of squares is RSS = eᵀe = εᵀ(I − H)ε, because I − H is symmetric and idempotent.

Theorem 9.2

The estimator σ̂² = RSS/(n − p) is unbiased for σ².

Proof. For any fixed matrix M, E[εᵀMε] = E[tr(Mεεᵀ)] = tr(M E[εεᵀ]) = σ² tr M. With M = I − H we get E[RSS] = σ²(n − tr H) = σ²(n − p), since tr H = tr((XᵀX)⁻¹XᵀX) = tr Ip = p. ∎

The divisor n − p, the degrees of freedom, is the dimension of the orthogonal complement of the column space into which the residual is projected. For the worked example of Lesson 8 (n = 4, p = 2, RSS = 4.2) the estimate is σ̂² = 2.1. In simple regression the slope has variance σ²/Sxx, so its estimated standard error is √(2.1/5) = √0.42 ≈ 0.648.

Beyond Gauss–Markov

Each hypothesis of the theorem is essential, and relaxing each leads to an important theory.

Exercise

  • (a)
    A regression has n = 10 observations and p = 3 parameters. What is tr H, and what is the divisor in σ̂²?
  • (b)
    In simple regression σ² = 4 and Sxx = 16. Find the variance of the OLS slope.
  • (c)
    In the model yᵢ = μ + εᵢ (i = 1, …, n), identify X and show that the BLUE of μ is the sample mean.
Show solution

Answers: (a) tr H = p = 3, and the divisor is n − p = 7. (b) σ²/Sxx = 4/16 = 1/4. (c) X is the n × 1 column of ones, XᵀX = n and Xᵀy = Σyᵢ, so β̂ = (1/n)Σyᵢ = ȳ, which by Gauss–Markov has variance σ²/n, the smallest among linear unbiased estimators.

V.3.1