Mental model

Segmenting Test Results

Breaking down experiment results into meaningful subgroups reveals hidden effects that averages alone can miss.

Discover

An e-commerce site runs an A/B test on checkout flow changes. The overall results show no improvement in conversion rates, so the team rolls back the change. Was this the right decision?

Consider what the overall average might be hiding.

Discover what segmenting reveals about hidden effects.

Understand

Understand

Segmenting test results means breaking your data into meaningful subgroups instead of looking at overall averages. Imagine a medication that helps 70% of patients but harms the remaining 30%—the average effect would look like it does nothing, when in reality it has powerful but opposite effects on different groups. Similarly, that checkout change might have helped mobile users while hurting desktop users, canceling out in the overall average. By looking at subgroups like device type, geography, or customer tenure, you can find effects that averages hide entirely. The correct answer to the hook is that it depends on subgroups—the team should have segmented the data to see if different customer groups responded differently before rolling back. Check this: Next time you see flat results, ask whether you've segmented by meaningful characteristics.

Full explanation

Full explanation

Segmenting works by dividing your experiment data into subgroups based on characteristics that might matter: device type, location, new vs. returning users, traffic source, or past behavior. The process involves first running your experiment to get overall results, then forming hypotheses about which groups might respond differently, and finally analyzing each subgroup separately. When effects differ across groups, the overall average can mask both positive and negative impacts.

The danger of Simpson's Paradox: This statistical phenomenon occurs when a trend appears in several different groups of data but disappears or reverses when these groups are combined. The checkout flow change might have increased mobile conversion by 15% while decreasing desktop conversion by 10%—if mobile users are 40% of your traffic and desktop users are 60%, the overall effect could appear neutral or even negative despite helping a large and growing user segment.

Practical segmentation framework: Start with dimensions you already track. For e-commerce, segment by device type, first-time vs. returning customers, and purchase category. For B2B software, segment by company size, role (decision-maker vs. user), and geographic region. The key is to plan your segments before running the experiment to avoid cherry-picking results afterward. Document your segmentation hypotheses upfront, then test them systematically.

When segmentation matters most: Segmentation is most valuable when you have heterogeneous users with different needs or contexts. A pricing page change might attract price-sensitive new customers while alienating loyal power users. A feature redesign might help beginners but frustrate experts. In these cases, segmentation helps you decide whether to launch different experiences for different segments rather than a one-size-fits-all solution.

Research

Research

Research on subgroup analysis in experiments reveals both its power and its pitfalls. Kohavi et al. (2020) emphasize that proper segmentation requires pre-specifying subgroups to avoid false discoveries: data scientists can always find some segment that shows positive results by chance if they slice the data enough ways after the fact [1]. Gelman (2017) demonstrates how multilevel modeling can improve subgroup estimates by borrowing strength across segments, reducing the high variance that plagues small subgroup analyses [2].

  • Kohavi et al. (2020): Trustworthy online controlled experiments pre-specify segments and adjust for multiple comparisons to avoid finding spurious effects through data dredging [1].
  • Gelman & Hill (2007): Multilevel (hierarchical) models provide partial pooling between segment and overall estimates, balancing segment-specific learning with general patterns [3].
  • Hsu et al. (2020): Subgroup analysis requires larger sample sizes than overall experiments to detect true interaction effects, as power is limited by the smallest segment of interest [4].

Limitations

Limitations

Segmenting introduces statistical challenges: smaller sample sizes in each subgroup increase variance and reduce power, making real effects harder to detect. The more segments you create, the more likely you are to find false positives by chance alone—the multiple comparisons problem. Segmentation hypotheses must be pre-registered before viewing results to avoid "p-hacking" or cherry-picking. Additionally, segments can interact with each other in complex ways; a change might help mobile users from California but hurt mobile users from New York, leading to an explosion of potential segment combinations. Finally, segments may shift over time; what worked last quarter for new users might not work this quarter as your traffic source mix changes.

Try it

Synthesize

Choose a pattern from the guide, then pick an action to try with it.

Which pattern stands out?

What will you try?

Choose a pattern above to select an action.

Sources

Sources

Try it

Check your understanding

A test shows a 2% overall conversion lift—statistically significant but smaller than expected. Which segmentation action is most justified?

Show the guide's explanation

Answer: Check whether mobile and desktop segments differ

The small overall lift could mask opposing effects in subgroups—mobile might show 15% gains while desktop shows 5% losses. Segmenting reveals whether you have a uniform small win or heterogeneous effects requiring targeted solutions rather than a blanket rollout or rollback.

A product team tests a new feature and finds no overall effect on engagement. However, segmenting by user tenure reveals +20% engagement for new users and -15% for power users. What's the most appropriate next step?

Show the guide's explanation

Answer: Roll out the feature to new users only

The segmentation reveals a heterogeneous treatment effect: the feature helps new users but hurts power users. Rather than accepting the average (no effect) or launching indiscriminately, the right action is a targeted rollout to the benefiting segment. This is the practical value of segmenting—it uncovers win-win solutions that aggregate metrics hide.

Which scenario most clearly illustrates Simpson's Paradox in A/B testing?

Show the guide's explanation

Answer: A treatment wins in all segments but loses overall

Simpson's Paradox occurs when subgroup results reverse when combined. This happens when segment sizes and conversion rates differ substantially—imagine a treatment that improves conversion for both new (10%→12%) and returning (50%→55%) users, but because returning users make up most of the control group and new users make up most of the treatment group, the overall average can show the treatment losing despite winning everywhere.

Keep exploring

Find another idea for the decision in front of you.

The complete Reframo library is free to read. Explore another guide whenever you are ready.

Segmenting Test Results | Reframo