Theoremcore
Gauss-Markov theorem
Also called BLUE theorem, best linear unbiased estimator.
In a linear model with uncorrelated errors of equal variance, ordinary least squares has the least variance among all linear unbiased estimators.
The Gauss-Markov theorem says that in a linear model whose errors have mean 0, are uncorrelated and have equal variance, the ordinary least squares estimator is the best linear unbiased estimator (BLUE): every other estimator that is linear in and unbiased for every value of the coefficients has a covariance matrix at least as large, in the order of positive semidefinite matrices. No normality is needed and no independence beyond zero correlation. All three conditions matter, and so do the two restrictions on the competitors: biased estimators such as ridge regression, and nonlinear unbiased estimators under a known non-normal error law, can do better. Gauss proved the result in 1821 to 1823; Aitken gave the matrix form and the extension to correlated errors in 1935.
Statement
Let , where is the -vector of responses, is an design matrix (its columns include the intercept, if any), is the unknown coefficient vector, and is the error vector. Assume:
- Linear model of full rank. is fixed, or random with all statements conditional on , and has rank .
- Zero mean. .
- Spherical errors. for some : the errors are uncorrelated and have equal variance. They need not be independent, identically distributed or normal.
A linear estimator of is , where the matrix may depend on but not on . It is unbiased if for every . Let be the least squares estimator. Then:
- is linear and unbiased, with .
- Best in the matrix order. For every linear unbiased , the matrix is positive semidefinite.
- Best and unique for every linear function. For every , has the smallest variance among linear unbiased estimators of , and any linear unbiased estimator of with that variance equals .
If is random, the same order holds for the unconditional covariance matrices whenever is finite.
In plain words
You want to estimate the slope of a straight-line law from noisy measurements, using a weighted sum of the measurements. You ask for a recipe that is right on average whatever the true line is. Many recipes do this: for example, take the last measurement minus the first and divide by the distance between them. Among all of them, least squares scatters least around the truth, provided the measurement errors average to zero, do not move together, and all have the same spread. The bell curve is not needed. If you allow recipes that are wrong on average, or recipes that are not weighted sums and use a known shape of the errors, you can sometimes beat least squares.
Proof
Part 1. with , which exists because has rank , so is positive definite. . .
Unbiasedness of a linear estimator. . This equals for every if and only if : take to be each unit vector in turn.
Part 2. Let be linear and unbiased, and write . Then , so , and also . Hence
The difference from is , and for every , so it is positive semidefinite.
Part 3. A linear estimator of is unbiased for every if and only if , by the same argument. Let , the hat matrix, which is the orthogonal projection onto the column space of . Write . The first part is , the same for every admissible , and . The two parts are orthogonal, so
So , with equality if and only if , that is, , so the estimator is . (Part 2 also follows from part 3 by taking for each .)
Random . If is conditionally unbiased, then by the law of total variance , because is constant. The same holds for , and the expectation of a positive semidefinite matrix is positive semidefinite.
The proof uses only the first two moments of . Normality enters nowhere.
Consequences
- Predictions and fitted values. For any point , is the BLUE of the mean response . Every fitted value is BLUE for its mean, and .
- Scalar summaries. The matrix order implies the order of every monotone summary: the total variance , the generalized variance and the mean squared prediction error over any set of points are all smallest for within the linear unbiased class.
- Rank-deficient designs. If has rank , itself has no unbiased estimator, but every estimable function , with in the row space of , has the BLUE for any least squares solution . This is the form used for analysis of variance models.
- Correlated errors (Aitken). If with known and positive definite, apply the theorem to , whose errors are spherical. The BLUE is the generalized least squares estimator , with covariance . With a diagonal this is weighted least squares.
- Normal errors. If in addition , then is a complete sufficient statistic, and by the Lehmann-Scheffé theorem is the minimum variance unbiased estimator among all unbiased estimators, linear or not. It also reaches the Cramér-Rao bound.
- The residual variance. Under the same three conditions, is unbiased for , since . So is an unbiased estimate of , which is what the usual standard errors use.
Tightness
A linear unbiased competitor that loses. With , the endpoint slope is linear and unbiased for the slope, with variance . The least squares slope has variance . The theorem says that no choice of weights can go below .
Linearity is needed when the error law is known. Let with iid uniform on , so and , with variance . The midrange is unbiased for (by symmetry) and has variance . For that is against for the mean, and the ratio tends to 0 as grows. The midrange is not linear, and it is unbiased only because the error law is symmetric. Hansen (2022) argued that "linear" can be dropped if unbiasedness is required for every error distribution with the stated moments; Pötscher and Preinerstorfer (2024) showed that this class of estimators is the same as in the classical theorem. Dropping "linear" while keeping unbiasedness only for one error law is false, as the midrange shows.
Unbiasedness is needed. Ridge regression, , is linear but biased. Hoerl and Kennard (1970) showed that for every and some gives a smaller total mean squared error than least squares. For coefficients with normal errors, the James-Stein estimator, which is neither linear nor unbiased, has smaller total mean squared error than for every (with the error measured in the metric of ). So "best" is only within the class.
Equal variances are needed. Let and , uncorrelated. The least squares slope is still unbiased, with variance . Weighted least squares with weights has variance , 44% less. See heteroscedasticity.
Uncorrelatedness is needed, but not exactly. Kruskal (1968) showed that, for a general error covariance , least squares is still BLUE if and only if maps the column space of into itself. For example, equicorrelated errors, with , leave least squares BLUE in any model with an intercept, since stays in the column space. So condition 3 is sufficient but not necessary.
Zero mean is needed. If , for example when a relevant predictor is omitted and correlated with the included ones, or when a predictor is measured with error, is biased, and the theorem says nothing.
History
Gauss first justified least squares in 1809 by assuming normal errors. In the Theoria combinationis observationum erroribus minimis obnoxiae, presented in two parts in 1821 and 1823, he dropped that assumption and proved that, for any error law with mean 0 and finite variance, least squares gives the linear unbiased combination of the observations with the least mean squared error; this is the theorem in its scalar form. Andrei Markov presented the result in his probability textbook (first edition 1900, second 1908). Jerzy Neyman, in 1934, called it Markov's theorem, which gave the name its second half; Plackett's 1949 note set out Gauss's priority. Alexander Aitken gave the matrix statement and the extension to correlated errors with a known covariance in 1935. Kruskal's 1968 coordinate-free paper settled when least squares and the Aitken estimator coincide.
References
- Carl Friedrich Gauss, Theory of the Combination of Observations Least Subject to Errors, translated by G. W. Stewart, SIAM Classics in Applied Mathematics 11, 1995, Part One and Part Two of the Theoria combinationis (1821 and 1823), where least squares is shown to give the linear unbiased combination of least mean squared error for any error law
- A. C. Aitken, On least squares and linear combination of observations, Proceedings of the Royal Society of Edinburgh 55, 1935, pp. 42 to 48, The whole paper (the matrix form of the theorem and the generalized least squares estimator for correlated errors)
- R. L. Plackett, A historical note on the method of least squares, Biometrika 36(3/4), 1949, pp. 458 to 460, The whole note (Gauss's 1821 to 1823 proof, Markov's textbook account and the name)
- George A. F. Seber and Alan J. Lee, Linear Regression Analysis, second edition, Wiley, 2003, Chapter 3 (least squares estimation, the Gauss-Markov theorem and its generalization to correlated errors)
- William Kruskal, When are Gauss-Markov and least squares estimators identical? A coordinate-free approach, Annals of Mathematical Statistics 39(1), 1968, pp. 70 to 75, The whole paper (least squares is best linear unbiased under a general covariance if and only if the covariance maps the column space of X into itself)
- Benedikt M. Pötscher and David Preinerstorfer, A comment on: A modern Gauss-Markov theorem, Econometrica 92(3), 2024, pp. 913 to 924, The whole comment (the version of Hansen 2022 without the word linear covers the same estimators as the classical Aitken theorem)
Where this leads
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W4 complete |
|
Tag 4143Z0 Edit this page History Report an error Markdown