Chi-Square Calculator
Test of independence, 3 × 3 table, χ² = 9.81271 with 4 degrees of freedom
P-value 0.04370
p = 0.04370 is at or below α = 0.05, so reject the null hypothesis that the row and column variables are independent. The sample shows evidence of an association; it does not say what causes it or how strong it is.
- Chi-square statistic (χ²)
- 9.81271
- Degrees of freedom
- 4
- P-value
- 0.04370
- Critical value at α = 0.05
- 9.488
- Decision
- Reject the null hypothesis
- Total count (N)
- 130
- Cramér’s V
- 0.194
- Smallest expected count
- 10.77
The working
| Observed | Column 1 | Column 2 | Column 3 | Total |
|---|---|---|---|---|
| Row 1 | 12 | 18 | 10 | 40 |
| Row 2 | 22 | 15 | 9 | 46 |
| Row 3 | 8 | 20 | 16 | 44 |
| Total | 42 | 53 | 35 | 130 |
| Expected | Column 1 | Column 2 | Column 3 |
|---|---|---|---|
| Row 1 | 12.92 | 16.31 | 10.77 |
| Row 2 | 14.86 | 18.75 | 12.38 |
| Row 3 | 14.22 | 17.94 | 11.85 |
| Contribution | Column 1 | Column 2 | Column 3 |
|---|---|---|---|
| Row 1 | 0.0659 | 0.1756 | 0.0549 |
| Row 2 | 3.4288 | 0.7514 | 0.925 |
| Row 3 | 2.7175 | 0.2369 | 1.4565 |
| χ² (sum) | 9.81271 |
- Row totals 40, 46, 44; column totals 42, 53, 35; grand total N = 130.
- Expected count of each cell = row total × column total ÷ N (second table).
- Each cell contributes (O − E)² ÷ E (third table); they add up to χ² = 9.81271.
- Degrees of freedom = (rows − 1) × (columns − 1) = (3 − 1) × (3 − 1) = 4.
- P-value = P(χ² ≥ 9.81271) with 4 degrees of freedom = 0.04370. Only the right tail counts, because a large statistic is what contradicts independence.
- Critical value at α = 0.05 with 4 degrees of freedom is 9.488: the statistic reaches or exceeds it, so reject the null hypothesis.
- Cramér’s V = √(χ² ÷ (N × (min(rows, columns) − 1))) = √(9.81271 ÷ (130 × 2)) = 0.194.