What the inverse chi-square returns
The chi-square distribution is what you get when you add up squared standard normal values. It only takes non-negative values, it is skewed to the right, and its shape is controlled entirely by one number: the degrees of freedom.
The inverse chi-square returns the value that has p of the area to its left. In testing, you almost always want p = 1 − α, which puts the critical value in the upper tail.
- Mean: ν. Variance: 2ν — both grow with the degrees of freedom.
- df = 1: the distribution of a single squared z-score.
- df = 2: an exponential distribution with mean 2.
- Large df: approaches a normal curve by the central limit theorem.
Why chi-square tests are one-tailed
A t-test can fail in either direction, so its rejection region is split. A chi-square test cannot: the statistic is a sum of squared differences, so it is never negative and only large values indicate a mismatch.
That means you never halve α. For a test at the 5% level with 10 degrees of freedom, you need χ² > 18.307, and the whole 5% sits in that single upper tail.
Enter 0.95, not 0.05. The tool takes a cumulative probability. If you type α = 0.05 you will get the 5th percentile — a small value in the left tail — which is not the rejection threshold you want.
Worked examples
Goodness of fit with six categories
A die is rolled 120 times and you compare observed counts with the expected 20 each. With 6 categories, df = 5. At α = 0.05 the critical value is χ² = 11.070. A computed statistic of 9.4 does not reject fairness; 13.2 does.
A contingency table
A 3 × 4 table of survey responses gives df = (3−1)(4−1) = 6. At α = 0.01 the critical value is 16.812. Anything above that suggests the two variables are associated.
A confidence interval for a variance
With n = 20, df = 19. The 95% interval for σ² uses both χ²(0.975, 19) = 32.852 and χ²(0.025, 19) = 8.907 — the two tails are asymmetric, which is why variance intervals are not symmetric around the estimate.
Critical value table
| df | α = 0.10 | α = 0.05 | α = 0.01 |
|---|---|---|---|
| 1 | 2.706 | 3.841 | 6.635 |
| 2 | 4.605 | 5.991 | 9.210 |
| 5 | 9.236 | 11.070 | 15.086 |
| 10 | 15.987 | 18.307 | 23.209 |
| 20 | 28.412 | 31.410 | 37.566 |
| 30 | 40.256 | 43.773 | 50.892 |
Where it is used
- Goodness-of-fit tests — does an observed frequency table match a hypothesised distribution?
- Tests of independence — are two categorical variables associated in a contingency table?
- Variance intervals and tests — the sampling distribution of (n−1)s²/σ² is chi-square.
- Model comparison — the likelihood-ratio statistic −2lnΛ is asymptotically chi-square, which underlies many nested-model tests.
Frequently asked questions
What is χ²(0.95, df = 10)?
18.307. This is the 5% upper-tail critical value with 10 degrees of freedom — the number you compare a goodness-of-fit statistic against.
Why can't chi-square be negative?
Because it is a sum of squared quantities. Every term is non-negative, so the total is too, and the distribution lives entirely on [0, ∞).
How do I find degrees of freedom for a contingency table?
(rows − 1) × (columns − 1). A 3 × 4 table therefore has 2 × 3 = 6 degrees of freedom.
Should I use a one-tailed or two-tailed test?
Chi-square tests are inherently one-tailed — only large values are evidence against the null hypothesis. Do not halve α.
What is the mean of a chi-square distribution?
It equals the degrees of freedom. With df = 10 the mean is 10, while the 95th percentile is 18.307 — a clear picture of the right skew.
Is this the same as CHISQ.INV in Excel?
Yes. =CHISQ.INV(p, df) returns the left-tail value, and =CHISQ.INV.RT(α, df) returns the upper-tail critical value directly.