Skip to the workspace
Pebellslearn by building
Exploring and Explaining Data  ›  Lesson

Simpson's Paradox: Segment Before You Conclude

Exploratory Data Analysis 14 minA total is a weighted average of its segments, so when two options serve very different mixes of segments with different rates, the totals can point the opposite way from every segment.

ai data scientist / Simpson's Paradox: Segment Before You Conclude

Explore each scene at your own pace.

01 · The rule

The rule

Simpson's Paradox: Segment Before You Conclude

Before the proper A/B test, the web team switched Quick Checkout on for most web users, while the app team released it to only a small group. A month later someone compared the totals: the old checkout converted 17% of users and Quick Checkout only 9.2%. "The new checkout is a disaster," read the email. The A/B test nearly never happened. Yet on the app and on the web, taken separately, Quick Checkout was doing better.

The rule

When groups mix differently, compare within each group before trusting the total.

Platform Old checkout Quick Checkout
App 800 of 4,000 = 20% 220 of 1,000 = 22%
Web 50 of 1,000 = 5% 240 of 4,000 = 6%
Total 850 of 5,000 = 17% 460 of 5,000 = 9.2%

Quick Checkout wins on the app (22% against 20%) and wins on the web (6% against 5%), yet loses overall. This reversal is Simpson's paradox, and there is nothing mysterious about it. Two facts combine:

  • The segments differ a lot in their rates. App users convert around 20%, web users around 5%, whichever checkout they see.
  • The two options got very different mixes. 80% of the old checkout's users were on the app; 80% of Quick Checkout's users were on the web.

So the totals mostly compare app users with web users, not one checkout with the other. A total is a weighted average of its segments, and here the weights were stacked against the new checkout.

Scene 1 of 5
Hover to wake the cannons. Drag to move, or use arrow keys when focused. Press Enter to fire a shot.