Segments, Averages and A/B Tests
Use segments to find what averages hide, avoid misleading comparisons such as Simpson's paradox, and judge A/B test results with care.
Welcome back!
Step 1 of 13Learn
The average that hid two stories
A furniture retailer's overall conversion rate stayed at 2.0% for three months. The team concluded nothing had changed. Then an analyst split the data by device: desktop conversion had risen from 3.0% to 3.6%, while mobile had fallen from 1.4% to 1.1%. Because mobile traffic was growing, the two trends cancelled out in the average.
A segment is a subset of your data defined by shared characteristics: mobile users, visitors from email, people who viewed the pricing page, customers who bought twice, visitors from Canada. Segmenting is the single most powerful habit in analytics, because averages blend groups that behave very differently.
Useful segments to check routinely:
- Device: mobile, desktop, tablet.
- Traffic source or channel: organic search, paid, email, social, referral.
- New vs. returning visitors.
- Landing page: where the session started.
- Geography: country or region.
- Behavior: viewed a key page, used site search, added to cart.
The aim isn't to slice data endlessly but to find segments where behavior differs enough to act on. A mobile conversion rate falling while desktop rises is a clear signal to examine the mobile experience, which the overall average would never have revealed.
Step 2 of 13Chart
The flat average that hid two trends
| Item | Desktop | Overall | Mobile |
|---|---|---|---|
| Month 1 | 3% | 2% | 1.4% |
| Month 2 | 3.3% | 2% | 1.25% |
| Month 3 | 3.6% | 2% | 1.1% |
Step 3 of 13Practice · Sort into groups
Classify each segment by the kind of data that defines it.
Tap an item, then tap its group (or drag it there).
Step 4 of 13Learn
When averages mislead: Simpson's paradox
Segments can even reverse a conclusion. Consider two landing pages tested over a month:
| Desktop | Mobile | Total | |
|---|---|---|---|
| Page A | 120 of 2,000 (6.0%) | 40 of 2,000 (2.0%) | 160 of 4,000 (4.0%) |
| Page B | 200 of 3,000 (6.7%) | 25 of 1,000 (2.5%) | 225 of 4,000 (5.6%) |
Here Page B wins on desktop and on mobile, and also overall, so far so good. Now suppose a third page, C, gets 400 of 6,500 desktop sessions (6.2%) and 10 of 500 mobile sessions (2.0%) with an overall 410 of 7,000 = 5.9%. Overall, C seems to beat B (5.9% vs. 5.6%). But by segment, B beats C on desktop (6.7% vs. 6.2%) and on mobile (2.5% vs. 2.0%).
How? C received mostly desktop traffic, which converts better for every page. Its higher total reflects a different mix of visitors, not a better page. This reversal is known as Simpson's paradox: a trend in combined data disappears or reverses when the data is split into groups.
The lesson: when comparing pages, campaigns or periods, check whether the groups have a similar mix of devices, sources and visitor types. If they don't, compare within segments, or use a properly randomized test.
Step 5 of 13Practice · Chart
Page B vs Page C, by segment and overall
In which column does Page C come out ahead?
Tap the bar that answers the question, then press Check.
Step 6 of 13Practice · True or false
If a page has a higher overall conversion rate than another page, it must also have a higher conversion rate in every segment, such as on both mobile and desktop.
Step 7 of 13Learn
A/B tests: the fair comparison
The cleanest way to know whether a change helps is an A/B test: randomly split visitors so half see the current version (control, A) and half see the new version (variant, B), then compare a key metric. Random assignment means both groups have a similar mix of devices, sources and visitor types, which removes the problem you just saw.
To read results, compare rates and calculate the relative lift:
Relative lift = (variant rate − control rate) ÷ control rate × 100
Example: control converts at 4.0%, variant at 4.6%. The absolute difference is 0.6 percentage points; the relative lift is 0.6 ÷ 4.0 = 15%.
Then ask whether the difference is real or noise. Testing tools report statistical significance, often at a 95% confidence level, which roughly means a difference this large would rarely happen by chance if the versions were truly equal. Small tests produce big random swings, so many sites need thousands of conversions, not dozens, to detect modest lifts.
Rules for trustworthy tests: decide the metric and sample size in advance, run full weeks to cover weekday and weekend behavior, don't stop the test the moment it looks good (so-called peeking inflates false wins), and test one main change at a time.
Step 8 of 13Diagram
An A/B test from start to decision
Tap a shape with to see more.
- Hypothesis
What you change and what metric should move.
- Plan sample size
Decide how many visitors or conversions you need before starting.
- Random split
Half see control (A), half see the variant (B).
- Run full weeks
Avoid weekday effects; don't peek and stop early.
- Read lift and significance
Relative lift plus a significance check.
- Decide and document
Ship, drop or retest, and record what you learned.
Step 9 of 13Explore
Relative lift explorer
The line shows the relative lift for different variant conversion rates (x, in percent) against a fixed control rate. Move the control rate and see how the same absolute gain becomes a bigger or smaller relative lift.
- Absolute difference
- 0.6 percentage points
- Relative lift
- 15 %
Step 10 of 13Practice · Work it out
In an A/B test, the control converts at 2.5% and the variant at 3.0%. What is the relative lift in percent?
Step 11 of 13Practice · What would you do?
What would you do?
A team runs an A/B test on a new checkout button. After two days, the variant shows a 30% relative lift based on 18 conversions versus 14. The test was planned for two full weeks. The manager wants to stop now and roll out the variant. What should the team do?
Step 12 of 13Note
Step 13 of 13Practice · Choose one
Why is random assignment essential in an A/B test?
Lesson complete!