NETMaths
The bookUnit 4 · Linear Models and Multivariate80 / 83

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.

Gauss–Markov

For Y=Xβ+εY = X\beta + \varepsilon with E[ε]=0,Cov(ε)=σ2IE[\varepsilon] = 0, Cov(\varepsilon) = \sigma^{2}I and X of full rank, the OLS estimator β\betâ = (XᵀX)⁻1XTY^{1}X^{T}Y is the BLUE. Normality is not needed for this — only for the t and F distributions.

Heteroscedasticity: if Var(εi)=σ2xi2Var(\varepsilon_{i}) = \sigma^{2}x_{i}^{2}, divide through by xix_{i}; the BLUE of β\beta in Yi=βxi+εiY_{i} = \beta{}x_{i} + \varepsilon_{i} becomes (1/n)(Yi/xi)(1/n)\sum(Y_{i}/x_{i}), not the OLS formula.

Distribution theory (normal errors)

β- \betâ ~ N(β,σ2(XTX)N(\beta, \sigma^{2}(X^{T}X)1)^{1}).

  • RSS/σ2=(YXβ/\sigma^{2} = (Y - X\betâ)T(YXβ)^{T}(Y - X\betâ)/σ2)/\sigma^{2} ~ χnp12**\chi^{2}_{n-p-1}**, independent of β\betâ (and of XβX\betâ).
  • Total and regression sums of squares are non-central χ2\chi^{2} unless the corresponding parameters vanish.

R2R^{2} and adjusted R2R^{2}

R2=R^{2} = SSR/SST; adjusted R2=1(1R2)(n1)/(np1)R^{2} = 1 - (1 - R^{2})(n-1)/(n-p-1). Adjusted R2R^{2} can decrease when a useless predictor is added — that is its point.

ANOVA and estimability

One-way model Yij=μ+αi+εijY_{ij} = \mu + \alpha_{i} + \varepsilon_{ij} is overparametrised: only functions of the cell means μ+αi\mu + \alpha_{i} are estimable.

Function Estimable?
μ+α1\mu + \alpha_{1}
α1α2(\alpha_{1} - \alpha_{2} (any contrast)
2μ+α1+α22\mu + \alpha_{1} + \alpha_{2}
μ\mu alone
α1\alpha_{1} alone
μ+α1+α2\mu + \alpha_{1} + \alpha_{2}

A linear function cTβc^{T}\beta is estimable ⇔ c is in the row space of X.

Design degrees of freedom

Design Error d.f.
CRD, k treatments, N units N − k
RBD, k treatments, r blocks (k−1)(r−1)
LSD, p × p (p−1)(p−2)

Key takeaways

  • Gauss–Markov needs equal variances; otherwise weight by 1/variance.
  • RSS/σ2/\sigma^{2} is central χ2\chi^{2} with n − p − 1 d.f.; the other sums of squares are generally non-central.
  • In ANOVA only contrasts and cell means are estimable.

See it move

What Gauss–Markov assumes, and what it does notinteractive

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

Next: Multivariate normal distribution

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

Open this in the full syllabus view · Unit 4