Day 12 : Chi Squared

Day 12 : Chi Squared#

The chi-squared distribution (also called chi-square) with k>0, degrees of freedom is the distribution of the sum of the squares of k independent standard normal random variables.

The probability density function is given by

f(x)=12k/2Ξ“(k/2)xk/2βˆ’1eβˆ’x/2,xβ‰₯0,

where Ξ“ is the Gamma function.

The cumulative distribution function is given by

F(x)=1Ξ“(k/2)Ξ³(k2,x2),xβ‰₯0,

where Ξ³ is the lower incomplete gamma function.

πŸ”” Random Facts πŸ””#

  • It converges to a normal distribution for large k (by the central limit theorem). For many practical purposes, for k>50 the distribution is sufficiently close to a normal distribution.

  • It is a special case of the Gamma distribution (Day 9) and is one of the most widely used probability distributions in inferential statistics, notably in hypothesis testing, and confidence intervals for population variance when the underlying distribution is normal.

  • The sum of independent chi-squared variables is also chi-squared distributed. Specifically, if Xi,i=1,β‹―n, are independent chi-squared random variables with ki,i=1,β‹―,n degrees of freedom, respectively, then Y=X1+β‹―+Xn is chi-squared distributed with k=k1+β‹―+kn degrees of freedom.