F-test
Partition the design matrix $X = \pmat{X_0 & X_1}$ with $X_0 \in \R^{n\times p_0}, X_1 \in \R^{n\times (p-p_0)}$. Consider the nested models
Model |
Hypothesis |
Design |
Fitted values |
|---|---|---|---|
Saturated |
$μ\in \R^n$ |
$I_n$ |
$\hat μ = Y$ |
Full |
$μ\in \mathrm{colspan}(X)$ |
$X$ |
$\hat μ = PY$ |
Sub/Null |
$μ\in \mathrm{colspan}(X_0)$ |
$X_0$ |
$\hat μ = P_0Y$ |
where $P = X(X^T X)\inv X^T$ and $P_0 = X_0(X_0^T X_0)\inv X_0^T$.
If we partition $β = \pmat{β_0 \\ β_1}$ the same way ($β_0\in \R^{p_0}$, $β_{1}\in \R^{p-p_0}$), then the sub-model is saying $β_1 = \v 0$.
The size $α$ generalised likelihood ratio test for testing $H_0:$ sub-model vs $H_1:$ full model (minus sub-model) rejects $H_0$ if $$ \begin{align*} \frac{\|(P-P_0) Y\|^2 / (p-p_0)}{\|(I-P)Y\|^2/(n-p)} > F_{p-p_0, n-p}(α). \end{align*} $$ (Derivation)