The chi-square distribution
Whenever a statistic is built by adding up squared differences, such as observed vs expected counts, its sampling distribution tends to follow a chi-square distribution. That makes it one of the workhorse probability distributions.
Shape
- Never negative, because it’s built from squares.
- Strongly right-skewed with few df, and more symmetric as df increase.
- Mean = df, and variance = 2 × df. So a χ² value close to its df is unremarkable, and one far above it is surprising.
Critical values (α = .05)
| df | Critical χ² |
|---|---|
| 1 | 3.841 |
| 2 | 5.991 |
| 3 | 7.815 |
| 4 | 9.488 |
| 9 | 16.919 |
In the hair and eye colour example, χ² = 138.29 with 9 df is far beyond 16.919, giving p < .001. Note that 3.841 = 1.96², because with 1 df the chi-square distribution is the square of a standard normal variable.
Where it’s used
- Chi-square test of independence and goodness of fit.
- McNemar’s test, the Kruskal-Wallis H test and the Friedman test, which have approximate chi-square distributions.
- Likelihood-ratio tests in logistic, Poisson and other regression models.
- Model fit tests in factor analysis and SEM.
Why only the upper tail?
In a chi-square test, a small statistic means the data fit the null hypothesis well, and a large one means they don’t. Only large values count as evidence against H₀, so the p-value is the area to the right of your statistic, even though the hypothesis itself (any departure from independence) isn’t “one-sided”.
More in Probability distributions
Try it with the free tools
Run this on your own data
Upload a dataset and ask your question in plain English. Analytika checks the assumptions, picks the test, runs it, and writes the results up in APA format.