Skip to content
The book

Gauss–Markov, regression, ANOVA basics

Why this is asked: Gauss–Markov needs uncorrelated errors of equal variance; with heteroscedasticity the BLUE is weighted least squares. Estimability in ANOVA is decided by whether the function is a combination of cell means.

In one sentence

Gauss–Markov says least squares is best among linear unbiased estimators and needs no normality at all — normality is what buys the tt and FF tests, and the two claims are constantly merged.

Why the exam asks it

Because "BLUE" contains its own qualifier and people read past it, and because the assumption list has four items that do four different jobs. Options attach the wrong conclusion to the wrong assumption.

The idea

The linear model is y=Xβ+ε\mathbf{y} = X\boldsymbol\beta + \boldsymbol\varepsilon with XX an n×(p+1)n\times(p+1) design matrix of full rank.

Least squares minimises ∥y−Xβ∥2\|\mathbf{y}-X\boldsymbol\beta\|^2, giving

β^=(X′X)−1X′y,y^=Hy,H=X(X′X)−1X′.\hat{\boldsymbol\beta} = (X'X)^{-1}X'\mathbf{y}, \qquad \hat{\mathbf{y}} = H\mathbf{y}, \quad H = X(X'X)^{-1}X'.

HH is the hat matrix: symmetric, idempotent (H2=HH^2=H), and projecting onto the column space of XX. Its trace is p+1p+1, the number of parameters — which is where the degrees of freedom come from.

What each assumption buys

assumption needed for E[ε] = 0 unbiasedness of OLS Var(ε) = σ²I the Gauss–Markov conclusion X of full rank β identified at all ε normal t and F tests, exact intervals Gauss–Markov needs no normality. It gives BLUE — best among LINEAR unbiased estimators. Add normality and OLS becomes the MLE and the UMVUE among all unbiased estimators, linear or not. Two different claims with two different hypotheses.
Each assumption earns a different conclusion. Normality is needed for the tests, never for Gauss–Markov.
  • E[ε]=0E[\boldsymbol\varepsilon]=0 gives unbiasedness: E[β^]=βE[\hat\beta]=\beta.
  • Var⁡(ε)=σ2I\operatorname{Var}(\boldsymbol\varepsilon)=\sigma^2I — homoscedastic and uncorrelated — gives the Gauss–Markov conclusion.
  • XX full rank makes β\beta identifiable at all; without it (X′X)−1(X'X)^{-1} does not exist.
  • Normality gives the exact tt and FF distributions.

Gauss–Markov: under the first three, β^\hat\beta is the best linear unbiased estimator — minimum variance among estimators that are linear in y\mathbf{y} and unbiased.

No normality is required. Add it and more follows: β^\hat\beta becomes the MLE and the UMVUE among all unbiased estimators, linear or not. Those are two different theorems with two different hypotheses, and conflating them is the topic's central error.

Note also what BLUE excludes. Ridge regression is biased and can have smaller mean squared error; Gauss–Markov does not contradict that, because ridge is not unbiased.

ANOVA

∑(yi−yˉ)2⏟SST=∑(y^i−yˉ)2⏟SSR+∑(yi−y^i)2⏟SSE,\underbrace{\sum(y_i-\bar y)^2}_{SST} = \underbrace{\sum(\hat y_i-\bar y)^2}_{SSR} + \underbrace{\sum(y_i-\hat y_i)^2}_{SSE},

an orthogonal decomposition — the residual vector is perpendicular to the fitted one, which is Pythagoras in Rn\mathbb{R}^n and the reason the cross term vanishes.

Degrees of freedom: n−1=p+(n−p−1)n-1 = p + (n-p-1). Then

R2=SSRSST,F=SSR/pSSE/(n−p−1)∼Fp, n−p−1R^2 = \frac{SSR}{SST}, \qquad F = \frac{SSR/p}{SSE/(n-p-1)} \sim F_{p,\,n-p-1}

under H0:β1=⋯=βp=0H_0:\beta_1=\cdots=\beta_p=0 with normal errors.

s2=SSE/(n−p−1)s^2 = SSE/(n-p-1) is unbiased for σ2\sigma^2 — the denominator is the error degrees of freedom, not nn.

What can go wrong

Multicollinearity: near-dependent columns make X′XX'X nearly singular, so variances inflate. Estimates stay unbiased and become useless — large standard errors, unstable signs. It is a precision problem, not a bias problem.

R2R^2 never decreases when a predictor is added, however irrelevant, which is why adjusted R2R^2 penalises pp. A high R2R^2 is not evidence of a good model.

Heteroscedasticity breaks Gauss–Markov but not unbiasedness; the fix is weighted least squares, which is BLUE under the corrected variance structure.

Where intuition breaks

"Gauss–Markov requires normal errors." It does not. Normality is needed for the tt and FF tests, not for BLUE.

"BLUE means best among all unbiased estimators." Among linear ones. With normality it upgrades to all, by a different theorem.

"An unbiased estimator cannot be beaten." On MSE it can, by biased estimators such as ridge.

"High R2R^2 means the model is good." R2R^2 rises with every added predictor. It measures fit to the data in hand, not validity.

"Multicollinearity biases the estimates." It inflates their variance. They remain unbiased.

"s2=SSE/ns^2 = SSE/n." SSE/(n−p−1)SSE/(n-p-1). Dividing by nn gives the MLE, which is biased low — the same nn against n−1n-1 issue as for the sample variance, with more parameters.

"The FF test tells you which predictor matters." It tests them jointly. Individual tt tests address single coefficients, and t2=F1,⋅t^2=F_{1,\cdot} ties them together.

The exam's angle

  1. Count degrees of freedom first: pp for regression, n−p−1n-p-1 for error. Most ANOVA questions are that count.
  2. Read which assumption an option invokes and check it against what that assumption actually buys.
  3. Use idempotence of HH — H2=HH^2=H, tr⁡H=p+1\operatorname{tr}H = p+1 — for questions about projections and residuals.
  4. Remember SST=SSR+SSESST=SSR+SSE and R2=SSR/SSTR^2=SSR/SST, and that R2R^2 is non-decreasing in pp.
  5. Separate bias from variance when diagnosing multicollinearity or shrinkage.

The night before

  • β^=(X′X)−1X′y\hat\beta=(X'X)^{-1}X'y; H=X(X′X)−1X′H=X(X'X)^{-1}X' is symmetric idempotent with trace p+1p+1.
  • Gauss–Markov: E[ε]=0E[\varepsilon]=0, Var⁡=σ2I\operatorname{Var}=\sigma^2I, XX full rank ⇒\Rightarrow OLS is BLUE. No normality.
  • With normality: OLS == MLE == UMVUE among all unbiased estimators.
  • SST=SSR+SSESST=SSR+SSE; df n−1=p+(n−p−1)n-1=p+(n-p-1); R2=SSR/SSTR^2=SSR/SST; F=SSR/pSSE/(n−p−1)F=\frac{SSR/p}{SSE/(n-p-1)}.
  • s2=SSE/(n−p−1)s^2=SSE/(n-p-1) is unbiased.
  • Multicollinearity inflates variance, not bias. R2R^2 never falls when a predictor is added.

See it move

What Gauss–Markov assumes, and what it does notinteractive

This visual is part of Trap Analysis

BLUE without any normality — and what normality actually buys you.

Unlock interactive visuals

The trap here

“OLS is the BLUE in every linear model” — false

Yi=βxi+εiY_{i} = \beta{}x_{i} + \varepsilon_{i} with Var(εi)=σ2xi2Var(\varepsilon_{i}) = \sigma^{2}x_{i}^{2}

Gauss–Markov assumes constant variance; here weighted least squares (the mean of Yi/xi)Y_{i}/x_{i}) has smaller variance.

More on this →

Check yourself

Consider the simple linear regression model Yi=βxi+εi,i=1,…,nY_{i} = \beta{}x_{i} + \varepsilon_{i}, i = 1, \dots, n, where E(εi)=0,Cov(εi,εk)=0E(\varepsilon_{i}) = 0, Cov(\varepsilon_{i}, \varepsilon_{k}) = 0 for i ≠ k and Var(εi)=xi2σ2Var(\varepsilon_{i}) = x_{i}^{2}\sigma^{2}. The best linear unbiased estimator of β\beta is

More in Linear Models and Multivariate

Take it further

Last revised . Found a mistake? Tell us — corrections are the fastest thing we act on.

Next: Multivariate normal distribution

Create a free account to keep your place and have this feed your study plan.

ShareWhatsAppTelegram

Open this in the full syllabus view · Unit 4