Chi Square Test Calculator
Perform a chi-square test for independence or goodness of fit. Enter observed and expected frequencies to compute the chi-square statistic, degrees of freedom, and p-value.
Was this calculator helpful?
How to use this tool?
How to Use the Chi-Square Test Calculator
- Enter Observed Frequencies: In the first text area, type your observed counts separated by commas (e.g.,
10, 20, 30). - Enter Expected Frequencies: In the second text area, type your expected counts separated by commas (e.g.,
15, 15, 30). The number of values must match the observed values. - Select Test Type: Choose either Goodness of Fit (for one variable) or Test of Independence (for two variables).
- Choose Significance Level (α): Pick a value (commonly 0.05) from the dropdown.
- Click “Calculate Chi-Square”: The calculator will compute the chi-square statistic, degrees of freedom (df = number of categories - 1), and p-value.
- Interpret Results: If the p-value is less than α, the result is statistically significant (reject null hypothesis). Otherwise, it is not significant.
Note: All frequencies must be positive numbers. The calculator automatically shows the formula and step-by-step calculations.
Previous Results
| Result | Inputs | Date |
|---|
Frequently Asked Questions
A chi-square test is used to determine if there is a significant difference between observed and expected frequencies in one or more categories.
If the p-value is less than your chosen significance level (e.g., 0.05), you reject the null hypothesis, indicating a significant difference.
Goodness of fit test (compares observed to expected for a single categorical variable) and test of independence (for two variables).