Free Chi-Square Test Calculator
Calculate the chi-square test statistic and degrees of freedom for a goodness-of-fit or independence test.
Chi-Square Statistic
2.708333
Degrees of Freedom (k-1)3
Total Observed150
Total Expected150.00
Chi-Square Statistic vs Observed 1
How to Perform a Chi-Square Test
Formula
chi-square = Sum of [(Oi - Ei)^2 / Ei]
Compare the computed chi-square statistic to the chi-square distribution with k-1 degrees of freedom (where k is the number of categories). If the statistic exceeds the critical value, reject the null hypothesis that the observed distribution matches the expected distribution.
Example Calculation
Four categories: observed 45, 35, 25, 45; expected 40, 40, 30, 40.
- 01c1 = (45-40)^2/40 = 25/40 = 0.625
- 02c2 = (35-40)^2/40 = 25/40 = 0.625
- 03c3 = (25-30)^2/30 = 25/30 = 0.8333
- 04c4 = (45-40)^2/40 = 25/40 = 0.625
- 05Chi-square = 0.625 + 0.625 + 0.8333 + 0.625 = 2.7083
- 06df = 4 - 1 = 3
- 07Critical value at alpha=0.05, df=3 is 7.815
- 08Since 2.7083 < 7.815, do not reject H0
Frequently Asked Questions
Learn More
Understanding the Normal Distribution
Learn what the normal distribution is, why it matters in statistics, and how to use the bell curve for probability calculations, z-scores, and real-world data analysis.