Chi-Square Test Calculator
Perform a chi-square goodness-of-fit test comparing observed and expected frequencies across four categories.
Inputs
Results
Chi-Square Statistic (χ²)
6.25
P-Value (approx)
0.1
How to Use This Calculator
- Enter Observed Count 1, Expected Count 1, and Observed Count 2.
- Set Expected Count 2, Observed Count 3, and Expected Count 3.
- Adjust Observed Count 4, Expected Count 4 as needed.
- Review Chi-Square Statistic (χ²) and P-Value (approx).
- Use Degrees of Freedom and Significant at α=0.05 (1=Yes) to inform your decision.
How the result changes with Observed Count 1
| Observed Count 1 | Chi-Square Statistic (χ²) | P-Value (approx) |
|---|---|---|
| 10,000 | 2,480,043.75 | 0 |
| 35,000 | 30,555,043.75 | 0 |
| 65,000 | 105,495,043.75 | 0 |
| 90,000 | 202,320,043.75 | 0 |
What each input means
- Observed Count 1
- Observed frequency for the first category.
- Expected Count 1
- Expected frequency for the first category under the null hypothesis.
- Observed Count 2
- Observed frequency for the second category.
- Expected Count 2
- Expected frequency for the second category under the null hypothesis.
- Observed Count 3
- Observed frequency for the third category.
- Expected Count 3
- Expected frequency for the third category under the null hypothesis.
- Observed Count 4
- Observed frequency for the fourth category.
- Expected Count 4
- Expected frequency for the fourth category under the null hypothesis.
How this is calculated
Worked example, using the default values
- Identify Input Parameters4 parametersObserved Count 1 = 50, Expected Count 1 = 40, Observed Count 2 = 30, Expected Count 2 = 40 = 8 input(s) provided
- Calculate Chi-Square StatisticChi-Square Statistic6.25 = 6.25
- Calculate P-ValueP-Value0.0984 = 0.0984
- Calculate Degrees of FreedomDegrees of Freedom = df3 = 3
- Calculate Significant at α=0.05Significant at α=0.050 = 0
Engine last updated . Checked against 2 independently-derived tests — how we verify calculators.
Related Calculators
The questions that sit next to this one — chosen by subject, including calculators filed under a different category.
T-Test Calculator
Calculate the t-statistic, degrees of freedom, and approximate p-value for a one-sample t-test.
StatisticsFisher's Exact Test Calculator
Perform Fisher's exact test on a 2x2 contingency table to determine if there is a significant association between two categorical variables.
StatisticsMultiple Regression Calculator
Evaluate a multiple regression model using SSR, SSE, number of predictors, and sample size. Calculate R², adjusted R², F-statistic, and model fit metrics.
More in Math & Statistics.