The treatment wins in every city but loses overall. Explain Simpson’s paradox, and how do confounders, colliders, and survivorship bias corrupt analyses?

The Problem: A checkout experiment readout in which the new flow converts better in City A and in City B, yet the pooled comparison across all users puts it behind the current flow.
Answer
Simpson’s paradox is an aggregation reversal: an effect that holds in every subgroup flips sign when the subgroups are pooled. It happens because each arm’s pooled rate is a weighted average of its city rates, and the two arms can carry very different city mixes. If treatment users are concentrated in a hard city with low baseline conversion, that composition effect can outweigh every within-city gain. Choosing between the pooled and the stratified number is a causal question that the data table alone cannot answer. You adjust for a confounder that drives both treatment and outcome, but conditioning on a collider, a post-treatment variable, or only the units that survived a filter manufactures bias instead of removing it.
(1) Aggregation Reversal: A pooled gap splits into a within-city effect plus a mix effect. A reversal needs both unequal arm mixes and baselines that differ across cities, which is why uneven rollouts and observational comparisons are the usual culprits.
(2) Confounder (Fork): In the variable
opens a back-door path, so the pooled association mixes the treatment effect with the effect of
. Stratifying on
, or randomizing
, closes it.
(3) Collider (Inverted Fork): In the path is blocked by default. Filtering or stratifying on
opens it and creates an association between independent variables, which is Berkson’s paradox.
(4) Survivorship Bias: Analyzing only units that passed a filter tied to the outcome inverts the conclusion, as in Abraham Wald’s bomber bullet holes. The damage you never observe is the damage that mattered.
(5) Regression to the Mean: Units picked for being extreme on a noisy metric drift back toward the average when remeasured. A “fix” aimed at the worst performers therefore looks effective even when it does nothing.

Figure 1: The same three variables admit three causal shapes. Adjusting for the confounder closes a back-door path, adjusting for a collider opens a spurious one, and adjusting for a mediator deletes part of the real effect.
The best-known real case is the 1973 Berkeley graduate admissions data analyzed by Bickel, Hammel, and O’Connell. Men were admitted at a higher pooled rate, yet department-level rates showed no bias against women and a small bias in their favor, because women applied disproportionately to departments with low admission rates. Department plays the role of city. In product analytics the same structure appears whenever the treatment share varies across a segment that also moves the baseline: a feature ramped to 50% in one market and 5% in another, an experiment whose allocation changed mid-week while weekday traffic converts differently, or any comparison of users who opted into a feature against users who did not. A correctly randomized test with a constant split in every segment cannot show the reversal in expectation, because equal mixes zero out the composition term.
Mathematical Formulation:
Where:
and
are the pooled conversion rates of treatment and control,
is the pooled gap, and
,
are the rates inside city
.
is the share of treatment users who live in city
(and likewise
for control). The first sum is the within-city effect; the second is the mix effect, which is zero whenever
for every city.
denotes setting treatment by intervention,
ranges over levels of the adjustment variable, and
is its share in the whole population. This back-door adjustment is valid only if
blocks every back-door path and contains no descendant of
.
and
are two noisy measurements of the same unit,
is the population mean, and
is their test-retest correlation; any
below 1 pulls extreme units back toward
.
Worked Example:
The counts below are the classic kidney-stone treatment data (Charig et al., 1986) relabeled as a checkout experiment in which treatment was rolled out mostly in hard City B while control stayed mostly in easy City A.
| Segment | Treatment conversions | Control conversions | Gap (points) |
|---|---|---|---|
| City A (easy) | 81 / 87 = 93.10% | 234 / 270 = 86.67% | +6.44, treatment wins |
| City B (hard) | 192 / 263 = 73.00% | 55 / 80 = 68.75% | +4.25, treatment wins |
| All users (pooled) | 273 / 350 = 78.00% | 289 / 350 = 82.57% | -4.57, treatment loses |
Weighting the +6.44 and +4.25 point city gaps by the treatment arm’s mix (87/350 and 263/350) gives a within-city term of +4.80 points. The mix term is points, because treatment keeps 52 more percentage points of its users in the low-baseline city. Together
, exactly the observed 78.00% vs 82.57% gap. Applying the back-door formula with the population city shares (357/700 = 0.51 in City A, 0.49 in City B) gives 83.3% for treatment and 77.9% for control, a +5.4 point effect. That standardized number is the right answer only because city is a pre-treatment confounder here, and the arithmetic alone could never tell you so.
Leave a Reply