CleverSphere

Chi-Square Test for a 2×2 Table

Observed counts are compared with those expected under independence; divide by the expected values.

Worked example

Are subject and passing related? Test independence with the χ² test (α = 5%, 1 degree of freedom, critical value 3.841).

passedfailed
Subject A3717
Subject B1630

Worked solution

  1. 1Expected count: eᵢⱼ = row total · column total / grand total
  2. 2e = 28.62; 25.38; 24.38; 21.62
  3. 3χ² = Σ (o − e)² / e = 11.35
  4. 411.35 > 3.841 → reject H₀ (independence)

Typical mistake: Dividing by the observed instead of the expected counts.

Try it yourself with new numbers

Your turn

Three problems of exactly this type with new numbers: first one to tap, then two to work out. Comma or point; fractions like 1/6 work too.

  1. 1 · Chi-square test
  2. 2
  3. 3

Are subject and passing related? Test independence with the χ² test (α = 5%, 1 degree of freedom, critical value 3.841).

passedfailed
Subject A3718
Subject B4818

χ²

Formulas for this topic
  • Expected: eᵢⱼ = row total · column total / grand total
  • χ² = Σ (o − e)² / e
  • Degrees of freedom: (rows − 1) · (columns − 1); 1 for 2×2
  • χ² > critical value → reject H₀ (independence)

Typical mistake: Dividing by the observed instead of the expected counts.

Frequently asked questions

What is the typical mistake in "Chi-square test for a 2×2 table"?

Dividing by the observed instead of the expected counts.

When is the χ² test valid?

Rule of thumb: all expected counts should be at least 5.