Convert chi-square statistics to p-values for goodness-of-fit, independence, and variance tests. Supports one‑tailed and two‑tailed tests with interactive chi‑square distribution visualization.
The chi‑square (χ²) distribution is a continuous probability distribution that arises when summing the squares of independent standard normal variables. It is widely used in hypothesis testing, particularly for categorical data.
Mathematical Definition:
For a chi‑square statistic χ² with k degrees of freedom, the p‑value depends on the alternative hypothesis:
Note: The χ² distribution is non‑negative and right‑skewed.
| df | Critical χ² | df | Critical χ² |
|---|---|---|---|
| 1 | 3.841 | 6 | 12.592 |
| 2 | 5.991 | 7 | 14.067 |
| 3 | 7.815 | 8 | 15.507 |
| 4 | 9.488 | 9 | 16.919 |
| 5 | 11.070 | 10 | 18.307 |
Small p‑value (typically ≤ 0.05): Strong evidence against the null hypothesis. The result is statistically significant.
Large p‑value (> 0.05): Weak evidence against the null; fail to reject the null hypothesis.
Right‑tailed is default: Most chi‑square tests (goodness‑of‑fit, independence) are right‑tailed because we reject when observed and expected frequencies differ too much, leading to a large χ².
Calculator features: