TL;DR
Simpson's paradox is a reversal. Option A beats option B inside every subgroup of a population, yet B beats A when the subgroups are pooled into one total. It happens when the two options were given to different mixes of subgroups, and the subgroups have very different base rates. The pooled number is a weighted average, and the weights differ between the options.
Builds on: Conditional Probability, Weighted Average · Leads to: Confounding Bias, Law of Total Probability
Where it's used
University admissions. In 1975 Bickel, Hammel and O'Connell studied graduate admissions at the University of California, Berkeley. Across all departments the overall admission rate for women was lower than for men, but when the departments were examined one at a time, the gap was much smaller than the pooled figures suggested. The reason was that women applied in larger numbers to departments that admitted a smaller share of applicants. The pooled comparison and the department-level comparison told different stories, and the department level was the one that explained where the difference came from.
Medical treatments. Patients are not assigned to treatments at random in most hospital records, unlike in a randomised trial. A doctor may give the stronger treatment to the sicker patients, who have lower recovery rates overall. Comparing the two treatments in the whole hospital then mixes the treatment effect with the severity mix. A hospital report can show the weaker treatment looking better, and a careful analysis splits the patients by severity before comparing.
Sports and team statistics. A player can have a higher batting average than a teammate against both left-handed and right-handed pitchers, yet a lower average overall, if the two players face different mixes of pitchers. The overall average is a weighted average whose weights depend on how often each player faced each kind of pitcher.
How it works
Take two treatments, A and B. Each treats 100 patients. The patients are split into two groups: mild cases, which recover often, and severe cases, which recover rarely. The two treatments were given to different mixes of patients.
| Treatment | Group | Treated | Recovered | Rate |
|---|---|---|---|---|
| A | Mild | 10 | 9 | 90% |
| A | Severe | 90 | 27 | 30% |
| A | All | 100 | 36 | 36% |
| B | Mild | 90 | 72 | 80% |
| B | Severe | 10 | 2 | 20% |
| B | All | 100 | 74 | 74% |
- Look inside each group first. Among mild cases, A recovers 90 percent of patients and B recovers 80 percent, so A is better. Check: 9 out of 10 is 0.9, and 72 out of 90 is 0.8.
- Among severe cases, A recovers 30 percent and B recovers 20 percent, so A is better again. Check: 27 out of 90 is 0.3, and 2 out of 10 is 0.2.
- Now pool the groups. A recovers 36 of 100 patients, which is 36 percent. B recovers 74 of 100, which is 74 percent. Check: 9 + 27 = 36 and 72 + 2 = 74, out of 100 patients for each treatment.
- The pooled result reverses the group result: B looks much better overall, although A is better in each group.
- The cause is the mix. A gave most of its patients to the severe group, where everyone recovers less often. B gave most of its patients to the mild group. The pooled rate is a weighted average of the group rates, and the weights are the group shares: for A, , while for B, .
- The lesson is that a comparison needs the same mix of groups on both sides, or it must be made within each group.
The table is the structure. Each group has its own rate for each treatment, and the overall rate depends on how many patients each treatment gave to each group.
flowchart LR P["All patients"] --> G1["Mild group"] P --> G2["Severe group"] G1 --> R1["A: 90%, B: 80%"] G2 --> R2["A: 30%, B: 20%"] R1 --> C["Compare within groups: A wins both"] R2 --> C P --> T["Pool all patients"] T --> R3["A: 36%, B: 74%"] R3 --> D["Compare pooled: B wins"]
The math
Let be the grouping, with groups . For a treatment , let be the number of patients it treated in group , and let be the recovery rate in that group. Its size is . The pooled rate is
The pooled rate is the expected value of the group rate for a patient drawn at random from those the treatment saw. The weights are the probabilities of each group in that draw, so they add to 1, and is a weighted average of the group rates.
Simpson's paradox is the case where
Step 1 and 2 in symbols: the group rates
For the mild group, and . For the severe group, and . A wins in both.
Step 3 in symbols: the pooled rates
The pooled rate for A is , and for B it is .
Step 5 in symbols: the weights
The weights for A are and . For B they are and . Then
The reversal comes from the difference in weights. If the two treatments had the same weights, then , a weighted sum of differences that are all positive, so the pooled difference would also be positive. The paradox needs unequal weights.
Worked examples
Two treatments are each given to four patients, in two groups of two.
- Group 1 has 4 patients, and 2 of them recover, giving 50 percent. Group 2 has 4 patients, and 3 of them recover, giving 75 percent.
- Pooled rate: , which is 62.5 percent.
- Plain average of the group rates: .
- The pooled rate and the plain average agree, because the group sizes are equal, so the weights are each.
- Interpretation: with equal weights the pooled rate cannot reverse a group-level comparison. The paradox needs the groups to be weighted differently across the options being compared.
Use the table from "How it works". Each treatment treated 100 patients.
- Mild group, A: 9 of 10 recovered, rate 0.9. Mild group, B: 72 of 90 recovered, rate 0.8. A is better.
- Severe group, A: 27 of 90 recovered, rate 0.3. Severe group, B: 2 of 10 recovered, rate 0.2. A is better.
- Pooled A: recovered out of 100, rate 0.36.
- Pooled B: recovered out of 100, rate 0.74.
- The pooled comparison says B is better by 38 percentage points, while each group says A is better.
- Interpretation: the difference in pooled rates is produced by the mix. B's patients are mostly mild, which recover often, and A's patients are mostly severe, which recover rarely. The honest comparison is the within-group one.
Two departments admit students. In department X, 90 men and 10 women apply. In department Y, 10 men and 90 women apply.
| Department | Men applied | Men admitted | Women applied | Women admitted |
|---|---|---|---|---|
| X | 90 | 45 | 10 | 6 |
| Y | 10 | 4 | 90 | 40 |
- Men in X: . Women in X: . Women are higher.
- Men in Y: . Women in Y: . Women are higher.
- Overall men: .
- Overall women: .
- Interpretation: women have the higher rate in each department, yet men have the higher overall rate. Most men applied to department X, which admits more applicants overall (51 percent against 44 percent for Y), and most women applied to Y, so the pooled comparison reflects the choice of department as well as admission decisions.
- Try it: in department X, the women's admission rate is 0.60 and the men's is 0.50. Which group has the higher admission rate in department Y, and what does that tell you about the pooled rates? Answer: women have 0.444 against 0.40 for men in Y, so women are higher in both departments, while men are higher overall, because the weights differ.
Common mistakes and tradeoffs
It is tempting to think that if A beats B in every group, it must beat B overall. In fact the overall rate is a weighted average, and the weights can differ between A and B. Check the group sizes before trusting a pooled number.
It is tempting to think that the pooled number is always the right one to report. In fact pooling is right when the groups have the same mix in both arms, as in a randomised trial. When the mix differs, the group-level comparison is usually the one that answers the question, and a confounder is the usual reason the mix differs.
It is tempting to think that the paradox is a trick of arithmetic. In fact the arithmetic is correct. The paradox shows that the question "which option is better?" has no answer until you say which mix of groups you are comparing. It is a question of causal inference as much as of arithmetic.
When to look inside the groups: when the groups are known to affect the outcome and the options were not given to the groups in the same proportions. When not to: when the groups do not differ in their outcome rates, or the mix is the same on both sides, which happens when the group is independent of the option, so pooling is safe. Alternatives include standardising each option to a common mix of groups, which fixes the weights, and modelling the outcome with the group as a variable, for example with Logistic Regression when the outcome is yes or no, such as recovery.
History
Udny Yule discussed the effect of pooling tables in 1903 in his work on the association of attributes. Edward Simpson described the reversal in a 1951 paper on interaction in contingency tables, and the name stuck after that.
The effect became widely known in 1975, when Bickel, Hammel and O'Connell analysed graduate admissions data at Berkeley and found that the apparent bias against women mostly disappeared once the departments were compared one at a time. It caught on because the admissions example was public and easy to check, and because it showed that a pooled statistic can point the wrong way.
Recap
- A pooled rate is a weighted average of group rates, with weights set by group sizes.
- The weights can differ between the options compared, so the pooled ranking can reverse the group ranking.
- Compare within groups when the mix of groups differs, and check the group sizes before trusting a pooled number.
- Read next: Confounding Bias for why the mix differs, and Law of Total Probability for the rule that splits a probability by groups.
Check yourself
QuestionTreatment A has a 0.9 recovery rate among mild cases and a 0.3 rate among severe cases. Treatment B has 0.8 and 0.2. Why can B still look better overall?Show answer
QuestionGroup 1 has 4 patients with a 50 percent rate, and group 2 has 4 patients with a 75 percent rate. What is the pooled rate?Show answer
QuestionWhy does the reversal need the weights to differ between the two options?Show answer
QuestionA hospital reports that a treatment has a lower overall recovery rate than the alternative, but within each severity group it is higher. What should the analyst check first?Show answer
Sources
- Simpson's paradox (Wikipedia): https://en.wikipedia.org/wiki/Simpson%27s_paradox
- Bickel, Hammel and O'Connell, Sex Bias in Graduate Admissions: Data from Berkeley (Science, 1975): https://doi.org/10.1126/science.187.4175.398