Simpson's Paradox
Home · Interesting Math Problems · Problem 23 · Engineering & decisions

1. The problem

A 1986 study compared two treatments for kidney stones. Here are the success rates:

Treatment A (open surgery)Treatment B (keyhole)
Small stones81 / 87 = 93 %234 / 270 = 87 %
Large stones192 / 263 = 73 %55 / 80 = 69 %
All patients273 / 350 = 78 %289 / 350 = 83 %

A is better for small stones and better for large stones. Yet B is better overall. Which treatment is better?

2. The answer

A is better
for every type of patient. The overall figure misleads.
Why B "wins"
B was mostly given the easy cases (270 of its 350 patients had small stones); A got mostly the hard ones (263 of 350 large).

The overall rate is a weighted average, and the two treatments are averaged with very different weights. Stone size affects both which treatment was chosen and how well it worked — a confounding variable.

3. Working it out

Overall rate = (share of small cases) × (small-case rate) + (share of large cases) × (large-case rate)

A: 0.25 × 93 % + 0.75 × 73 % = 78 %.   B: 0.77 × 87 % + 0.23 × 69 % = 83 %.

Both of A's group rates are higher, but A's average leans towards its lower (large-stone) figure, and B's towards its higher (small-stone) figure. If both treatments had been given the same mix of patients, A would win.

Which table to believe?

Statistics alone cannot say. You need to know how the data arose. Here stone size came first and influenced the choice of treatment, so compare within each stone size. If the "groups" were instead something caused by the treatment, the combined table could be the right one. Judea Pearl's causal diagrams make this precise.

4. Build your own

Preset:
AB
Groupsuccessestrialssuccessestrials
Group 1
Group 2

5. Slide the mix

Keep A's two group rates fixed and change only what share of A's cases come from group 2. A's overall rate slides between its two group rates. Press P to sweep the mix.

Share of A's cases in group 2:

6. Fine print

  • A famous real case: UC Berkeley graduate admissions in 1973 looked biased against women overall, but most departments admitted women at equal or higher rates; women had applied more to the departments that rejected most applicants.
  • The baseball preset is a classic: Justice had the higher batting average in both 1995 and 1996, Jeter over the two years combined.
  • In plant data the same trap appears when comparing scrap rates of two machines or shifts that run different product mixes. Compare like with like, or standardise to a common mix.