math.vinhnx.ca / statistics / simpson’s paradox
Statistics that surprise

Simpson’s paradox

Treatment A beats treatment B for small kidney stones. It also beats B for large ones. Yet B has the better success rate overall. Nothing is miscounted: these are real numbers from a 1986 study. The picture below shows how both statements can be true.

Success rate vs case mix

overall rate = a point on its own line

The same numbers as bars

within groups vs pooled

The continuous version: a trend that flips when you split by age

The kidney-stone numbers

Charig and colleagues (BMJ, 1986) compared open surgery (A) with a less invasive procedure (B):

Small stonesLarge stonesAll patients
A: open surgery81 / 87 = 93%192 / 263 = 73%273 / 350 = 78%
B: percutaneous234 / 270 = 87%55 / 80 = 69%289 / 350 = 83%

A wins in both rows and loses in the total. The cause is in the column counts: doctors gave the harder, large-stone cases to A three times as often (263 of A’s 350 patients against 80 of B’s).

Why it happens: an overall rate is a weighted average

If a share $w$ of a treatment’s patients are hard cases, its overall success rate is

$$p_{\text{overall}} = (1 - w)\,p_{\text{easy}} + w\,p_{\text{hard}},$$

a point on the straight line from $p_{\text{easy}}$ (at $w = 0$) to $p_{\text{hard}}$ (at $w = 1$). That is the left chart. A’s line lies above B’s everywhere, so A is better for any fixed case mix. But A sits far to the right on its line, where everyone does worse, and B sits far to the left. Comparing the two dots compares the case mixes as much as the treatments.

The fix is to compare at the same mix, for example the mix of the whole study. That gives the standardised (“adjusted”) rates in the readout, and with them A wins again.

So which answer is right?

The data can’t tell you. It depends on the causal story. Here stone size affects both which treatment you get and whether it works (it is a confounder), so you should split by it, and A is the better treatment. Had the subgroup been something the treatment causes, such as a side effect measured afterwards, splitting would be the mistake and the pooled numbers would be right. The same table can call for opposite conclusions. Judea Pearl uses exactly this example to argue that causal assumptions can’t be avoided.

Try it: . The paradox vanishes, because it needs unequal mixes and a mix that matters.

The continuous version

The scatter plot is the same story with a slope. Within every age group, more exercise goes with lower cholesterol. But older people both exercise more (in this made-up population) and have higher cholesterol, so the pooled regression line slopes the wrong way. Untangling this is what “controlling for age” means in a regression.