Chi-Square Goodness-of-Fit Test

Do observed counts match a claimed distribution? (χ²GOF-Test)

Inputs

One count per category.

Expected distribution
Significance level α

Results update as you type.

Results

Fail to reject H₀: χ² = 4.32, p-value = 0.2289

The p-value (0.2289) is greater than α = 0.05, so the data do not give enough evidence to conclude that the population does not follow the claimed distribution.

Chi-square distribution with 3 degrees of freedom curve. The shaded p-value region is the area to the right of χ² = 4.32, with area 0.2289. Dashed line marks the critical value 7.815.051015χ² = 4.32critical 7.815

Results

χ² test statistic4.32
df = k − 13
p-value0.2289
Critical value7.815
Decision at α = 0.05Fail to reject H₀
Observed vs. expected
CategoryObserved OExpected E(O − E)² ÷ E
118251.96
222250.36
330251
430251
Total1001004.32

On the TI-84

Observed counts in L1, expected counts in L2. STAT → TESTS → D:χ²GOF-Test, df = number of categories − 1. (TI-84 Plus and newer.)

χ²GOF-Test L1, L2, 3

Show steps
  1. Hypotheses. H₀: the population follows the claimed distribution   Ha: it does not
  2. Expected counts. E = n × (claimed proportion) for each category: 25, 25, 25, 25.
  3. Test statistic. χ² = Σ (O − E)² ÷ E = 4.32, with df = 4 − 1 = 3.
  4. p-value. Right-tailed test: area to the right of the test statistic: p-value = 0.2289. Since 0.2289 > 0.05, fail to reject H₀.
  5. Critical-value method. At α = 0.05, the rejection region is χ² ≥ 7.815. The test statistic χ² = 4.32 is not in the rejection region, so we fail to reject H₀. (Same decision as the p-value method.)
  6. Conclusion. The p-value (0.2289) is greater than α = 0.05, so the data do not give enough evidence to conclude that the population does not follow the claimed distribution.

About this calculator

When to use this

A goodness-of-fit test checks whether the counts in one categorical variable match a claimed distribution, such as "a die is fair" or "customers are spread evenly across the week."

How it works

For each category, compare the observed count O with the count you'd expect, E, if the claim were true. The statistic χ² = Σ(O − E)²/E is small when they match and large when they don't, so the test is always right-tailed. Every expected count should be at least 5.