Statistics ยท medium

What is Simpson's paradox?

Asked in Data Analyst interviews, in the Statistics round.

Short answer

A trend within groups reverses when groups are combined due to a confounder.

How to answer it

Definition

A trend that holds in every subgroup reverses when the groups are pooled. It is not a statistical curiosity: it happens because a lurking variable is distributed unevenly across the groups.

Example

Treatment A                          Treatment B
small stones   81/87  = 93%          small stones  234/270 = 87%
large stones  192/263 = 73%          large stones   55/80  = 69%

A wins on small stones. A wins on large stones.
Pooled:  A 273/350 = 78%             Pooled:  B 289/350 = 83%

B wins overall while losing both subgroups. Nothing is miscalculated. A was given to far more of the hard cases, so its overall rate is dragged down by the mix rather than by its performance.

Why it happens

The subgroup, here stone size, affects both the treatment assigned and the outcome. Pooling averages over a mix that differs between groups, so the overall numbers compare different populations rather than different treatments.

Which number to trust

Not automatically the disaggregated one. It depends on the causal structure:

Only a causal claim distinguishes these. The data alone cannot.

Key points

FAQ

The 30-second answer

Simpson's paradox is when a trend that holds inside every subgroup reverses once you pool them. The classic case is a treatment that wins on small stones and wins on large stones, yet loses overall, because it was given to far more of the hard cases and the mix drags its overall rate down.
The cause is a lurking variable that affects both which group you land in and the outcome. Nothing is calculated wrongly.
The part I would add is that the disaggregated number is not automatically the right one. If the subgroup was decided before treatment it is a confounder and I trust the subgroups. If the treatment caused the subgroup it is a mediator, and conditioning on it removes part of the effect I am trying to measure. Deciding that needs a causal argument, not more data.

In the interview

Practice this for real