Chi-Square Goodness of Fit Calculator
Use this chi-square goodness-of-fit calculator to test whether observed category counts match an expected distribution. Works for equal expected proportions or custom expected proportions / counts.
| Category | Observed (O) | |
|---|---|---|
What is the Chi-Square Goodness of Fit Test?
The chi-square goodness-of-fit test determines whether sample data is consistent with a hypothesised distribution. It compares observed category counts (what you actually observed) to expected counts (what you would expect if the null hypothesis were true).
Hypotheses
- H₀ (Null): The observed frequencies match the expected distribution.
- H₁ (Alternative): The observed frequencies do not match the expected distribution.
Chi-Square Formula
Where O is the observed frequency and E is the expected frequency for each category.
Assumptions
- Random sampling.
- Categorical data with mutually exclusive categories.
- Each expected frequency should be at least 5. If expected counts are below 5, the chi-square approximation may not be reliable.
Example
A die is rolled 60 times. You expect each face to appear 10 times (equal proportions). Your observed counts are: 1→8, 2→12, 3→9, 4→11, 5→13, 6→7. Use this calculator with "Equal proportions" selected and enter your observed counts to test whether the die is fair.