# Simpson's Paradox: When the Total Tells the Wrong Story by [kirupa](https://www.kirupa.com/me/index.htm) | filed under [Data & Decisions](https://www.kirupa.com/data_and_decisions/index.htm) **TL;DR:** A total can move the opposite way from every group inside it. When Biscuit's quick and tricky chats both improved but the overall resolution rate fell from 52% to 40%, a flood of tricky holiday questions caused the drop. That flip is called Simpson's paradox, and splitting a metric by group catches it. - A total is a blend of its groups, so it leans toward the biggest one. When the mix shifts, the total can fall even while every group gets better. - In Berkeley's 1973 graduate admissions, men were admitted at 44% and women at 35%, yet women did as well or better in four of the six largest departments. Women had mostly applied to the hardest ones. - Turning an A/B test up from 1% to 50% of traffic can make a version that wins every day look like a loser once the days are added together. - Split by something that was settled before the change, like device or question type, and compare the rates and the counts together. Every Monday morning, our team at Crumb & Co. opens the dashboard for Biscuit, the help desk bot on the bakery's website. This Monday, the number we care about most took a dive. The share of chats Biscuit handled on its own dropped from **52%** to **40%**, in the same week Wren shipped a new version of Biscuit's instructions. Wren's finger is already hovering over the rollback button. Before we let Wren press it, we are going to slice that one number in two and watch both halves tell a very different story. Along the way, we'll see how a trend can flip upside down when we add groups together, why it happens, and the small habit that keeps it from fooling us (and the AI agents we ask to read our dashboards). Onwards! ## A Bad Week for Biscuit Here is the chart we're all staring at: [![A line chart of the share of chats Biscuit resolved on its own each week, from the week of October 19 to the week of November 30. It holds steady between 51% and 53% for six weeks, ending at 52%. In the week of November 30, the week Wren shipped v2 of Biscuit's instructions, it drops to 40%.](https://www.kirupa.com/data_and_decisions/images/simpsons_paradox_dashboard.png)](https://www.kirupa.com/data_and_decisions/images/simpsons_paradox_dashboard.png?v=5df6fbb1f671) For six weeks, Biscuit resolved between 51% and 53% of our chats. In the week of November 30, the week Wren shipped v2, that share fell to 40%. Resolved means the same thing it meant when we picked Biscuit's [north star metric](https://www.kirupa.com/product_thinking/north_star_metrics.htm): the customer got what they came for without needing a person. If this chart were all we had, v2 would look like a disaster, and we'd roll it back today. ## Splitting the Chats in Two Biscuit gets two very different kinds of questions. Some are quick, like store hours, prices, and pickup times. Others are tricky, like custom cakes, allergies, and changes to an order that's already in the oven. Tricky chats often end with Biscuit handing the customer to Tess, our support lead. Here is one of each: [![Two Biscuit chats side by side. On the left, a quick question: a customer asks what time the bakery closes on Sunday, and Biscuit answers 3 PM, so Biscuit resolved it. On the right, a tricky question: a customer asks for a three-tier cake with no nuts for 40 people by Saturday, and Biscuit hands the chat to Tess, the support lead.](https://www.kirupa.com/data_and_decisions/images/simpsons_paradox_chats.png)](https://www.kirupa.com/data_and_decisions/images/simpsons_paradox_chats.png?v=dd9140d4a830) What we are going to do is look at how v2 did on each kind of question by itself. We'll compare the week before v2 with v2's first week: [![Three panels compare the week before v2 with the first week of v2. Quick questions: Biscuit resolved 70% before and 75% with v2, up 5 points. Tricky questions: 20% before and 24% with v2, up 4 points. All chats together: 52% before and 40% with v2, down 12 points.](https://www.kirupa.com/data_and_decisions/images/simpsons_paradox_split.png)](https://www.kirupa.com/data_and_decisions/images/simpsons_paradox_split.png?v=4895cee5cf31) On quick questions, v2 resolved **75%** of our chats, up from 70%. On tricky questions, it resolved **24%**, up from 20%. Both kinds of questions got better! When we add them back together, though, our total still drops from 52% to 40%. How can every part improve while the whole gets worse? Here is Wren's reaction, more or less: [![A joke drawing of Wren's reaction. Two small green arrows point up, labeled quick questions and tricky questions. Next to them, one big red arrow points down, labeled all chats. Wren's head is exploding.](https://www.kirupa.com/data_and_decisions/images/simpsons_paradox_arrows.png)](https://www.kirupa.com/data_and_decisions/images/simpsons_paradox_arrows.png?v=1d53319b677f) Nobody made a math mistake here. There's something about totals that we haven't accounted for yet, and it's going to explain the whole thing. ## Where Did the Drop Come From? The answer is hiding in how many chats of each kind Biscuit got. December is when holiday cake orders show up, and holiday cake orders are almost all tricky: [![Two stacked bars count Biscuit's chats by kind. The week before v2 had 1,240 chats: 800 quick questions and 440 tricky ones. The first week of v2 had 1,600 chats: 500 quick questions and 1,100 tricky ones, as holiday cake orders arrived. Tricky questions went from 35% of chats to 69%.](https://www.kirupa.com/data_and_decisions/images/simpsons_paradox_mix.png)](https://www.kirupa.com/data_and_decisions/images/simpsons_paradox_mix.png?v=770679dc64c3) The week before v2, we saw 1,240 chats, and 440 of them (about 35%) were tricky. In v2's first week, we saw 1,600 chats, and **1,100** of them (about 69%) were tricky. Nothing about v2 caused that. Our customers simply asked harder questions in December. This matters because a total is a blend of its groups. Each group pulls our total toward its own rate, and the bigger the group, the harder it pulls. A seesaw is a nice way to picture this. Each kind of question is a weight that sits at its resolution rate. The weight's size is how many chats it had, and our total sits at the balance point. Here are our two weeks as seesaws: [![Two seesaws drawn on a number line from 0% to 80%. Each kind of question is a weight that sits at its resolution rate, and its size is how many chats it had. Before v2, a big quick weight (800 chats) sits at 70% and a smaller tricky weight (440) sits at 20%, so the seesaw balances at 52%. With v2, both weights move right, to 75% and 24%, but now the tricky weight is the big one (1,100 chats against 500), so the balance point slides left to 40%.](https://www.kirupa.com/data_and_decisions/images/simpsons_paradox_balance.png)](https://www.kirupa.com/data_and_decisions/images/simpsons_paradox_balance.png?v=de10f1b1fbd9) Before v2, the heavy weight was the quick questions, so the balance point sat up at 52%. With v2, both weights slid to the right, which means both kinds of questions improved. The catch is that the tricky weight became the heavy one, and that heavy weight dragged the balance point left to 40%. When a trend shows up in every group but flips (or vanishes) once we combine the groups, there's a name for it. It's called **Simpson's paradox**, after the British statistician Edward Simpson, who described it in [a 1951 paper](https://doi.org/10.1111/j.2517-6161.1951.tb00088.x). No relation to Homer. Karl Pearson and Udny Yule had noticed the same effect decades earlier, and Colin Blyth gave it Simpson's name in [a 1972 paper](https://doi.org/10.1080/01621459.1972.10482387). So, did v2 make Biscuit better or not? We can answer that fairly by asking how v2 would have done on the old mix of questions: [![Three bars. Before v2, Biscuit resolved 52% of chats. If v2 had seen the old mix of questions (800 quick and 440 tricky), it would have resolved 57%. With December's mix, it resolved 40%.](https://www.kirupa.com/data_and_decisions/images/simpsons_paradox_same_mix.png)](https://www.kirupa.com/data_and_decisions/images/simpsons_paradox_same_mix.png?v=13e948bb9c3c) If v2 had seen the late-November mix of 800 quick chats and 440 tricky ones, it would have resolved **57%** of them, up from 52%. This means v2 is a real improvement. Wren's finger leaves the rollback button, and our 40% goes back to being what it always was: a sign that December brings a lot of hard questions. ## What Is the Berkeley Admissions Example? Simpson's paradox isn't just a dashboard quirk. One of the most famous examples comes from graduate admissions at the University of California, Berkeley, in the fall of 1973: [![Fall 1973 graduate admissions at UC Berkeley, from Bickel, Hammel, and O'Connell (1975). Of 8,442 men who applied, 44% were admitted. Of 4,321 women who applied, 35% were admitted.](https://www.kirupa.com/data_and_decisions/images/simpsons_paradox_berkeley_total.png)](https://www.kirupa.com/data_and_decisions/images/simpsons_paradox_berkeley_total.png?v=db0bf79e8e3c) Men were admitted at a rate of 44%, and women at 35%. That gap looks like clear evidence of bias against women, and it deserved a close look. Peter Bickel, Eugene Hammel, and J. W. O'Connell split the numbers by department, and they published what they found [in Science in 1975](https://doi.org/10.1126/science.187.4175.398). We are going to look at the six largest departments, which the paper labels A through F: [![Admission rates for men and women in UC Berkeley's six largest graduate departments in fall 1973, from Bickel, Hammel, and O'Connell (1975). Department A: men 62%, women 82%. B: men 63%, women 68%. C: men 37%, women 34%. D: men 33%, women 35%. E: men 28%, women 24%. F: men 6%, women 7%. Women had the higher rate in four of the six departments.](https://www.kirupa.com/data_and_decisions/images/simpsons_paradox_berkeley_departments.png)](https://www.kirupa.com/data_and_decisions/images/simpsons_paradox_berkeley_departments.png?v=6a088d7701ea) In four of the six, women were admitted at a higher rate than men. Across all 85 departments, the authors found 4 that were significantly biased against women and 6 that were significantly biased against men. Where did the big overall gap come from? It came from the same place as Biscuit's drop, which is where each group showed up: [![Two bars split each group's applications to Berkeley's six largest departments. 51% of men's applications went to departments A and B, which admitted about 63% of applicants, and 49% went to departments C through F, which admitted between 6% and 35%. Only 7% of women's applications went to A and B, and 93% went to C through F.](https://www.kirupa.com/data_and_decisions/images/simpsons_paradox_berkeley_where.png)](https://www.kirupa.com/data_and_decisions/images/simpsons_paradox_berkeley_where.png?v=6204315a1a2c) About **51%** of men's applications went to the two departments that admitted most of their applicants. Only **7%** of women's applications did. Women mostly applied to departments that turned most people away, whoever they were. The authors concluded that the gap came from earlier in women's education, which steered them toward fields that were more crowded and harder to get into. The split didn't make the question of fairness go away. It moved that question to a different place, and that's a lot more useful than arguing about the wrong number. ## When the Better Option Gets the Harder Cases The same flip shows up whenever the better option gets handed the harder cases. [A 1986 study by C. R. Charig and colleagues](https://doi.org/10.1136/bmj.292.6524.879) compared two kidney stone treatments: open surgery and a less invasive keyhole procedure. We will look at how each one did on small stones, large stones, and all stones together: [![Success rates of two kidney stone treatments from Charig and colleagues (1986). For small stones, open surgery worked 93% of the time (81 of 87) and keyhole surgery 87% (234 of 270). For large stones, open surgery worked 73% (192 of 263) and keyhole 69% (55 of 80). For all stones together, open surgery worked 78% (273 of 350) and keyhole 83% (289 of 350).](https://www.kirupa.com/data_and_decisions/images/simpsons_paradox_kidney.png)](https://www.kirupa.com/data_and_decisions/images/simpsons_paradox_kidney.png?v=fcc4aaa12937) Open surgery won on small stones, and it won on large stones. Added together, keyhole looks better, **83%** to **78%**. Large stones are harder to treat no matter what, and doctors used open surgery mostly on large stones (263 of its 350 cases). Its total got dragged down by the hard cases. We can walk right into this trap with our own AI features. Suppose Wren sends most tricky chats to a bigger, pricier model and most quick chats to a small one. Here is what our dashboard will show: [![Biscuit sends most tricky questions to a big model and most quick ones to a small model, 1,000 chats each. On quick questions, the big model resolves 80% and the small model 72%. On tricky questions, the big model resolves 30% and the small model 20%. Overall, the big model resolves only 35% and the small model 67%, because the big model gets 900 of the tricky questions.](https://www.kirupa.com/data_and_decisions/images/simpsons_paradox_routing.png)](https://www.kirupa.com/data_and_decisions/images/simpsons_paradox_routing.png?v=c975ef0a7f95) The big model wins on quick questions and on tricky questions. Its total still looks terrible, 35% against 67%, because it gets 900 of our tricky chats. If we compared our two models by their totals, we would move everything to the small model and make Biscuit worse. ## The A/B Test That Flipped Even a proper A/B test can stumble into this. A common practice is to start a new version on a small slice of traffic and turn it up once nothing breaks. Thomas Crook, Brian Frasca, Ron Kohavi, and Roger Longbotham shared this example in [a 2009 paper on experiment pitfalls](https://doi.org/10.1145/1557019.1557139). We'll put the number of visitors who saw each version under its bar: [![From Crook, Frasca, Kohavi, and Longbotham (2009). A website with a million visitors a day tests a new version B. On Friday, 1% of visitors get B: A converts 2.02% of 990,000 visitors and B converts 2.30% of 10,000. On Saturday, 50% get B: A converts 1.00% of 500,000 and B converts 1.20% of 500,000. With both days added together, A converts 1.68% of 1,490,000 and B converts 1.22% of 510,000, so B looks worse even though it won on both days.](https://www.kirupa.com/data_and_decisions/images/simpsons_paradox_ramp_up.png)](https://www.kirupa.com/data_and_decisions/images/simpsons_paradox_ramp_up.png?v=1c4378a1b9c4) On Friday, only 1% of visitors got version B. On Saturday, half of them did. B won on both days. Saturday's visitors bought about half as often as Friday's, whichever version they saw, and B got almost all of its visitors on Saturday. Added together, B looks like a loser, 1.22% against 1.68%. The fix is to compare A and B within the same days, or to keep the split steady for the whole test. Our article on [A/B testing](https://www.kirupa.com/ai_fundamentals/ab_testing.htm) walks through how we split traffic for Biscuit. ## Which Number Should We Believe? By now, it sounds like the rule is to always trust the split. That's almost right, and there's one more detail to keep in mind. A split is only trustworthy when the thing we split by was already settled before our change could touch it: [![Two cards. The first says to trust a split by something that was already decided before Biscuit answered, like what the customer asked about, whether they used a phone or a computer, or whether they were new or returning. The second warns that a split by something v2 itself changes, like Biscuit's own tricky label or whether the chat got handed to Tess, can mislead.](https://www.kirupa.com/data_and_decisions/images/simpsons_paradox_which_split.png)](https://www.kirupa.com/data_and_decisions/images/simpsons_paradox_which_split.png?v=d0c4ec8da6f8) The kind of question a customer asks is decided by the customer before Biscuit says a word, so splitting by it is safe. Now imagine that v2 also changed how Biscuit labels a chat as tricky. If v2 labeled more chats as tricky, the groups themselves would have moved, and our split would be comparing different chats. The same goes for splitting by whether a chat got handed to Tess, because v2 is the one deciding the handoff. Judea Pearl [makes this case](https://doi.org/10.1080/00031305.2014.876829) well: the numbers alone can't tell us which table to trust. We have to know what came first, the grouping or the change. ## Try It This Week Pick one number you report every week, and split it: 1. Choose a metric that's a rate, like conversion, resolution, or retention. 2. Pick two or three splits that were settled before your last change, like device, new or returning, plan, country, or the kind of request. 3. For two periods, write down each group's rate and how many people or chats it had. 4. Check whether the mix of groups changed between the two periods. 5. If it did, recompute the new period's total using the old period's mix, and compare that to the old total. If you ask an AI agent to analyze your metrics, give it the same instructions. Ask it to show each group's rate and count before it says anything about the total. ## Frequently Asked Questions **What Is Simpson’s Paradox?** Simpson’s paradox is when a trend shows up in every group of data but disappears or reverses once the groups are combined. In our example, Biscuit resolved more quick questions and more tricky questions after v2 shipped, yet its overall resolution rate fell from 52% to 40%. **What Causes Simpson’s Paradox?** A total is a weighted average of its groups, so it leans toward whichever group is biggest. When the groups have very different rates and the mix between them changes, the total can move the opposite way from every group. For Biscuit, tricky questions jumped from 35% of chats to 69%. **What Is the Berkeley Admissions Example of Simpson’s Paradox?** In fall 1973, Berkeley admitted 44% of the men and 35% of the women who applied to graduate school. When Bickel, Hammel, and O’Connell split the data by department, women were admitted at a higher rate in four of the six largest departments. Women had mostly applied to departments that admitted few applicants of either sex. **How Do You Avoid Being Fooled by Simpson’s Paradox?** Split your metric by groups that were settled before the change, like device, new or returning users, or the kind of request, and look at each group’s rate and count. If the mix changed, recompute the total using the old mix. Be careful with groups your change can move, because then the split compares different things. ## Conclusion Ok! It is time to wrap things up. We started with Wren about to roll back a version of Biscuit that was better at both kinds of questions it gets. Our total dropped because December brought a flood of tricky cake orders, and a total always leans toward its biggest group. When a trend in every group flips once the groups are combined, that's Simpson's paradox. It shows up in dashboards, college admissions, hospital studies, model comparisons, and A/B tests. The habit that protects us is a small one. Whenever a total moves, we'll split it by something that was settled before the change, and we'll look at the rates and the counts together. The split won't always tell the whole story (as we saw with groups our change can move), but it will stop us from rolling back the best version of Biscuit we've ever shipped...right before the busiest month of the year. Before you go, here are a few things you can do: 1. Test your knowledge by taking the quiz below. 2. Read the next article in the series, [Regression to the Mean](https://www.kirupa.com/data_and_decisions/regression_to_the_mean.htm), or check out some related content: - [A/B Testing](https://www.kirupa.com/ai_fundamentals/ab_testing.htm). Testing whether a change really made things better. - [North Star and Input Metrics](https://www.kirupa.com/product_thinking/north_star_metrics.htm). One number that only goes up when customers win. - [Instrumentation Plans](https://www.kirupa.com/product_thinking/instrumentation_plans.htm). Recording the details you’ll need to split a metric later. 3. Stuck on something, or curious about a detail we skipped? [Ask on the forums](https://forum.kirupa.com/), and we’ll help you out. ## Test your knowledge! [Take the Simpson's Paradox Quiz](https://www.kirupa.com/quizzes/simpsons_paradox.htm). Practice with 6 multiple-choice questions and an explanation after every answer.