Chi-Square Test Calculator
Enter observed counts, or a contingency table, to test whether they fit what you expect.
Observed counts, rows separated by semicolons, like 10, 20; 30, 40. At least 2 rows and 2 columns.
How unlikely a result must be, if the null hypothesis were true, before it is rejected.
Result
You entered
p-value
Significance level
Decision
Show the work
Null and alternative hypotheses
The null hypothesis says the two variables are independent: knowing one tells you nothing about the other. The alternative hypothesis is what the test looks for, and it makes this a right-tailed test.
Expected counts
If the variables were independent, the count in row and column would be the row total times the column total , shared out over the grand total . The row totals are and the column totals .
Using
Test statistic
Add up over all 4 cells. The table has 2 rows and 2 columns, so degrees of freedom.
p-value
The p-value is the probability, if were true, of a test statistic at least as extreme as the one observed. A chi-square test is always right-tailed: only a large statistic is evidence against the null hypothesis.
Decision
Compare the p-value with the significance level : if the result would be too unlikely under , so reject it. Here it is not, so do not reject : there is not enough evidence at the 5% level to say that the two variables are associated.
Result
So , , and the null hypothesis is not rejected at the 5% level.