Chi-Squared Distribution
📂Probability DistributionChi-Squared Distribution
Definition
The chi-square distribution refers to a continuous probability distribution χ2(r) with the following probability density function, defined over the degrees of freedom r>0.
f(x)=Γ(r/2)2r/21xr/2−1e−x/2,x∈(0,∞)
Basic Properties
Moment Generating Function
- [1]: m(t)=(1−2t)−r/2,t<21
- [2] If the mean and variance are: X∼χ2(r), then
E(X)=Var(X)=r2r
- [3]: Suppose a random sample X:=(X1,⋯,Xn)∼χ2(r) following the chi-square distribution is given. The sufficient statistic T for r is as follows.
T=(i∏Xi)
Theorems
- [a]: Let X∼χ2(r). If k>−r/2, then the kth moment exists and
EXk=Γ(r/2)2kΓ(r/2+k)
- [b]: Γ(2r,2)⟺χ2(r)
- [c]: If two random variables U,V are independent and U∼χ2(r1), V∼χ2(r2), then
V/r2U/r1∼F(r1,r2)
- [d]: If X∼N(μ,σ2), then
V=(σX−μ)2∼χ2(1)
Explanation
The chi-square distribution is widely used throughout statistics, often first encountered in goodness-of-fit tests or analysis of variance, among others.
Theorem [d] is particularly important as the converse of this theorem allows detecting issues with the normality of residuals when the squared standardized residuals do not follow the chi-square distribution χ2(1).
Proof
Strategy [1], [a]: Use the trick of taking stuff out of the definite integral sign and changing it to a gamma function through substitution integration.
Definition of the Gamma Function:
Γ(x):=∫0∞yx−1eydy
[1]
By substituting as y=x(1/2−t), since 1/2−t1dy=dx
m(t)=====∫0∞etxΓ(r/2)2r/21xr/2−1e−x/2dxΓ(r/2)2r/21∫0∞xr/2−1ex(1/2−t)dxΓ(r/2)2r/21∫0∞(1/2−ty)r/2−1ey1/2−t1dy(1/2−t)−r/2Γ(r/2)2r/21∫0∞yr/2−1eydy(1−2t)−r/2Γ(r/2)1∫0∞yr/2−1eydy
according to the definition of the gamma function
m(t)=(1−2t)−r/2,t<21
■
[2]
Substituting into the moment formula [a].
■
[a]
By substituting as y=x/2, since 2dy=dx
EXk====∫0∞xkΓ(r/2)2r/21xr/2−1e−x/2dxΓ(r/2)2r/21∫0∞xr/2+k−1e−x/2dxΓ(r/2)2r/21∫0∞2r/2+k−1yr/2+k−1e−y2dyΓ(r/2)2k∫0∞y(r/2+k)−1e−y2dy
according to the definition of the gamma function
EXk=Γ(r/2)2kΓ(r/2+k)
■
[b]
Shown through the moment-generating function.
■
[c]
Deduced directly from the joint density function.
■
[d]
Deduced directly from the probability density function.
■
See Also