← All measures
Chi-square goodness of fit
Statistics · Test whether observed category counts match expected counts: chi-square statistic, degrees of freedom and p-value.
χ2 = ∑ (O − E)2E, df = k − 1
Result
Turn on JavaScript to calculate.
How it works
Each category contributes (observed − expected)² ÷ expected, and the contributions add to the chi-square statistic. The p-value is the chance of a statistic at least this large if the expected counts were true, from the chi-square distribution with categories − 1 degrees of freedom. The test is unreliable when many expected counts are small.
Results are estimates for learning and planning. Check anything you rely on with a qualified professional.
