Two shortcuts that are not tests
A real A/B test needs machinery and people. Without them, teams compare users with non-users, or before with after. Both feel like tests. What each gets wrong, and how to read one when it is all you have.
Chapter 0 described a test: a coin decides who sees which version, and both versions run at the same time. Most teams, most of the time, do something else. They launch the change to everyone and then compare, in one of two ways that look like tests and are not. This chapter is about those two shortcuts: why teams take them, what each one gets wrong, and how to read one when it is all you have.
Why teams take shortcuts
A proper test is a piece of machinery, run by several people, and most teams start without it.
What a proper A/B test needs
How to read itThe five stages of one test, in order, with who usually does the work and what has to exist first. In a small team one person may play several parts; the work does not go away.
- Plan
Whothe idea’s owner, usually a product manager or designer, with an analyst
Needsa hypothesis, one deciding number chosen in advance, an estimate of how long the test will take
- Build
Whodesigners and engineers
Needsboth versions live at once, behind a switch that can show either one to anyone
- Split
Whoengineers
Needsa coin for each visitor that remembers the result, so people keep their version
- Measure
Whodata engineers and analysts
Needsthe same logging in both groups, and a check that the split came out as planned
- Read
Whoan analyst, the owner and a reviewer
Needsstatistics that tell the change from the noise, and a written decision
A company that tests every week has all of this as a platform, and a new test costs it a few hours. A team that has never tested has a launch button and a dashboard. So the change goes out to everyone, and the dashboard offers two comparisons: the people who used the new thing against those who did not, and the weeks after the launch against the weeks before. Both give a number with a percentage sign. Neither is a test.
A shortcut is not a cheaper test. It is weaker evidence, and it should be read that way.
To see how much weaker, start with the comparison dashboards make easiest.
Shortcut one: comparing people who used it with people who did not
Split the visitors after launch into those who used the new thing and those who did not, and compare what they did.
A shop adds a “Save for later” button to every product page, without a test. A month on, the people who pressed it had bought far more often than the people who did not. The button works, surely.
One page for everyone, two kinds of visitor
How to read itLeft, the page after launch, the same for every visitor, with the new “Save” button in blue: there is no A and no B. Right, the same visitors a month later, sorted by whether they pressed it. Each square is about 25 visitors; dark squares are returning customers, light ones first-time visitors.
In this example the button does nothing at all. The whole gap comes from who pressed it: three in four returning customers did, against one in three new visitors, and returning customers buy four times as often whatever page they see. Had a coin decided who got the button, both groups would have bought at the same 6.6%.
The numbers
1,000 visitors: 400 returning customers, who buy 12% of the time, and 600 new ones, who buy 3%. The button changes nothing.
| Did not use it | Used it | |
|---|---|---|
| Returning customers (buy 12%) | 100 | 300 |
| New visitors (buy 3%) | 390 | 210 |
| Visitors in the group | 490 | 510 |
| Buyers | 12 + 12 = 24 | 36 + 6 = 42 |
| Conversion rate | 4.8% | 8.3% |
The “used it” group has three times as many of the people who buy anyway, so it converts 70% better.
The simulation lets you make both kinds of groups yourself, with 120 visitors and a new thing that, again, changes nothing.
Toss a coin for every visitor
How to read itEach square is one of 120 visitors; dark squares are returning customers, who buy four times as often. “Split at random” is a test: a coin sends each visitor to A or B. “Release it, then compare” is the shortcut: everyone gets the new thing, and the groups are who used it and who did not. Under each group is its share of returning customers.
A · current design
B · new design
The same trap catches anyone comparing newsletter readers with non-readers, or app users with site users. The feature and buying go together, they are correlated, but the correlation is not causation: a third thing, being a keen customer, drives both. That third thing is a confounder, and letting people pick their own group is called selection bias. A coin breaks the link: with a coin, nobody’s keenness decides which version they see.
The obvious repair is to stop comparing different people and look at the whole site, before the change and after it. That is the second shortcut, and it fails in a different way.
Shortcut two: before and after
Launch the change to everyone and compare the weeks after with the weeks before.
The weeks after differ from the weeks before in many ways besides your change: the season, a campaign, a competitor’s price, a bug fixed by another team. In the chart below the new design does nothing at all; watch what before and after makes of it.
Before and after, or an A/B test
How to read itEach point is one week’s conversion rate; the new design goes live in week 11, in the grey area, and does nothing. The dotted lines are the averages before and after. Pick a kind of period, then switch between the before and after and the A/B test of the same weeks.
When the season kicks in, the shortcut flatters the design; in an ordinary period it hands it whatever the weeks happened to do. An A/B test runs both versions at the same time, so the season and the news hit both groups alike and cancel out.
The page that just had its worst month
The season is on the calendar. The next trap is not. Teams redesign the page that just had its worst month, because that is where the problem seems to be. But a record bad month is usually partly bad luck, and luck does not repeat: the next month drifts back towards normal whatever the team does. This is called regression to the mean.
A page’s worst month, and its “recovery”
How to read itTwelve months of one page’s conversion rate; the dashed line is its usual level. After August, its worst month, a redesign goes live, in the grey area. In this example the redesign does nothing.
It works in reverse too: a page that just had its best month “drops” after any change. In a test, version A has the same month behind it and moves just as much as B, so the movement cancels out.
Two shortcuts, three traps: people who sort themselves, a calendar that moves on, luck that does not repeat. They share one flaw, and naming it is what makes the coin make sense.
Two kinds of error: bias and noise
Two things can push a comparison away from the truth.
Bias is a difference that does not go away with more people: users against non-users compares people who really are different, before and after compares periods that really are different, and a million visitors would fix neither. Noise is the difference chance produces: it averages out, and it shrinks as the groups grow.
The coin turns bias into noise. That is its whole trick.
Bias cannot be measured from inside the data; noise can. So once the coin has done its work, every result comes down to the question chapter 0 ended on: is the difference bigger than the noise?
The maths
Write what you observe in each group as what those people would have done anyway, their baseline, plus the effect of the version they saw. The comparison is then the effect plus a difference in baselines, and everything depends on what that difference is.
Before and after, comparing two periods:
The bracket is a real difference between two periods: season, campaigns, news. Its size is unknown and it does not shrink with more people. That is bias.
A randomised test, comparing two groups drawn by coin from the same people at the same time:
Now the bracket is only chance: who happened to land in which group. It is zero on average, its size can be calculated, and it shrinks as the groups grow. That is noise, and calculating it is what chapter 4 does.
Slowly, with numbers
In wordsWhat you measure is what the change did, plus whatever else differs between the two things you compare. The whole chapter is about what sits in that “whatever else”.
- Ȳ
- Y with a bar on top: the average of what you measured, for example orders per visitor, in one period or one group.
- effect
- What the change itself did. The number you want.
- baseline
- What those same people would have done with no change at all. You never get to see it.
With numbersBefore and after: November 4.0%, December 4.6%. The comparison says +0.6 points. If December’s shoppers would have bought at 4.5% anyway, the effect is 0.1 and the other 0.5 is the calendar. Nothing in the data tells you how to split the 0.6.
Coin toss: two groups of 95,000 drawn in the same weeks. The bracket is now only luck, and luck of that size is known: 19 times in 20 it is within ±0.18 points (chapter 4). Ask more people and it shrinks further.
When a shortcut is all you have
Some changes can never be split at random, a new price list or a rebrand, and some teams have no way to split yet. Shortcuts will happen. The skill is knowing what you are looking at.
How much a comparison can tell you
How to read itFive ways of judging a change, strongest first, with what each keeps from a proper test and what it lets in.
- An A/B test
Coin and calendar both in place. What is left is noise, and its size can be calculated.
- A staggered launch
Some countries or stores get the change first, the rest later. Same weeks, so the calendar is handled; but nobody tossed a coin.
- Before and after, against last year
The same weeks a year earlier handle the season, roughly. Campaigns, news and luck stay in.
- Plain before and after
Everything that changed between the two periods is in the result.
- Users against non-users
It compares kinds of people, and can show a big gap when nothing changed.
Whatever the rung, say which comparison you made: “after the launch, 4.6% against 4.0% in the weeks before”, not “the redesign raised conversion by 15%”. List what else could explain it. And distrust the size: a small difference means nothing, because the bias can be bigger, and the save button looked 70% better while doing nothing.
A shortcut gives you a lead, not a verdict.
Use it to choose what to test. The machinery from the start of this chapter can be built one piece at a time: chapter 15 follows that path, and the planner and analyser cover the arithmetic.
Which leaves the question a confident team asks next: if the designer is sure the change is better, why test at all? Chapter 2 answers it.
What we’ve learned
- A proper test needs machinery and people. Without them teams take shortcuts, and a shortcut is weaker evidence, not a cheaper test.
- Comparing people who used a feature with people who did not compares kinds of people, not the feature.
- Before and after mixes your change with the season, the news, and luck that does not repeat.
- Bias does not shrink with more people; noise does. The coin, with both versions live at the same time, turns bias into noise.
- When a shortcut is all you have, place it on the ladder, say what it is, and use it to choose what to test.
Sources
- Kohavi, R., Tang, D. and Xu, Y. (2020). Trustworthy Online Controlled Experiments. Cambridge University Press. Chapters 1 and 2, terminology and the case for controlled experiments.
- Kohavi, R. et al. (2009). Controlled experiments on the web: survey and practical guide. Data Mining and Knowledge Discovery 18. The case for controlled experiments and their pitfalls.
- McFarland, C. (2012). Experiment!. New Riders.