A surprising result in one audience can overturn what the overall numbers say, which is why choosing the right metrics for A/B testing is only half the job. You also have to check who those metrics came from. That is the core of simpson’s paradox ab testing: a variant can win on mobile and on desktop, then lose once both groups are added together.
This shows up whenever the mix of visitors in the control is different from the mix in the variant, such as a shift in device share, new versus returning visitors, or paid versus organic traffic.
This guide walks through a simpson’s paradox example from an ecommerce store, shows how a traffic mix ab test problem is created, and lays out a safe way to do ab testing segmentation so you do not ship the wrong experience.
Simpson’s Paradox in A/B Testing: What It Means
Simpson’s paradox is a situation where a trend that holds in every subgroup reverses, or disappears, when the subgroups are combined. In an experiment, that usually means:
- Variant B beats control A inside each segment you care about (for example, mobile and desktop).
- Control A still wins in the overall result, or the other way around.
The overall number is not a calculation error. It is a weighted average. If one group received more of a lower converting segment, that segment pulls its overall rate down, even if it was better inside every segment.
People who search for “simpson’s paradox a/b testing” usually want to know which number to trust. Trust the segment results only if the traffic mix was stable and the segments were planned in advance. Trust the overall result only if both groups saw the same mix of visitors.
A Simpson’s Paradox Example from an Ecommerce Store
Take a home goods store testing a new product page layout, planned as a 50/50 split on product page visitors for two weeks, with conversion rate (orders divided by visitors) as the primary metric. Here is what the team sees at the end.
| Segment | Control A visitors | Control A orders | Control A rate | Variant B visitors | Variant B orders | Variant B rate |
| Desktop | 2,000 | 120 | 6.00% | 1,000 | 66 | 6.60% |
| Mobile | 2,000 | 40 | 2.00% | 3,000 | 66 | 2.20% |
| Overall | 4,000 | 160 | 4.00% | 4,000 | 132 | 3.30% |
On desktop, B is ahead by a relative 10% (6.60% vs 6.00%). On mobile, B is also ahead by a relative 10% (2.20% vs 2.00%). Yet overall, B is behind by a relative 17.5% (3.30% vs 4.00%). If the team only reads the overall line, they will kill a layout that was better for both desktop and mobile shoppers.
The reversal comes from the mix, not from the layout. Control visitors were split evenly: 50% desktop and 50% mobile. Variant visitors were 25% desktop and 75% mobile. Mobile converts at a much lower rate, so the extra mobile share in B drags the overall rate down. If B had also received 2,000 desktop and 2,000 mobile visitors at the same segment rates, it would have produced 132 + 44 = 176 orders, or 4.40%. That is a clean 10% relative lift, matching the lift inside each segment.
The segment rates tell you what the new layout does for a given type of visitor. The overall 3.30% describes this particular traffic mix, which was not the same in A and B. Shipping a rollback based on 3.30% would be a mistake.
How a Traffic Mix A/B Test Problem Happens
A traffic mix ab test issue appears when assignment, redirect behavior, or the change itself shifts who lands in each group. Common causes include:
- A redirect test that fails more often on mobile. If the variant URL times out or is blocked on some phones, those visitors may bounce before they are counted, or they may be recoded as control.
- A flicker or a slow script on one device. Visitors on slower phones abandon before the variant renders, so the counted audience is skewed toward desktop.
- A change that is itself a traffic filter. A new navigation or a pop-up can push one type of visitor away before they are counted in the test.
- A mid-test paid campaign. A mobile-heavy campaign can land unevenly in a short, unstratified test and change the mix by chance.
- Re-randomizing returning visitors. If a returning customer can be assigned again on a later visit, the groups stop being comparable.
Any of these can also show up as sample ratio mismatch. If the planned 50/50 split is off inside a device or a channel, treat that as a warning and read how to detect and fix sample ratio mismatch before you interpret lift.
The pattern is well documented. The classic illustration is university admissions data, summarized on the Simpson’s paradox Wikipedia page. The same averaging problem is treated as a practical risk in Kohavi, Tang and Xu’s book Trustworthy Online Controlled Experiments.
How to Prevent the Mix from Flipping Your Winner
You cannot stop mobile from converting lower than desktop, but you can stop the two groups from having different shares of mobile traffic.
- 1. Assign visitors in a stable way, then keep them there. Randomize once, persist the assignment in a cookie or a server-side bucket, and do not re-randomize.
- 2. Stratify the split on the segments that matter. If desktop and mobile convert at very different rates, force the 50/50 split inside each device, not only on the total. The same idea applies to new versus returning visitors.
- 3. Check the mix at launch and at the end. Before you read conversion rates, compare the share of mobile, new visitors and paid traffic in A and B. A gap of several points needs an explanation.
- 4. Avoid client-side redirects when you can. Redirect tests often create uneven device mixes. If you must redirect, hold the visitor out of the analysis until the destination page actually loads.
- 5. Run the test long enough to cover a full week. A two-day spike in mobile paid traffic can warp a short test even when assignment is fair. See our guide on how long to run an A/B test.
If your tool supports mutually exclusive groups or device-level targeting, use those controls for tests that are likely to behave differently by device. The same discipline helps when you are running multiple A/B tests at the same time, because overlapping tests can also change who reaches a later experiment.
Read more: P Value AB Testing: What It Means for Your Store
Test the Layout, Not the Traffic Mix
Run experiments with stable assignment and clear device-level reporting, so a traffic mix shift does not hide a real lift. Try CustomFit.ai free for 14 days.
Safe A/B Testing Segmentation
Ab testing segmentation is how you catch Simpson’s paradox, and it is also how teams accidentally invent a winner. These rules keep the analysis honest.
Plan the segments before launch
Write down the cuts you will look at: device, new versus returning, and maybe one major channel or category. If a segment is not on that list, it is exploratory. A lift you discovered by slicing 20 ways is a hypothesis for a follow-up test, not a shipping decision.
Do not require a segment to “win” on its own unless it was powered
A mobile slice with 800 visitors will often show a noisy swing, even when the overall test was sized correctly. If mobile is a decision-critical segment, give it its own sample size plan. Otherwise, treat it as a consistency check, not a second experiment. The guide to A/B testing segmentation on customfit.ai covers how to cut results without turning every slice into a new test.
Always put the mix next to the rates
When you report a segment table, include visitors, not only conversion rates. The home goods example is obvious once you see 1,000 versus 3,000 in the variant. In a rates-only chart, that gap is easy to miss.
Watch for opposite movements
If overall lift is strongly positive, but every large pre-planned segment is flat or negative, inspect the mix. The overall win may be a mix shift, not a better page. The reverse is also true, as in the example.
Do not average incompatible units
A related trap is mixing sessions and users, or mixing first-time and subscription orders, in the same rate. Keep one unit of assignment and one primary metric. If you need both, pre-register them, as we cover in our explainer on the p-value in A/B testing.
A Simple Checklist Before You Ship
Use this list at the end of every test that changes a template, a redirect or a major page.
| Check | Passes if |
| Overall split | The total visitor counts match the planned ratio, with no SRM alert |
| Mix by device | Mobile and desktop shares in A and B differ by only a small random gap |
| Mix by new vs returning | The two groups have a similar share of new visitors |
| Segment rates | The direction of lift in each pre-planned segment agrees with the overall result, or any disagreement has a clear mix explanation |
| Decision rule | You decided, before launch, whether you would ship on the overall metric or on a pre-planned segment |
If the mix check fails, do not ship based on the overall rate. Fix assignment or tracking, then rerun. If the mix is stable and a large pre-planned segment disagrees with the overall result, ship only if your pre-registered rule says that segment is the decision metric. Otherwise, treat the disagreement as a finding and design a follow-up test for that audience.
Ship Tests You Can Trust
Stable assignment, honest significance and clear device-level reporting, all in one place. Try CustomFit.ai free for 14 days, no credit card required.
Summary
Simpson’s paradox in A/B testing is what happens when a variant wins in every important segment and still loses overall, or the other way around, because the two groups did not see the same traffic mix. The overall conversion rate is a weighted average, so an uneven share of mobile, new, or paid visitors can flip the winner.
Prevent it with stable assignment, a stratified split on the segments that matter, and a mix check before you read any lift. When you do ab testing segmentation, plan the cuts in advance, report visitor counts next to rates, and do not treat an underpowered slice as a shipping decision. In the worked simpson’s paradox example, the new layout was better on both desktop and mobile. The overall loss appeared only because the variant received a heavier mobile mix, a setup problem rather than a reason to kill a better page.
FAQs
What is Simpson’s paradox in A/B testing?
Simpson’s paradox in A/B testing is when a variant wins in each segment, such as mobile and desktop, but loses in the overall result, or the reverse. The overall number is a weighted average, so a different traffic mix in the two groups can flip the winner even when the page is better for every type of visitor.
Can you give a simpson’s paradox example for an online store?
Yes. In the product page test above, variant B converted at 6.60% on desktop and 2.20% on mobile, beating control in both segments. Overall, B converted at 3.30% versus 4.00% for control, because 75% of B’s visitors were mobile compared with 50% in control. The mix, not the layout, created the loss.
How does a traffic mix ab test problem get created?
It is created when the control and the variant do not receive the same share of a high or low converting audience. Redirect failures on mobile, a slow variant script, a mid-test paid campaign, or re-randomizing returning visitors can all change the mix and reverse the overall result.
How should I do ab testing segmentation without being misled?
Plan a short list of segments before launch, report visitor counts next to conversion rates, and treat any slice you did not pre-plan as exploratory. Do not require an underpowered segment to be significant on its own. If the mix is uneven, fix assignment first and do not ship on the overall rate.
Which result should I trust, the overall lift or the segment lifts?
Trust the overall lift when the traffic mix is stable and the primary metric was pre-registered. Trust a segment lift as a shipping decision only when that segment was planned in advance and had enough traffic. If the two disagree, inspect the mix before you roll the change out or kill it.
Does Simpson’s paradox mean I should always look at segments first?
Look at the mix first, then the overall primary metric, then the pre-planned segments as a consistency check. Starting with every possible slice creates false winners. Segments are essential for finding a mix problem, but they are not a substitute for a single, pre-registered decision metric.



