ponderloop.com

Chi-Square Calculator

Which test?

Type observed counts (whole numbers, not percentages) for two categorical variables: one row per category of the first, one column per category of the second.

Observed counts

RowColumn 1Column 2Column 3
Row 1
Row 2
Row 3

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 counts with row and column totals
ObservedColumn 1Column 2Column 3Total
Row 112181040
Row 22215946
Row 38201644
Total425335130
Expected counts E = row total × column total ÷ N
ExpectedColumn 1Column 2Column 3
Row 112.9216.3110.77
Row 214.8618.7512.38
Row 314.2217.9411.85
(O − E)² ÷ E for each cell
ContributionColumn 1Column 2Column 3
Row 10.06590.17560.0549
Row 23.42880.75140.925
Row 32.71750.23691.4565
χ² (sum)9.81271
  1. Row totals 40, 46, 44; column totals 42, 53, 35; grand total N = 130.
  2. Expected count of each cell = row total × column total ÷ N (second table).
  3. Each cell contributes (O − E)² ÷ E (third table); they add up to χ² = 9.81271.
  4. Degrees of freedom = (rows − 1) × (columns − 1) = (3 − 1) × (3 − 1) = 4.
  5. 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.
  6. Critical value at α = 0.05 with 4 degrees of freedom is 9.488: the statistic reaches or exceeds it, so reject the null hypothesis.
  7. Cramér’s V = √(χ² ÷ (N × (min(rows, columns) − 1))) = √(9.81271 ÷ (130 × 2)) = 0.194.