Skip to content

← Math Further 9–12

Can a Treatment Win in Every Group but Lose Overall?

Topic 29 · Grades 9–12 · Simpson’s paradox

What this builds on from class
In this unit 10 sections
  1. Split by the size of the stone
  2. Where the overall rate comes from
  3. A proof: the same mix can’t reverse
  4. Make a paradox of your own
  5. Young and old
  6. Which table tells the truth?
  7. Reading a report
  8. Where this is used
  9. Questions
  10. Where to go next

Your aunt in Bhaktapur has a kidney stone, and the surgeon offers her a choice of two operations. To help her decide, you find a real study, published in the British Medical Journal in 1986. Its surgeons removed kidney stones by open surgery (call it A) from 1972 to 1980, and from 1980 to 1985 by a newer keyhole operation (call it B), through a puncture in the skin about a centimeter wide. Taking 350 patients of each, they counted the operations that worked:

Successes Success rate
A: open surgery 273 of 350 78.0%
B: keyhole 289 of 350 82.6%

B looks better. But the surgeons also wrote down how big each stone was. Before you see their table, guess.

Guess first. When the patients are split into those with small stones and those with large ones, what will the table show?

Pick an answer to see why.

Split by the size of the stone

Here are the same 700 operations, split by whether the stone was smaller than 2 cm across or larger:

Small stones Large stones All
A: open surgery 81 of 87 (93.1%) 192 of 263 (73.0%) 273 of 350 (78.0%)
B: keyhole 234 of 270 (86.7%) 55 of 80 (68.8%) 289 of 350 (82.6%)

Check: 81 + 192 = 273 and 87 + 263 = 350, so “All” really is the two groups added together. Yet A wins for small stones (93.1% against 86.7%), A wins for large stones (73.0% against 68.8%), and B wins overall.

Each rate inside the table is a conditional relative frequency: the share of successes among one operation’s patients with one size of stone. The “All” column gives each operation’s rate over both sizes, from the table’s marginal totals (A’s 273 of 350).

This happens in real data often enough to have a name: Simpson’s paradox. A comparison that holds in every group turns round when the groups are put together. The third thing that does it, here the size of the stone, is called a lurking variable or a confounding variable: it is linked both to which treatment a patient got and to how the treatment turned out.

It isn’t a contradiction: every number is right. It is a paradox only to our intuition, which expects an overall rate to behave like the group rates it is made of.

Where the overall rate comes from

Grade 10’s mean adds everything up and divides by how many there are. A success rate is a mean too: give each success 1 and each failure 0, and the mean of the 350 numbers is A’s 78%. So how does A’s 78% come from its two groups?

Of A’s 350 patients, 87 had small stones and 263 large ones. So

273350=87350×8187+263350×192263≈0.249×93.1%+0.751×73.0%=78.0%. \frac{273}{350} = \frac{87}{350} \times \frac{81}{87} + \frac{263}{350} \times \frac{192}{263} \approx 0.249 \times 93.1\% + 0.751 \times 73.0\% = 78.0\%.

The overall rate is a weighted mean of the group rates: each group’s rate counts in proportion to its share of the patients, its weight. A weighted mean always lies between the smallest and the largest of the rates it mixes, and nearer the one with more weight. A’s 78% lies between 73% and 93%, much nearer 73%, because three in four of A’s patients are in the 73% group. B’s 82.6% lies between 68.8% and 86.7%, near 86.7%, because more than three in four of its patients are there.

So each overall rate is pulled towards a different group. That is the whole trick, and you can work it with your own hands:

Try it

Change who gets which operation

Each operation’s rates for small and large stones stay as they were; the sliders change what share of its patients had large stones. The big dot is the overall rate, the weighted mean. Try to make A win overall. Then give both operations the same share of large stones.

60%70%80%90%100%A: open surgerylargesmall78.0%B: keyhole surgerylargesmall82.6%

B looks better overall, although A does better with small stones and with large ones: A has more of the hard cases.

A looks better overall, as it is for each size of stone.

Level overall, to one decimal place: the mix of patients has cancelled A’s advantage.

With the real patients, B’s dot sits near its small-stone end and A’s near its large-stone end, and B’s overall rate is higher. Move A’s slider down and its dot slides towards 93%: once fewer than about 52% of A’s patients have large stones, A wins overall. And whenever the two sliders are equal, A wins, whatever the share.

If both operations had been given the same mix of patients, half small stones and half large, what would their overall rates be?

Pick an answer to see why.

Two things together

Look back at what made the reversal. Two things had to happen at once:

  • The mix was different. A got mostly large stones, B mostly small ones. If the shares had been equal, the weights would be equal, and A would win.
  • The lurking variable mattered more than the treatment. The size of the stone moved the success rate by 18 to 20 points; the choice of operation by only 4 to 6. If the gap between small and large stones had been tiny, no mix could have overturned A’s lead.

A proof: the same mix can’t reverse

Here is the promise in the widget written as a proof. Suppose treatment A beats B in both groups: a₁ > b₁ for small stones and a₂ > b₂ for large ones (each a success rate). Suppose both treatments have the same share w of large stones. Then

A overall−B overall=(1−w)(a1−b1)+w (a2−b2). \text{A overall} - \text{B overall} = (1 - w)(a_1 - b_1) + w\,(a_2 - b_2).

Both brackets are positive, and so are 1 − w and w (or one of them is 0), so the difference is positive: A wins overall. With the same mix, a treatment that wins in every group wins overall. The proof works for any number of groups. So a reversal needs different mixes, and that is exactly what the kidney stone patients had.

The computer scientist Judea Pearl, who studies cause and effect, calls this a “sure-thing” theorem: something that raises the chance of success in every group must raise it overall, as long as it doesn’t change how many are in each group.

A picture of the reversal

There is also a picture that shows the reversal with no algebra at all. Draw each group as an arrow: across by the number of patients, up by the number of successes. Then the steepness of an arrow (its slope, up ÷ across) is the group’s success rate. Putting a treatment’s two arrows end to end adds the patients and adds the successes, so the end point is its overall total.

1001002002003003000patientssuccessesB small: 234 of 270A large: 192 of 263A small:81 of 87B large: 55 of 80B 82.6%A 78.0%
Figure 29.1 The kidney stone groups as arrows, to scale: across by patients, up by successes, so steeper means more successful. For each size of stone, A’s arrow is steeper than B’s. But A’s steep arrow is short (87 patients) and its shallow one long (263), while B’s is the other way round, so B’s total (dashed) ends higher.

In Figure 29.1, compare A’s and B’s arrows for the same size of stone: A’s is the steeper both times. But A’s long arrow is the shallow one, and B’s long arrow is the steep one. Added end to end, B climbs higher. A reversal is simply two pairs of arrows whose lengths are badly mismatched. The mathematician Jerzy Kocik published this picture in 2001 as a “proof without words”.

Make a paradox of your own

Once you know the trick, you can build one. Give the better treatment mostly hard cases.

How small can a reversal be? The smallest has only 9 patients in all (Question d).

Young and old

Early in the Covid-19 pandemic, two countries reported how many of their confirmed cases had died. China’s Center for Disease Control and Prevention counted 44,672 cases, of which 1,023 died: 2.3%. Italy’s National Institute of Health, on 9 March 2020, counted 8,026 cases, of which 357 died: 4.4%, nearly twice as many. Was the disease deadlier in Italy, or its hospitals worse?

In 2020 three researchers at the Max Planck Institute for Intelligent Systems in Germany, Julius von Kügelgen, Luigi Gresele and Bernhard Schölkopf, split the cases by age. In every age group Italy’s rate was lower than China’s (or the same, at 0, among the young), yet its overall rate was higher. Under 70: Italy 0.9%, China 1.3%. Aged 70 or more: Italy 9.5%, China 9.8%. All ages: Italy 4.4%, China 2.3%.

Try it

Same disease, different ages

Above: of every 100 confirmed cases in each age group, how many died. Below: how each country’s cases were spread across the ages, the weights of its overall rate. Then use the buttons to give both countries the same ages.

Deaths per 100 casesItalyChina051015<2020s30s40s50s60s70s80+Share of all cases, by age0%10%20%
Overall rates with the ages of:
Italy, all ages
4.45%
China, all ages
2.29%

As reported: Italy’s overall rate is almost twice China’s, because two in five of Italy’s cases were aged 70 or more, against one in eight of China’s.

Give Italy China’s mix of ages and its overall rate falls below China’s: lower in every group means lower overall when the mix is the same.

Give China Italy’s older mix and its overall rate rises above Italy’s. With the same ages, Italy comes out lower either way.

The weights explain it. Of Italy’s cases, 41% were aged 70 or more; of China’s, 12%. In these 2020 figures Covid-19 was far deadlier for the old, so Italy’s overall rate was a mean weighted heavily towards its most dangerous groups. The researchers suggest why: Italy’s people are older (a median age of 45.4 years against China’s 38.4), and the countries may have tested differently.

Giving everyone the same ages

The widget’s buttons do what health statisticians do every day: to compare two places fairly, they take each place’s rate in each age group and then a weighted mean using one standard population, the same age mix for both. This is called age standardization (or direct standardization). With China’s mix of ages, Italy’s rate comes out at 1.5% against China’s 2.3%; with Italy’s, China’s comes out at 5.6% against Italy’s 4.4%. Either way Italy is lower, as it was in every group.

Which table tells the truth?

So far the rule seems simple: always split the data, and believe the groups. It isn’t that simple.

Here are some made-up numbers that Judea Pearl uses, for a new drug given to 80 patients:

Recovered with the drug Recovered without
Group 1 18 of 30 (60%) 7 of 10 (70%)
Group 2 2 of 10 (20%) 9 of 30 (30%)
All 20 of 40 (50%) 16 of 40 (40%)

The drug loses in both groups and wins overall. Should a doctor give it?

Story 1: the groups are men and women. Being a man or a woman was decided long before the drug was given; the drug can’t change it. In each kind of patient the drug does worse. It looks better overall only because more of those who took it were men, who recover more often anyway. Believe the groups: don’t give the drug.

Story 2: the groups are the patient’s blood pressure after the treatment, high or normal. Now the drug may have caused the split: suppose it lowers blood pressure, which helps recovery. Splitting by blood pressure hides the drug’s main way of working, like judging a fertilizer only among plants of the same height. Believe the total: give the drug.

The numbers are the same in both stories; the right answer is opposite. This is what Simpson himself noticed in his 1951 paper: depending on the story behind the data, the “sensible interpretation” is sometimes in the groups and sometimes in the total. Later work, Pearl’s and others’, gives a rule of thumb that settles most cases:

  • Split by something that was there before the treatment and affects the result (the size of the stone, the patient’s age or sex): it is a confounder, and the groups give the fair comparison.
  • Don’t split by something the treatment itself changes (blood pressure after the drug): the total is the fair comparison.

Pearl’s full test, the “back-door criterion”, also handles the rarer cases where even something there before the treatment shouldn’t be split by.

No calculation on the table can tell you which story is true. You have to know how the data came about. That is why, for the kidney stones, the split by size is the fairer comparison: the stone’s size was there before the surgeon chose. It still isn’t the last word: the two operations were done in different years, when other things changed too, and both have changed a great deal since 1985, so these numbers are no guide for a patient today.

Reading a report

Before trusting a report that compares two percentages, ask:

  • What groups are inside each percentage, and were their mixes the same? Ask for the split by the likely lurking variables: age, how severe, which department, which year.
  • Was the split made before or after the treatment? Split by what came before.
  • Who chose who got what? If chance chose, the totals are safe from hidden mixes. If people chose, look for what guided them.

Where this is used

  • Comparing death rates between countries and years: rates are age-standardized, so that a country or a year with more old people doesn’t look worse only for that. The WHO’s authors wrote in 2001 that direct age standardization “has become the predominant technique in most applications of demography and epidemiology”.
  • Medical research: observational studies (where treatments weren’t given at random) report results within groups of age, sex and severity, and adjust for them, because, as Julious and Mullee wrote, the choice of treatment “would have been influenced by patients’ characteristics such as age or severity of condition”.
  • Checking for fairness: the Berkeley study is the classic example of asking whether a difference between men and women, or between any two groups, in admissions, hiring or pay, comes from bias or from where each group applied.

Questions

★ Two schools report their SEE pass rates. School X passes 90% of its science students and 60% of its other students; school Y passes 85% and 55%. Yet Y’s overall pass rate is higher. Which must be true?

Pick an answer to see why.

a.★

Use the kidney stone table. a. What share of all 700 patients had small stones, and what was the success rate for small stones, whichever operation was used? b. Do the same for large stones. c. In one sentence, why do these two numbers make a reversal possible?

Answer
b.★★

In 1995 and 1996, two American baseball players, Derek Jeter and David Justice, had these hits out of times at bat. Jeter: 12 of 48 in 1995, 183 of 582 in 1996. Justice: 104 of 411 in 1995, 45 of 140 in 1996. A player’s batting average is hits ÷ times at bat. Who had the better average in each year, and over the two years together? Explain the reversal.

Answer
c.★★

Prove that a treatment’s overall success rate always lies between its success rates in its two groups. That is, if a₁ ≤ a₂ and the share w of its patients in group 2 is between 0 and 1, show that a₁ ≤ (1 − w) a₁ + w a₂ ≤ a₂.

Hint
Answer
d.★★★

What is the smallest number of patients, in all, with which Simpson’s paradox can happen? Each treatment must have at least one patient in each of two groups, A must do strictly better in both groups, and B strictly better overall. Find an example.

Hint
Answer
e.★★★

Use the Covid numbers. Italy’s cases aged 70 or more numbered 3,317, with 316 deaths; under 70, 4,709 with 41 deaths. China’s: 5,326 with 520 deaths, and 39,346 with 503 deaths. a. Check that Italy was lower in both age groups. b. Work out each country’s overall rate if both had had the same mix as all the cases put together (52,698 cases, 8,643 of them aged 70 or more). c. What does b. show?

Answer

Where to go next

Where these facts come from
  • The kidney stone figures (open surgery 1972–80, percutaneous nephrolithotomy 1980–85, 273/350 and 289/350, stones under and over 2 cm, 81/87, 234/270, 192/263, 55/80), the quotations on why treatment choice depends on patients and on randomized trials: Steven A. Julious and Mark A. Mullee, “Confounding and Simpson’s paradox”, BMJ 309 (1994), 1480–1481 (PMC scan, archived), read October 2026. Their source, Charig, Webb, Payne and Wickham, BMJ 292 (1986), 879–882, was not opened.
  • What percutaneous nephrolithotomy is (a puncture of up to about 1 cm through the skin): Wikipedia, “Percutaneous nephrolithotomy”, read October 2026.
  • The Covid-19 case fatality rates by age for China (China CDC) and Italy (Istituto Superiore di Sanità, 9 March 2020), the cases and deaths in each age group, that Italy is lower in every group and higher overall, and the median ages 45.4 and 38.4: Julius von Kügelgen, Luigi Gresele and Bernhard Schölkopf, “Simpson’s paradox in Covid-19 case fatality rates: a mediation analysis of age-related causal effects”, IEEE Transactions on Artificial Intelligence 2 (2021), Section II and Table III, read October 2026. Its table prints China’s 0–9 group as 0 of 0; its total of 44,672 cases is 416 more than the other groups, which we take as that group’s cases, with no deaths.
  • The “sure-thing” theorem, the drug table (18/30, 7/10, 2/10, 9/30), the blood pressure version, the history (Pearson 1899, Yule 1903, Cohen and Nagel 1934, Blyth 1972) and Simpson’s words on the treatment and on the “sensible interpretation”: Judea Pearl, “Understanding Simpson’s Paradox”, Technical Report R-414 (2013), The American Statistician 68 (2014), read October 2026.
  • Edward Simpson’s life (Queen’s University Belfast at 19 in 1942, Bletchley Park, Italian naval codes and JN-25, the paper written at Cambridge and printed in 1951 at Bartlett’s request, the civil service, died 2019): Wikipedia, “Edward H. Simpson”, read October 2026.
  • The Jeter and Justice batting figures (from Ken Ross, A Mathematician at the Ballpark, 2004, and Baseball-Reference) and Kocik’s vector picture (Mathematics Magazine 74 (2001), 399): Wikipedia, “Simpson’s paradox”, read October 2026.
  • Berkeley’s fall 1973 applications (12,763; 8,442 men, about 44% admitted; 4,321 women, about 35%), the department-by-department analysis, the bias in favor of women and the fishing net: P. J. Bickel, E. A. Hammel and J. W. O’Connell, “Sex Bias in Graduate Admissions: Data From Berkeley”, Science 187 (1975), 398–404, read October 2026.
  • Age standardization and the WHO World Standard Population, and the three quotations: Omar B. Ahmad and others, Age Standardization of Rates: A New WHO Standard, GPE Discussion Paper 31, World Health Organization (2001), read October 2026.
  • Every number on this page (the rates and shares, the weighted means, the widget’s break-even shares, the half-and-half rates, the coaching classes, the Covid groups and standardized rates, the smallest reversal by an exhaustive search, and every answer to the questions) was computed by a script (checks/textbooks/math-further-9-12/29/tmp/answers.py).