# Simpson's Paradox in A/B Testing: Spot It and Fix It

> Simpsons paradox flips an A/B result when you pool traffic. Work through Microsoft's ramp-up example, check your test and pick the table to trust.

- URL: https://missiongrowth.io/blog/simpsons-paradox
- Published: 2026-12-01
- Author: Furkan Aktaş, Co-Founder, Mission Growth
- Publisher: Mission Growth. Company facts: https://missiongrowth.io/llms.txt

Simpsons paradox shows up when a variant beats control in every segment and still loses in the pooled total. Simpson's paradox in A/B testing is an exposure-mix problem that the test setup can create, so the first check is each arm's share of traffic per segment. This guide works through Microsoft's ramp-up numbers, gives a query that finds the problem, and says which table to trust.

## What Simpson's paradox is in an A/B test

Simpson's paradox is a result that reverses when groups are pooled: in an A/B test, a variant can win in every segment and still lose in total, because the pooled rate is a weighted average and the two arms carry different weights.

Simpson's paradox in simple terms: a result can reverse when you add groups together, because the groups are not the same size in each arm.

Why is it called Simpson's paradox? Pearson in 1899 and Yule in 1903 pointed the effect out first, but the Stanford Encyclopedia of Philosophy says it was Simpson in 1951 whose short paper gave it the name.

Can it happen in a randomized test? Britannica says the paradox cannot occur in a randomized experiment when assignment is independent of the covariates, and a PMC article on experimental research adds that it cannot appear when both groups match on the confounder, a balance randomization usually delivers. A web experiment can break that condition without anyone noticing.

A ramp-up, where the variant's share of traffic rises from one day to the next, ties the day to the arm. At a constant split, randomization protects in expectation. Once the split moves during the run, the reversal is back in play.

## A Simpsons paradox example: the ramp-up test where the winner looks like it lost

Microsoft's ramp-up table shows the treatment beating control on Friday and on Saturday while losing the pooled total, because the treatment's traffic sat almost entirely on the weaker Saturday.

This Simpson's paradox example comes from Crook, Frasca, Kohavi and Longbotham (KDD 2009): a site with 1,000,000 visitors per day, a 1% treatment share on Friday and 50% on Saturday. The paper calls Table 1 "a simple example", so it is a constructed illustration and nothing here is measured data. Once the arms are compared fairly, [statistical significance](https://missiongrowth.io/blog/statistical-significance) shows how to test whether the gap is real.

::dataset{key="ramp-up-counts" name="Microsoft ramp-up worked example, conversions and visitors per day (Crook et al., KDD 2009)"}

| Day | Control | Treatment | Winner on the day |
|---|---|---|---|
| Friday | 20,000 of 990,000 (2.02%) | 230 of 10,000 (2.30%) | Treatment, +0.28 points |
| Saturday | 5,000 of 500,000 (1.00%) | 6,000 of 500,000 (1.20%) | Treatment, +0.20 points |
| Pooled | 1.68% | 1.22% | Control, -0.46 points |

The paper prints the pooled treatment rate as 1.20%. Recomputed from its printed counts, the pooled treatment rate comes to 1.22%, which is the figure used here.

::figure{src="/blog/figures/simpsons-paradox-1.svg" alt="Simpsons paradox in grouped bars: control and treatment conversion rates on Friday, Saturday and pooled, with the treatment ahead on both days and behind in total" caption="The treatment leads on each day and trails pooled, 1.22% against 1.68%" width="720" height="288"}

The reversal comes entirely from where each arm's traffic sat. Dividing each arm's Saturday visitors by its two-day total gives 33.6% of control visitors on Saturday against 98.0% of the treatment's visitors.

::dataset{key="ramp-up-arm-shares" name="Share of each arm's visitors per day in the Microsoft ramp-up example, computed from the printed counts"}

| Day | Share of control visitors | Share of treatment visitors |
|---|---|---|
| Friday | 66.4% | 2.0% |
| Saturday | 33.6% | 98.0% |


::figure{src="/blog/figures/simpsons-paradox-2.svg" alt="Two stacked bars showing each arm's visitors split between Friday and Saturday, the treatment almost entirely on Saturday" caption="98.0% of the treatment's visitors fell on Saturday against 33.6% of control's" width="720" height="236"}

Saturday had the worse conversion rate overall, so it dragged the treatment's pooled number down far more than control's. Microsoft's authors put it as weighted averages: Saturday's lower rate weighed more on the treatment.

Give both arms the same day weights and the order returns. Each day had a million visitors, so we weight the days equally, an assumption of this illustration since the table carries no uncertainty. Control becomes (2.02% + 1.00%) / 2 = 1.51% and the treatment (2.30% + 1.20%) / 2 = 1.75%, a lead of 0.24 points.

## Why it happens: the two arms draw from different mixes

Simpson's paradox can appear whenever the treatment and control arms take different shares of the same segments, because each pooled rate is a weighted average of segment rates and the weights then differ between arms.

The Stanford entry states the arithmetic: since the weights can differ, a treatment may raise the probability of success in every subgroup without doing so in the combined population. The PMC article adds the recipe, an ignored confounding variable plus a disproportionate allocation of it.

Why does Simpson's paradox happen in a web test? The Microsoft paper names three web-traffic cases of unequal exposure mix:

- **Ramp-up across days.** The treatment's share changes between periods, as in the table above.
- **Per-country allocation.** The proportions vary by country, for example the US running the treatment at 1% while Canada runs it at 50% after its own power calculation.
- **Non-uniform browser sampling.** Some browsers are sampled at higher rates to keep the sample representative, so a treatment can look better overall and worse in every browser.

The cause is never "the data is confusing". It is a difference in arm mix by day, country or browser, and a table of each arm's share per segment exposes it.

A bandit makes the problem easier to trigger because its allocation moves by design, and [multi-armed bandit testing](https://missiongrowth.io/blog/multi-armed-bandit) covers that mechanism in its own section.

The same arithmetic hides a shifted group inside any blended average: a [cohort analysis](https://missiongrowth.io/blog/cohort-analysis) of retention shows it when a new cohort mix pulls the blended number around. A reversal from mix across days is also a different thing from an effect that decays as users get used to it, which is the [novelty effect](https://missiongrowth.io/blog/novelty-effect).

The Berkeley admissions case fits the same pattern. Women applied more often to more selective departments, the ones with lower acceptance rates, so the department carries the mix. On the natural reading the department is a mediator, which matters later when we decide which table to trust. The epidemiology and psychology versions follow the same condition, and the web-traffic form is the one this post works through.

## How to check your own test

A test shows Simpson's paradox when each arm's share of traffic differs across days or segments, and one grouped query that prints each arm's share per day next to its rate finds it before anyone reads the pooled number.

This is a different check from a [sample ratio mismatch](https://missiongrowth.io/blog/sample-ratio-mismatch) test, which asks whether the overall split hit its target. An intended ramp-up is no mismatch, and the paradox needs only a split that is on target in total and uneven by day.

The first query groups per day and variant, then prints the share of each arm's traffic beside its rate:

```sql
WITH daily AS (
  SELECT day, variant,
         COUNT(*) AS visitors,
         SUM(converted) AS conversions
  FROM experiment_visits
  GROUP BY day, variant
)
SELECT day, variant, visitors,
       ROUND(100.0 * conversions / visitors, 2) AS rate_pct,
       ROUND(100.0 * visitors / SUM(visitors) OVER (PARTITION BY variant), 1) AS share_of_arm_pct
FROM daily
ORDER BY day, variant;
```

The query is illustrative and was checked for logic, not run against a database. On the Microsoft counts it returns 66.4% and 33.6% as control's share per day, and 2.0% and 98.0% of treatment visitors per day. A share column that jumps between arms is the warning. Matching shares mean the pooled number is safe to read.

A second query gives the same-weight result, with each day weighted by its total traffic across both arms:

```sql
WITH daily AS (
  SELECT day, variant, COUNT(*) AS visitors, SUM(converted) AS conversions
  FROM experiment_visits
  GROUP BY day, variant
), day_total AS (
  SELECT day, SUM(visitors) AS total FROM daily GROUP BY day
)
SELECT d.variant,
       ROUND(100.0 * SUM((1.0 * d.conversions / d.visitors) * t.total) / SUM(t.total), 2) AS same_weight_rate_pct
FROM daily d JOIN day_total t USING (day)
GROUP BY d.variant;
```

If the same-weight rates order the arms differently from the pooled rates, the mix is the cause. Here is how to avoid Simpson's paradox, in order of effort:

1. **Hold a constant split.** The examples in Kohavi, Deng, Longbotham and Xu's 2014 rules-of-thumb paper each ran for at least a week with variant proportions that stayed stable over the experimentation period, to avoid Simpson's paradox.
2. **Drop the ramp-up period.** The authors call this the simplest solution, and the one they use, since the ramp-up is usually short relative to the experiment.
3. **Use paired comparisons or weighted combinations.** The 2009 paper lists paired t-tests where each pair comes from a period with stable proportions, and weighted combinations.

## Which table to trust: pooled, segmented or reweighted

The right table depends on how the segment relates to the variant and on the question: stratify or reweight for a segment fixed before assignment; for a segment the variant created, read the pooled table for the total effect and condition on it only for a step-level (path-specific) effect.

The Stanford entry says only causal knowledge decides how to deal with the reversal, and that telling a mediator from a common cause is the step everything else depends on.

| Segment is... | Example | Pooled table | Segmented or reweighted table |
|---|---|---|---|
| Fixed before the variant, arm shares equal across segments | Device type at a constant split | Fine for the total effect | Optional, for a per-segment readout |
| Fixed before the variant, arm shares differ by segment | Ramp-up days, per-country allocation, per-browser sampling | Misleading: weights differ between arms | Reweight to the same weights or stratify |
| Created after the variant (a mediator) | Users who reached checkout | Answers the total-effect question | Answers only a step-level (path-specific) question |

"Always stratify" is wrong in one direction and "never condition on a mediator" is wrong in the other. The standard advice to check every data subset and control for confounders holds for a common cause such as the day. It breaks for a segment the variant itself changed.

The Stanford entry puts both halves together: one should not condition on a mediator for the net effect, yet conditioning becomes necessary when the question concerns path-specific effects. That is why it justifies conditioning on department in the Berkeley discrimination question. For a funnel-stage segment, ask whether the segment existed before the variant or the variant changed it.

Pick the table per question. Variance reduction is a separate job: [cuped variance reduction](https://missiongrowth.io/blog/cuped) adjusts for a pre-experiment covariate and does not repair an exposure mix. Once the right table is chosen, test that table, which is where statistical significance comes in.

If your next test needs a ramp, plan to drop the ramp-up period before launch and add the per-day share query to your analysis template. That one habit settles whether the pooled number or the segment numbers deserve your trust.

## FAQ

### Can Simpson's paradox happen in a randomized A/B test?

Yes, when the allocation changes during the run or differs by segment. At a constant split, randomization protects in expectation, as general sources such as Britannica already say.

### Is Simpson's paradox the same as a sample ratio mismatch?

No. An [SRM](https://missiongrowth.io/blog/sample-ratio-mismatch) is the overall split missing its target. The paradox needs a split that can be exactly on target in total and still differ by day.

### Should I always break a result down by segment?

It depends on the question. For a segment fixed before the variant, yes. For one the variant created, read the pooled table for the total effect and break it down only for a step-level effect.

### Why is it called Simpson's paradox?

Pearson pointed the effect out in 1899 and Yule in 1903, but Simpson's 1951 paper is the one that stuck to the name.

### What is the simplest fix when I ramped up?

Drop the ramp-up period. Microsoft's authors call that the simplest solution and the one they use.
