Although Yi have different distributions thus the histogram of Yi cannot reflect anything, we don't want Yi at our hand to be skewed.
If skewness is presented, we should use transformations to make them distributed more symmetrically.
But... Think twice before transforming the data.
Refers to standardization of data: "What?! It's useless to me. I need the result expressed in mg/dL, not standard deviations. Don't you, statisticians, understand, that clinical parameters are meaningful along with the units? This is hopeless and I'm gonna throw this in the garbage right now."
Model Selection
In a nutshell:
When having gotten a model, see the p-value of F-statistic.
When comparing models, look at the adjusted R2 or MSE (they are equivalent).
* Why Significant Variables But Low R2 ?
Significance: Find a linear relationship (trend) between X and Y.
Low R2: Linear relationship cannot fit very well.
发现一个可靠的规律,不等于这个规律足以预测个体。(GPT-6.1-Sol)
Inference in MLR
Recall
b=(XTX)−1XTY
Y^=HY,H=X(XTX)−1XT
e=(I−H)Y
s2=n−peTe=MSE
The Fundamental Theorems
Lemma Suppose X∼N(μ,I), A is a projection matrix with rank r, then
XTAX∼χr,μTAμ2
The definition of the non-central chi-square distribution:
If X1,…,Xk are independent normal random variables with means μi and unit variances, then
i=1∑kXi2∼χk,∑i=1kμi22.
▶
Proof
The key is to show that XTAX can be expressed as the sum of squares of r independent normal random variables.
Since A is symmetric and idempotent, it admits an orthogonal decomposition
A=QΛQT,
where Λ=diag(1,…,1,0,…,0), with r ones.
Let Y=QTX. Then the components of Y are independent, and
XTAX=i=1∑rYi2.
The sum of squared means of the first r components of Y is
μTQΛQTμ=μTAμ.
Therefore,
XTAX∼χr,μTAμ2.
Lemma Suppose Ap×p is a symmetric and idempotent matrix, B is a k×p matrix and Y∼Np(μ,Σ). Then
BY⊥YTAY⟺BΣA=O
▶
Proof
The core is to prove that BY⊥AY. Because a linear transformation of a multivariate normal random vector is still a multivariate normal random vector,
[AYBY]=[AB]Y
is MVN. Thus independency ⟺ irrelevance. And we have
Cov(BY,AY)=BΣAT=BΣA=O.
Therefore, BY⊥AY.
With the two lemmas above, we have
Theorem Suppose that Y∼Nn(Xβ,σ2I) where X is a full rank n×p matrix, then
b∼Np(β,σ2(XTX)−1).
σ2eTe=σ2(n−p)s2∼χn−p2.
b⊥s2.
F-Test for Linear Relation
Hypothesis:
H0:β1=⋯=βp−1=0
Ha:o.w.
Test statistic:
F=MSEMSR
(H−J)Y⊥(I−H)Y,σ2YT(I−H)Y∼χn−p2, and under H0 we have
σ2YT(H−J)Y=σ2εT(H−J)ε∼χp−12
So under H0,
F∼Fp−1,n−p
Reject if F is large enough.
t-Test for Individual Coefficients
Hypothesis:
H0:βk=0
Ha:o.w..
Test statistic:
t=s(bk)bk
We have
b∼N(β,σ2(XTX)−1)
Thus
bk∼N(βk,σ2[(XTX)−1]k,k)
And because b⊥s2 and σ2eTe=σ2(n−p)s2∼χn−p2, we have
t∼tn−p
under H0.
Reject if ∣t∣ is large enough.
* Another View
Use GLT (General Linear Test), the full model is
Y=Xβ+ε
the reduced model is
Y=X−kβ−k+ε
where X−k is obtained by removing the k-th column of X, and β−k is obtained by removing βk from β.
The general linear test statistic is
F=SSEF/dfF(SSER−SSEF)/(dfR−dfF)
and we know dfR=n−p+1,dfF=n−p, and
σ2SSER−SSEF=YT(…)Yσ2SSEF∼χ12∼χn−p2
and they are independent. So F∼F1,n−p.
Furthermore, it can be shown that
SSER−SSEF=[(XTX)−1]k,kbk2
So F=t2.
The t-test is equivalent to a specific F-test, so the t-test examines the significance of a variable when it is added last to the model.