4.5 Linear Models

1 "Gaussian-Adjacent" Distributions

1.1 Chi Square Distribution

If Z1,⋯,Zd∼i.i.dN(0,1), then V=∑i=1dZi2∼χd2=Gamma(d2,2),EV=d,Var(V)=2d.
By CLT, V−d2d⇒N(0,1). So informally, Vd≈N(1,2d)→1.

1.2 t Distribution

If Z∼N(0,σ2) and V∼σ2χd2, Z⊥⊥V, then ZVd∼td⇒N(0,1).

1.3 F Distribution

If V1∼σ2χd12 and V2∼σ2χd22, V1⊥⊥V2, then V1/d1V2/d2∼Fd1,d2⇒1d1χd12 as d2→∞.

2 One-Sample T-test

Xi∼i.i.dN(μ,σ2)⟺X∼Nn(μ⋅1n,σ2In). Want to test H0:μ=0 vs H1:μ≠0. Recall from this example the UMPU test is to reject for extreme R=nX―||X||=Corr(X,1n). And T=nX―S2=||Proj1nX||||Proj1n⊥X||n−1sgn(X―)=R1−R2.

2.1 Change of Basis

Let Q=[|||q1q2⋯qn|||]=n[|q1Qr|], where q1=1n1n, q2,⋯,qn are complete orthonormal basis (like via Gram-Schmidt). So the new basis is Z=QTX=(q1TXQrTX)=(nX―QrTX).

||QrTX||2=||QTX||2−||q1TX||2=||X||2−nX―2=(n−1)S2.Z1∼N(nμ,σ2),Zr=QrTX∼N(0,σ2In−1)⇒S2=1n−1||Zr||2∼σ2n−1χn−12⊥⊥Z1.

(We already know from Basu's theorem)

3 Canonical Linear Model

Assume Z=d0d1=d−d0dr=n−d(Z0Z1Zr)∼Nn((μ0μ10),σ2In).
Here μ0∈Rd0,μ1∈Rd1,σ2>0. Test H0:μ1=0 vs H1:μ1≠0. Then z is exponential family p(z)=eμ1σ2TZ1+μ0σ2TZ0−12σ2||Z||2.

Compare:

Z t χ2 F
Z1σ Z1σ^ |Z1|2σ2 |Z1|2/d1σ^2

3.1 Intervals for Canonical Model

How to test H0:μ1=μ10∈Rd? The problem is μ1 is not a natural parameter. We translate the problem to (Z0Z1−μ10Zr)∼Nd((μ0μ1−μ100),σ2In).
Can do some tests with Z1−μ10 replacing Z1. Invert:

4 General Linear Model

Many problems can be put into canonical linear model after change of basis.
Basic setup: observer Y∼Nn(θ,σ2In),σ2>0 known or unknown. Test H0:θ∈Θ0 vs H1:θ∈Θ∖Θ0, where Θ0⊂Θ are subspaces of Rn, dim⁡(Θ0)=d0,dim⁡(Θ)=d=d0+d1.
The idea is to rotate into canonical form.
For Q=n[Q0⏞d0Q1⏞d1Qr⏞n−d], where Q0,Q1,Qr are respectively orthonormal basis for Θ0,Θ∩Θ0⊥,Rn∩Θ⊥, and Z=QTY∼Nn((Q0TθQ1Tθ0),σ2In). So H0:Q1Tθ=0. Like canonical linear model, we can do z, χ2, t, F test as appropriate.