GLM hypothesis testing Flashcards
General linear hypothesis on β
H0: Cβ = d
C(rxp)
d(rx1)
r: number of hypotheses we are testing
Linear independence hypothesis: all the coefficients other than β0 are equal to 0.
Likelihood ratio test statistic for σ2 known
lr = (SSEH0 - SSE) / σ2 = ΔSSE/σ2 ~χ2r
Unless β^H0 = β^, SSEH0 > SSE because we are introducing extra restrictions.
Constrained MLE β^H0 and SSE H0
β^H0 = β^ - (X’X)-1 C’[C(X’X)-1C’]-1(Cβ^-d)
SSEH0 = SSE + (β^ - β^H0)’ X’X (β^ - β^H0)
ΔSSEH0
(Cβ^-d)’[C(X’X)-1C’]-1(Cβ^-d)
It is not necessary to compute β^H0.
Likelihood ratio test statistic for σ2 unknown
F = (n-p)/r * ΔSSE/SSE ~ Fr, n-p = 1/r (Cβ^-d)’cov^(Cβ^)-1(Cβ^-d) = 1/r W
W: Wald statistics, distance between Cβ^ and the hypotesised value d, weighted by cov^(Cβ^).
cov^(Cβ^) = σ^2C(X’X)-1C’
Coefficient of multiple linear determination
R2 = 1 - SSE / Σ(yi-y_)2 ∈ [0,1]
GLM: F statistic for H0: βj = 0
F = β^j / √ var^(βj) | H0 ~ tn-p
F statistic for H0: linear independence
F = R2/(1-R2) * (n-p)/(p-1)
Hypothesis testing in R
library(car)
lht(fit, C, d=NULL)
- (n-pmin) Null VS (n-pmax) Residual