← Math problems

Simpson's paradox Better in every group. Worse overall.

Treatment A works better than treatment B for small kidney stones and for large ones. Put all the patients together, and B comes out ahead. Both statements come from the same numbers. Let's see how that happens and which number to trust.

2 of 2groups where A wins
78% < 83%overall: A vs B

Share of successful treatments, data from Charig et al., 1986. Pink marks the winner in each row.

The puzzle

Picture this: you choose the treatment

Simpson's paradox happens when a trend that holds in every group of data reverses once the groups are combined. The classic example comes from a 1986 British study of kidney stone treatments.

  1. 1

    Two treatments

    Treatment A: open surgery. Treatment B: percutaneous surgery through a small puncture. Each was given to 350 patients.

  2. 2

    The overall result

    Treatment A succeeded in 273 of 350 cases (78%), treatment B in 289 of 350 (83%). At first glance B is better.

  3. 3

    Split by stone size

    Now split the patients into two groups: small stones and large stones. For small stones A gets 93%, B 87%. For large stones A gets 73%, B 69%.

  4. 4

    The question

    How can A be better in each group and worse overall? And which treatment would you recommend to a patient whose stone size you know?

Intuition says

"If A is better for small stones and for large stones, it must be better for everyone together"

It feels obvious, but it is not a rule of arithmetic. The overall rate also depends on how many patients of each kind a treatment got. Treatment A got mostly the hard cases.

What you need to know

  • Patients were not assigned to treatments at random.
  • Doctors chose open surgery more often for large stones.
  • Large stones are harder to treat with any method.

Stone size affects both the choice of treatment and the outcome. Such a variable is called a confounder. More in round 4.

Round 1 · Choose

Which treatment would you choose for yourself?

Imagine you skipped the puzzle above and see only the overall results. Pick a treatment, then look at the split by stone size.

Overall results, 350 patients per treatment

Tap the treatment you would choose.

Round 2 · The 2×2 table

Break the paradox or build your own

The sliders set the number of patients and successes in each cell of the table. The bars on the right update instantly. Try to make the paradox disappear, or pick another example.

Round 3 · Simulation

How often does the paradox happen?

The computer generates thousands of random 2×2 tables and counts the share where one treatment wins in both groups and the other wins overall. The answer depends on how the tables are generated, so there are two different generators here.

reference value for the generator simulation: running share after each batch

Share of tables with the paradox (simulated)
–
Reference
–
Last table found with the paradox

The overall rate slides between the two group rates

Each line shows what a treatment's overall rate would be for a different share of small-stone patients. Line A is above line B everywhere. But the overall rates are points at different places on their lines: A has few easy patients, B has many.

treatment A treatment B
A overall
–
B overall
–
Round 4 · Five explanations

Why the overall number misleads

The key is that the two treatments were given to different patients. Here are five ways to see it.

A weighted average

The overall rate is a mix of group rates

Only 25% of A's patients had small stones, so its overall rate sits close to its 73% for large stones. For B the share is 77%, so its rate sits close to its 87% for small stones. The different weights outweigh A's advantage.

The confounder

Stone size drives both the choice and the outcome

Stone size Treatment (A or B) Outcome large → more often A large are harder the effect we want Splitting into groups blocks the pink path

The overall comparison mixes two effects: the real difference between the treatments, and the fact that A more often got the harder patients. Comparing treatments within a group of the same stone size removes the second effect.

Vectors

Steeper arrows, lower finish

Each group is an arrow: right by the number of patients, up by the number of successes. The slope is the success rate. Both of A's arrows are steeper than B's matching arrows. But A has a short steep arrow and a long shallow one, and B has the reverse. So B's path, built head to tail, ends higher. To make the slopes visible, the chart subtracts 70% of the patients from the successes: an arrow with a 70% rate would be flat.

Which number to trust

It depends on the question you ask

Effect of a treatment on a patientby groupA wins: 93% vs 87%, 73% vs 69%
What happened to the patients who got each treatmentoverallB: 83%, A: 78%

The data alone do not say which table to use. The causal picture decides. Here stone size affects which treatment is given, so for "which treatment is better for a patient" we use the numbers by group. But if a variable is itself a result of the treatment (say, blood pressure after taking a drug), you should not split by it: then the overall number is the right one.

For formula lovers

The law of total probability and standardisation

The first two lines show that the overall rate is a weighted average of the group rates, with each treatment's own weights. The last two lines give both treatments the same patient mix, the one in the whole sample (357 small and 343 large). Then the comparison is fair, and A wins. The paradox can only happen when the two treatments have different patient mixes.

Round 5 · Going further

Baseball, a university and many groups

Simpson's paradox is not just a medical curiosity. Here are three well-known settings: sports statistics, university admissions, and the case with more than two groups.

Derek Jeter versus David Justice

Batting average: hits divided by at-bats.

Justice is better in 1995 and in 1996, yet Jeter is better over the two years combined. The reason is the same: in 1995 Jeter had only 48 at-bats, and he spent his better year, 1996, with 582. Justice had it the other way round.

Berkeley graduate admissions, 1973

of men admitted≈ 44%
of women admitted≈ 35%

The overall numbers looked like bias against women. In 1975 the statisticians Bickel, Hammel and O'Connell looked at the data department by department. They found no bias against women there, and a small bias in their favour in several departments.

What the confounder was

Women more often applied to departments with fierce competition, which rejected most applicants regardless of sex. Men more often applied where many were admitted. The choice of department plays the role of stone size here.

The study showed how the data were distributed, not why women chose those departments. That is a separate question.

Three groups and more

Here A has the same edge over B in every group. Groups run from easy to hard, and A gets more of the hard patients while B gets more of the easy ones. 2,000 patients per treatment. Change the number of groups and A's edge.

Bonus · Fun facts

Things to tell your friends

1951

Named after Simpson

The British statistician Edward H. Simpson described the effect in a 1951 paper on contingency tables. The name "Simpson's paradox" was introduced by Colin Blyth in 1972.

1899 · 1903

Simpson was not the first

Karl Pearson (1899) and G. Udny Yule (1903) described similar effects earlier. That is why it is sometimes called the Yule–Simpson effect.

1973

The Berkeley case

Graduate admissions data from the University of California, Berkeley, for 1973 became the textbook example. The paper by Bickel, Hammel and O'Connell about them appeared in Science in 1975.

700

Kidney stones

The 700-patient example comes from a study by Charig and colleagues, published in the British Medical Journal in 1986. It is now the classic illustration of the paradox in statistics textbooks and courses.

.310

Jeter and Justice

David Justice had a better batting average than Derek Jeter in both 1995 and 1996. Over the two seasons combined Jeter hit .310 and Justice only .270.

2018

The Book of Why

Simpson's paradox is a standard example in causal inference. Judea Pearl discusses it at length in The Book of Why (2018), written with Dana Mackenzie: choosing the right table takes a causal model.

Discussion

What do you think?

Share your own explanation, an objection or a variant of the puzzle. Commenting needs a GitHub account.

Newsletter

New puzzles, explanations and discussions

I keep adding new puzzles, new ways to explain them and write-ups of the discussions they start. Leave your email and I'll write when something new is out. No spam, one-click unsubscribe.

The sign-up form will appear here soon.