Chi-square distribution
The chi-square distribution with k degrees of freedom is the distribution of a sum of k squared independent standard normals; it is right-skewed and non-negative.
- independent standard normal variables
- degrees of freedom
- sample variance (divisor )
- population variance
When to use
- Reference distribution for goodness-of-fit and independence tests (always the upper tail), likelihood-ratio tests and the Kruskal–Wallis approximation.
- Intervals for a variance from normal data.
How to interpret
- Right-skewed; becomes more symmetric as df grows. Mean equals df, so a statistic near its df is unremarkable.
- Chi-square tests of fit use only the upper tail: large values mean poor agreement.
Common mistakes
- Doubling the tail for a chi-square test of fit; the p-value is .
- Wrong df: goodness of fit uses (minus estimated parameters); an table uses .
- Using the variance interval for non-normal data: it is very sensitive to non-normality.
Example
With df , the 5% critical value is ; an observed has p-value . For df , the central 95% lies between 2.7004 and 19.0228.