STATISTICS GRADUATE LEVEL • LINEAR MODELS AND GLMS

Gauss-Markov Theorem & BLUE — Gauss–Markov theorem and BLUE concept

Why ordinary least squares is the optimal linear unbiased estimator under classical assumptions.

Historical Context & Motivation

The quest for optimal estimation in linear models stretches back to the late eighteenth century, when scientists first grappled with combining multiple noisy observations into a single best prediction. The core question was deceptively simple: given a system of equations corrupted by random errors, which linear combination of the data produces estimates closest to the true parameters? The answer — the Gauss–Markov theorem — represents one of the most elegant and practically consequential results in all of mathematical statistics, providing a rigorous justification for the method of ordinary least squares (OLS) that underpins much of modern regression analysis.

1795
Gauss Develops Least Squares
Carl Friedrich Gauss, at just eighteen, applies the method of least squares to predict the orbit of Ceres. Although he does not publish the technique until 1809 in Theoria Motus, the approach immediately demonstrates the power of minimizing squared residuals to recover astronomical parameters from noisy measurements.
1805–1809
Legendre's Independent Publication
Adrien-Marie Legendre independently publishes the least-squares method in 1805 in Nouvelles méthodes pour la détermination des orbites des comètes. A priority dispute with Gauss ensues, but both contributions establish least squares as a standard tool in observational science.
1821–1823
Gauss Proves Optimality
In Theoria combinationis observationum erroribus minimis obnoxiae, Gauss proves that the least-squares estimator has the smallest variance among all linear unbiased estimators — the original statement of what we now call the Gauss–Markov theorem — without assuming normally distributed errors.
1900
Markov Generalises the Result
Andrey Markov rigorously extends and refines Gauss's optimality proof within a more modern algebraic framework, solidifying the conditions (linearity, unbiasedness, homoscedasticity, uncorrelatedness) under which the result holds. The theorem is subsequently named after both mathematicians.
1960s–Present
Modern Extensions & Relaxations
The Aitken (1935) generalisation to GLS, the development of robust estimators, and the recognition of bias-variance trade-offs (ridge regression, LASSO) contextualize the Gauss–Markov theorem within the broader landscape of estimation theory, clarifying when its assumptions are — and are not — appropriate.

The central question that motivated two centuries of development remains foundational today: under what conditions can we guarantee that OLS is not just a convenient estimator, but the best one within a well-defined class? The Gauss–Markov theorem answers this question with precision, delineating the exact assumptions needed and the precise sense in which 'best' is defined.

Core Principles & Definitions

The Gauss–Markov theorem operates within the framework of the classical linear model y = Xβ + ε, where y is an n × 1 response vector, X is an n × p design matrix of rank p, β is a p × 1 vector of unknown parameters, and ε is an n × 1 vector of random errors. The theorem asserts that under a specific set of conditions on ε, the OLS estimator β̂ = (XX)−1Xy is BLUE — the Best Linear Unbiased Estimator. Understanding each word in this acronym is essential to appreciating the theorem's scope and its limitations.

1

Best (Minimum Variance)

Among all estimators that are both linear and unbiased, OLS achieves the smallest variance for every estimable linear function cβ. Formally, Var(cβ̂) ≤ Var(cβ̃) for any competing linear unbiased estimator β̃.
2

Linear (in the Response)

The estimator must be a linear function of y, i.e., β̃ = Ay for some matrix A that depends only on X, not on y. This excludes non-linear estimators such as M-estimators or maximum likelihood estimators under non-normal distributions.
3

Unbiased (On Average Correct)

The estimator must satisfy E[β̃] = β for all β. In other words, unbiasedness guarantees that the estimator targets the correct parameter on average across repeated samples, with no systematic over- or under-estimation.
4

Gauss–Markov Assumptions

The theorem requires: (1) linearity of the model, (2) strict exogeneity E[ε | X] = 0, (3) spherical errors Var(ε | X) = σ²In (homoscedasticity and no autocorrelation), and (4) full column rank of X.
KEY TAKEAWAY
Think of the Gauss–Markov theorem like a handicap system in a constrained race. All competitors (estimators) must follow two rules: run in a straight line (linearity) and start from the correct position (unbiasedness). Under these constraints, the OLS estimator is the fastest — it reaches the finish line (the true parameter) with the least wobble (variance). If you allow competitors to bend the rules — by accepting some bias (ridge regression) or running non-linearly (non-parametric methods) — you may actually beat OLS in terms of overall accuracy (MSE), but the theorem guarantees OLS cannot be beaten within its lane.

Visual Explanation — The Class of Linear Unbiased Estimators

The diagram shows nested sets of estimators. The outermost ellipse (dashed violet) represents all possible estimators of β. The middle ellipse (dashed blue) restricts to linear estimators of the form β̃ = Ay. The solid amber ellipse contains only linear unbiased estimators. The cyan dot marks the OLS estimator (BLUE), which achieves minimum variance within this class. Pink dots represent other linear unbiased estimators — all necessarily have higher variance. Ridge and other biased estimators fall outside the unbiased region.

This nested structure makes the theorem's scope crystal clear. The Gauss–Markov theorem does not claim that OLS is the best estimator of β in any absolute sense. A biased estimator such as ridge regression, sitting in the linear-but-biased region, can achieve lower mean squared error (MSE) when the bias-variance trade-off favors shrinkage — a fact exploited routinely in high-dimensional settings. Likewise, non-linear estimators (e.g., the MLE under non-Gaussian errors) can outperform OLS in terms of efficiency. The theorem's power lies precisely in its restriction: within the amber boundary of linearity and unbiasedness, OLS is provably optimal, and no amount of cleverness can improve upon it without either introducing bias or abandoning linearity.

Mathematical Framework — Proof of the Gauss–Markov Theorem

We now present the formal statement and a complete proof of the Gauss–Markov theorem. The proof strategy is elegant: we take an arbitrary linear unbiased estimator, decompose it relative to OLS, and show that the 'extra' part can only add variance, never reduce it.

CLASSICAL LINEAR MODEL
y = Xβ + ε, E[ε] = 0, Var(ε) = σ²Iₙ
y: n × 1 response vector; X: n × p design matrix with rank(X) = p; β: p × 1 parameter vector; ε: n × 1 error vector; σ²: common error variance; In: n × n identity matrix.
OLS ESTIMATOR
β̂ = (X⊤X)⁻¹X⊤y
This is derived by minimizing ‖y − Xβ‖² with respect to β. The estimator is linear in y since β̂ = Ay with A = (XX)−1X, and it is unbiased since E[β̂] = (XX)−1XXβ = β.

Proof of Optimality

Let β̃ = Cy be any other linear unbiased estimator of β, where C is a p × n matrix depending only on X. Define D = C − (X⊤X)⁻¹X⊤, so that C = (XX)−1X + D. The unbiasedness condition E[β̃] = β for all β requires CX = Ip. Substituting the decomposition yields (XX)−1XX + DX = Ip, hence DX = 0. This is the critical constraint imposed by unbiasedness.

VARIANCE DECOMPOSITION
Var(β̃) = Var(Cy) = σ²CC⊤ = σ²[(X⊤X)⁻¹X⊤ + D][(X⊤X)⁻¹X⊤ + D]⊤
Expanding: Var(β̃) = σ²(XX)−1 + σ²DD. The cross terms vanish because DX = 0 implies D·X(XX)−1 = 0. Since DD is positive semi-definite, Var(β̃) − Var(β̂) = σ²DD ≥ 0. Equality holds only when D = 0, i.e., β̃ = β̂. ∎
⚠️ Important Nuance
The matrix inequality Var(β̃) − Var(β̂) ≥ 0 means positive semi-definite, not element-wise. This implies that for every estimable linear function cβ, the scalar variance Var(cβ̂) ≤ Var(cβ̃). The OLS estimator simultaneously minimizes the variance of every individual coefficient and every linear combination of coefficients.

Detailed Breakdown — The Gauss–Markov Assumptions

The power of the Gauss–Markov theorem is inseparable from its assumptions. Each assumption serves a specific role in the proof, and violating any one of them can invalidate the BLUE property. Understanding precisely what each assumption contributes — and what happens when it fails — is essential for applied work.

Each card presents one Gauss–Markov assumption with its formal statement, the consequence of its violation, and the recommended remedy. All five assumptions must hold simultaneously for OLS to be BLUE. Note that violations of A3 or A4 preserve unbiasedness but destroy efficiency, while violations of A1 or A2 undermine the estimator more fundamentally.
Summary of consequences when each Gauss–Markov assumption is violated
AssumptionIf Violated, OLS Is…Still Unbiased?Still BLUE?
A1: LinearityEstimating the wrong modelNo (misspecification bias)No
A2: E[ε | X] = 0Biased and inconsistentNoNo
A3: HomoscedasticityInefficient (not min-var)YesNo — GLS is BLUE
A4: No autocorrelationInefficient (not min-var)YesNo — GLS is BLUE
A5: Full column rank(X⊤X)⁻¹ doesn't existN/AN/A

Worked Example — Verifying BLUE in Simple Linear Regression

Consider a simple linear regression with n = 4 observations. We will construct the OLS estimator, consider an alternative linear unbiased estimator, and verify that OLS has smaller variance, illustrating the Gauss–Markov theorem concretely.

Comparing OLS to an Alternative Linear Unbiased Estimator
1
Step 1 — Set Up the ModelSuppose yi = β₀ + β₁xi + εi with x = (1, 2, 3, 4) and Var(εi) = σ² for all i, Cov(εi, εj) = 0 for i ≠ j. The design matrix is X = [[1,1],[1,2],[1,3],[1,4]].
XX = [[4,10],[10,30]], (XX)−1 = (1/20)[[30,−10],[−10,4]]
2
Step 2 — Compute OLS Variance of β̂₁The OLS estimator of the slope is β̂₁ = Σ(xi − x̄)(yi − ȳ)/Σ(xi − x̄)². Here Sxx = Σ(xi − 2.5)² = (−1.5)² + (−0.5)² + (0.5)² + (1.5)² = 5. From (XX)−1, the (2,2) entry is 4/20 = 1/5.
Var(β̂₁) = σ²/Sxx = σ²/5 = 0.2σ²
3
Step 3 — Construct an Alternative Linear Unbiased EstimatorConsider the estimator β̃₁ = (y₄ − y₁)/3. This is clearly linear in y. Check unbiasedness: E[β̃₁] = E[(β₀ + 4β₁ + ε₄) − (β₀ + β₁ + ε₁)]/3 = (4β₁ − β₁)/3 = 3β₁/3 = β₁. So β̃₁ is linear and unbiased — it qualifies as a competitor in the Gauss–Markov sense.
β̃₁ = (y₄ − y₁)/3 is a valid linear unbiased estimator of β₁
4
Step 4 — Compute Variance of the AlternativeSince ε₁ and ε₄ are independent with variance σ², we have Var(β̃₁) = Var((ε₄ − ε₁)/3) = (1/9)(σ² + σ²) = 2σ²/9.
Var(β̃₁) = 2σ²/9 ≈ 0.222σ²
5
Step 5 — Compare and Verify Gauss–MarkovThe OLS variance is 0.2σ², while the alternative has variance ≈ 0.222σ². The difference is 0.222σ² − 0.2σ² = 0.022σ² > 0, confirming that the OLS estimator has strictly smaller variance. The ratio of efficiencies is Var(β̂₁)/Var(β̃₁) = (1/5)/(2/9) = 9/10 = 0.9, so OLS is 10% more efficient. No matter what alternative linear unbiased estimator we construct — using different weights on the yi — the Gauss–Markov theorem guarantees it cannot beat OLS.
Var(β̂₁) = 0.2σ² < 0.222σ² = Var(β̃₁) ✓ Gauss–Markov confirmed

Strengths, Limitations, and Common Misconceptions

The Gauss–Markov theorem is sometimes described as a blanket endorsement of OLS, but a careful reading reveals both the theorem's remarkable strengths and its important limitations. Misunderstandings of its scope are rampant in applied work, leading either to unjustified confidence in OLS or unnecessary abandonment of it.

Balanced assessment of the Gauss–Markov theorem
StrengthsLimitations
Requires no distributional assumptions on ε — only moment conditions (zero mean, constant variance, zero covariance)Says nothing about non-linear estimators; MLE may dominate OLS in efficiency under known non-Gaussian error distributions
Applies to all estimable linear functions c⊤β simultaneously, not just individual coefficientsMinimum variance ≠ minimum MSE; biased estimators (ridge, LASSO, James–Stein) can achieve lower MSE when p ≥ 3
Provides a finite-sample optimality guarantee — no reliance on asymptoticsThe spherical error condition Var(ε) = σ²I is often unrealistic in time-series, panel data, and clustered sampling designs
Simple and verifiable conditions; diagnostic tests exist for each assumptionDoes not address consistency, asymptotic normality, or prediction accuracy — these require additional conditions
COMMON MISCONCEPTION
Many practitioners believe the Gauss–Markov theorem implies OLS is always the best estimator available. This is incorrect. The theorem restricts the competition to linear unbiased estimators only. In the analogy of a restricted race, OLS wins within its lane — but competitors in other lanes (biased estimators, non-linear estimators) may reach the finish line (low MSE) faster. The James–Stein paradox (1961) showed that for p ≥ 3, a biased shrinkage estimator dominates OLS in MSE for the full parameter vector, a result that initially shocked the statistics community and catalyzed the development of modern regularization methods.

Connection to Generalised Least Squares and Advanced Theory

When the Gauss–Markov assumption of spherical errors fails — that is, Var(ε) = Ω where Ω ≠ σ²I — OLS remains unbiased but is no longer BLUE. The Aitken theorem (1935) provides the natural generalisation: the Generalised Least Squares (GLS) estimator β̂GLS = (XΩ−1X)−1XΩ−1y is BLUE under the generalised model y = Xβ + ε with E[ε] = 0 and Var(ε) = Ω. The proof strategy is identical to the Gauss–Markov proof but applied in a transformed coordinate system where Ω−1/2ε has spherical errors.

Comparison of the Gauss–Markov and Aitken theorems
FeatureGauss–Markov (OLS)Aitken (GLS)
Error structureVar(ε) = σ²IₙVar(ε) = Ω (known, positive definite)
Estimatorβ̂ = (X⊤X)⁻¹X⊤yβ̂ = (X⊤Ω⁻¹X)⁻¹X⊤Ω⁻¹y
BLUE guaranteeYes, under spherical errorsYes, under general Ω
Practical challengeVerify homoscedasticity & no autocorrelationΩ is usually unknown; must estimate → FGLS
Special caseΩ = σ²I reduces GLS to OLSΩ diagonal → WLS; Ω banded → time-series GLS

Beyond GLS, the Gauss–Markov framework connects to several advanced directions. The Cramér–Rao lower bound provides a variance floor for all unbiased estimators (not just linear ones), but it requires full distributional assumptions. When ε ~ N(0, σ²I), the OLS estimator achieves the Cramér–Rao bound and is thus the uniformly minimum variance unbiased estimator (UMVUE) — a stronger result than Gauss–Markov. In high-dimensional settings where p > n, the full column rank assumption fails by definition, and one must move beyond the classical framework entirely, embracing penalised estimation (ridge, LASSO, elastic net) where the bias-variance trade-off is managed explicitly.

Practice Problems

PROBLEM 1CONCEPTUAL
The Gauss–Markov theorem guarantees that OLS is the Best Linear Unbiased Estimator. Explain precisely what property of OLS would fail if the error terms exhibited heteroscedasticity (Var(εi) = σ²i varying across observations). Would OLS remain unbiased? Linear? Explain.
PROBLEM 2BASIC CALCULATION
In a simple linear regression yi = β₀ + β₁xi + εi with n = 5 observations and Sxx = Σ(xi − x̄)² = 10, compute Var(β̂₁). Now consider the alternative linear unbiased estimator β̃₁ = (y₅ − y₁)/(x₅ − x₁) with x₁ = 1, x₅ = 5. Compute Var(β̃₁) and verify that Var(β̂₁) < Var(β̃₁).
PROBLEM 3INTERMEDIATE
In the model y = Xβ + ε with Var(ε) = σ²I, let β̃ = Cy be any linear unbiased estimator. Using the decomposition C = (X⊤X)⁻¹X⊤ + D, prove that the unbiasedness condition CX = Ip implies DX = 0. Then show that the cross-term in the variance expansion vanishes, i.e., (X⊤X)⁻¹X⊤D⊤ = 0.
PROBLEM 4APPLIED
A researcher fits a wage regression: log(wagei) = β₀ + β₁educi + β₂experi + εi. A Breusch–Pagan test yields a p-value of 0.002, and inspection reveals that Var(εi) appears to increase with education level. (a) Is OLS still BLUE? (b) Is OLS still unbiased? (c) What specific estimator should the researcher consider, and what theorem justifies its optimality?
PROBLEM 5CRITICAL THINKING
The James–Stein estimator (1961) dominates OLS in terms of total mean squared error for estimating β when p ≥ 3, even under the full Gauss–Markov assumptions with normal errors. Does this contradict the Gauss–Markov theorem? Construct a careful argument explaining why or why not, and discuss the implications for the practical relevance of the Gauss–Markov theorem in modern high-dimensional settings.

Summary — Gauss–Markov Theorem & BLUE

The Gauss–Markov theorem establishes that, under the classical linear model assumptions — linearity, strict exogeneity, homoscedasticity, no autocorrelation, and full column rank — the OLS estimator β̂ = (X⊤X)⁻¹X⊤y is BLUE: the Best Linear Unbiased Estimator. 'Best' means it achieves the minimum variance among all estimators that are both linear in y and unbiased for β. The proof rests on the elegant decomposition Var(β̃) = Var(β̂) + σ²DD⊤, where DD⊤ ≥ 0 ensures the variance gap is always non-negative.

The theorem's scope is bounded by its assumptions: when errors are heteroscedastic or autocorrelated, OLS remains unbiased but is no longer efficient, and the Aitken/GLS estimator takes over as BLUE. In high-dimensional or prediction-focused settings, biased estimators such as ridge regression and LASSO routinely outperform OLS in terms of mean squared error by accepting a small bias in exchange for a large reduction in variance — a trade-off the Gauss–Markov theorem deliberately excludes. Understanding both the power and the boundaries of this foundational result is essential for any practitioner working with linear models.

Varsity Tutors • Statistics Graduate Level • Gauss-Markov Theorem & BLUE