A worked example, rendered from real sample data. Sign in to run the tool on your own input.
10 20 15 25
12 18 16 24═══ Verdict ═══
✗ Not significant: χ²(3) = 0.6597, p = 0.882634 ≥ α = 0.05
ℹ Chi-square goodness of fit
✓ All expected counts are 5 or more, so the chi-square approximation holds
ℹ Read as observed vs expected. If your two lines are two groups instead, switch the mode to Independence.
═══ Test Statistic ═══
Test: Chi-square goodness of fit
Chi-square: 0.6597
Degrees of freedom: 3
p-value: 0.882634
Critical value (α 0.05): 7.8147
Decision: fail to reject the null
Total observations: 70
Null hypothesis: the observed counts follow the expected distribution
═══ Effect Size ═══
Cohen's w: 0.0971
Interpretation: negligible association
A big chi-square with a tiny effect size just means you have a lot of data.
═══ Observed vs Expected ═══
Cell Observed Expected (O-E)²/E StdResid
Category 1 10.00 12.00 0.3333 -0.58
Category 2 20.00 18.00 0.2222 0.47
Category 3 15.00 16.00 0.0625 -0.25
Category 4 25.00 24.00 0.0417 0.20
═══ Where The Difference Is ═══
• No cell has a standardized residual beyond ±2.
The overall statistic is not being driven by one particular cell.
═══ Assumptions and Limits ═══
Counts must be frequencies, not percentages, means or rates.
Each observation must fall in exactly one cell, and observations must be independent.
Expected counts should be at least 5 in every cell (some texts allow 20% of cells between 1 and 5).
Chi-square tells you that the pattern differs from the null; it does not say which direction or by how much on its own.
It does
…
Test chi-square statistics for categorical data. Part of the DevTools Surf developer suite. Browse more tools in the Statistics collection.