What goes in B
The shape of the variations decides what a test can teach you. Get it wrong and even a clean result is useless; get it right and even a loss tells you what to do next.
Chapter 0 showed a variation that changed two words on a button. Real variations are rarely that tidy. A redesign touches a dozen things at once; a team has three ideas for the same spot and cannot choose; someone suspects the new headline only works with the new photo. Each of these calls for a different shape of test, and each shape answers a different question.
This chapter goes through them in the order teams usually meet them: the bundle that teaches nothing, the single change that teaches something, the lever, several variations at once, a bundle built up one piece at a time, every combination at once, and the interactions that make combinations interesting. It assumes the arithmetic of chapter 4 and chapter 6, because every extra variation is paid for in people.
How to get it wrong
A team spends a quarter on “the better product page”.
The designers have watched sessions, they have four good ideas, and they put all four into one variation: a photo gallery instead of a single photo, a much bigger price, the reviews moved up next to the price, and a wider blue button that promises free returns.
One variation, four changes
How to read itWireframes, not real pages. Grey is what stays as it is; blue is what the version changes. The red numbers mark each change in B.
B loses by 3%, and the test is a good one: big enough, run for whole weeks, sample ratio fine. The loss is real. And it teaches almost nothing, because there are at least four stories that fit it equally well. The gallery made the page slower and impatient visitors left. The big price made people think about cost instead of the product. The reviews helped, but the button, which now said something different from what people expected, hurt more. Or two of the changes helped and two hurt, and the losers were bigger. The test cannot tell these stories apart, because all four changes arrived together and left together.
A flat result is worse still. Suppose B had come out with no clear difference. That does not mean the four ideas do nothing: the reviews might have helped by 3% and the slower gallery hurt by 3%, cancelling out. A bundle that loses or comes out flat leaves you with the one answer you cannot act on, “something in here is wrong, or nothing is”, and no way to find out which without testing the pieces again.
So the team throws the whole quarter away, possibly three good ideas with one bad one, and the next quarter starts from the same guesses. Had B won, it would have been almost as bad. The team would ship four changes, believe in all four, and copy them to the next page, when perhaps only one did the work and another was quietly costing money.
The problem is not having four ideas. It is giving four ideas one variation to share, so that none of them can be judged.
How to get it right
Change one thing per variation, or know that you are testing a bundle.
Give each idea a variation of its own, and each result means something. With traffic for three groups, the team picks the two ideas it believes in most and tests each against the same A:
One change per variation
How to read itWireframes, not real pages. Grey is what stays as it is; blue is what the version changes.
This is slower: two ideas instead of four in the same weeks, and the other two wait for the next test. In exchange every result is an answer to a question someone asked. A loss for C is as useful as a win for B, because it says something specific about the button that the team did not know.
Bundles still have their place. When a team deliberately rebuilds something as a whole new concept, and will ship it whole or not at all, testing the concept against the old version is the honest question. Just be clear that the question was “is the concept better”, not “which part helped”, and plan the follow-up that answers the second. Go in knowing the risk: if the concept wins, you ship it; if it loses or comes out flat, the test will not tell you what went wrong, and the follow-up is the only way to find out. There is a shape made for that follow-up, further down: building the bundle one piece at a time.
Levers
Once a variation changes one thing, the next question is how far to change it. That is where levers come in.
A lever is one dimension of a design that you can move while everything else stays the same: the colour of a button, the wording of a headline, how prominent a message is, how big a discount is, how many steps a form has, how many seconds before a pop-up appears. Each variation on a lever is a different position of that one dimension. Choosing the lever is choosing the question: “which colour?” and “how loud should the delivery message be?” are different questions, and each gets its own set of variations.
Levers come in two kinds, and they are tested differently.
A set of options
Some levers have positions with no order: colours, headlines, photos. Here is the same product page with four button colours. The lever is the colour; nothing else changes.
One lever, four positions: the colour of the button
How to read itSame page, same words, same size. Only the colour of the button changes, marked by the dashed outline.
With options, there is no “between”: knowing that blue beats black says nothing about orange. Each option needs its own group, and the test can only say which of the ones you tried is best. So keep the set small, and choose options that differ for a reason you can state, such as “a colour that contrasts with the page” against “the brand colour”, rather than a palette.
A dial
Other levers have an order: from subtle to bold, small to large, early to late. Take a free-delivery message on the same page. It can be absent, a grey line under the price, a badge next to it, or a bar fixed to the top of the screen. Each step is louder than the one before, and nothing else changes.
One lever, turned up: how prominent the delivery message is
How to read itThe same page four times. Only the free-delivery message changes, drawn in blue, and in each version it is harder to miss than in the one before.
A dial lets you be clever about order. Test the boldest version you would still be happy to ship first. A large effect is far cheaper to detect than a small one, since halving the effect you look for roughly quadruples the people you need (chapter 6). If even the fixed bar moves nothing, the badge and the grey line will not either, and you have saved two tests. If it wins, the steps in between tell you how far to turn the dial.
A dial can also strengthen the explanation. If the effect grows step by step as the message gets louder, that is the kind of second prediction a scientific hypothesis makes (chapter 12): it is hard to explain by chance, and easy to explain if people really were held back by not knowing about free delivery.
How many variations at once
Options and dials both tempt you to test several positions in the same test. Nothing forbids it. A hotel page might try three headlines against today’s:
Three headlines against the original
How to read itWireframes, not real pages. Grey is what stays as it is; blue is what the version changes.
The bill comes in two parts. People. Each variation needs its own full group, and the rule for calling a win has to be tightened for the extra comparisons (chapter 4). In the shop of chapter 6, with 200,000 visitors a week, a plain A/B test for a 5% improvement needs about 154,000 people per version: two weeks. Three headlines against the original need about 206,000 per version, four groups of them: five weeks. False wins. If none of the three headlines does anything, the chance that at least one still looks like a win or a loss is about 12.5%, not 5%, unless the threshold is tightened.
Two or three variations, each changing one thing, sized for the extra groups, is a sensible ceiling. A list longer than that usually means the team has not decided what it believes, and a hypothesis (chapter 12) narrows a list better than traffic can.
Building a bundle one piece at a time
Back to the bundle that was allowed: the deliberate concept.
A team rebuilds its checkout with three pieces, guest checkout, the delivery cost shown on the first step, and a shorter form. Tested as one concept it wins by 5%, and the team should ship it. What the team does not know is which piece earned the 5%, so it cannot tell which ideas to reuse elsewhere.
The follow-up is to stack the pieces, all in one test, each version adding one piece to the one before. The difference between neighbouring versions is then the effect of exactly one piece.
Four versions, each adding one piece
How to read itWireframes, not real pages. Grey is what stays as it is; blue is what the version changes. In each version only the newest piece is blue; the pieces added before it are grey.
What each piece adds
How to read itEach bar is one version’s improvement over A, the checkout today. The steps between neighbouring bars are what each new piece adds. The numbers are an illustration, not a real test.
Three things make it work, and they are worth checking before you choose it.
- The order is a decision. C against B measures delivery costs in a world that already has guest checkout. Put the pieces in the order you would ship them, usually the most certain or cheapest first, because each step is only measured on top of the steps before it. Delivery costs alone, without guest checkout, are never measured; if the two pieces interact (see below), the order changes the answer.
- Every step is a comparison of two equal groups. C against B has the same precision as B against A, so the sample size per version is the one the planner gives for the smallest step you care about. Plan for that step, not for the whole bundle: the whole is bigger and easier to see than its parts.
- The comparisons are several. Three steps are three chances of a false win, so tighten the threshold for three, and name the steps in the pre-registration.
Stacking needs only one more version than there are pieces, four versions for three pieces, and answers the two questions teams usually have: is the whole thing better, and which pieces earn their place. What it cannot answer is whether a piece would have worked on its own. For that you need every combination.
Every combination at once: the multivariate test
A multivariate test pulls several levers at once and shows every combination of their positions.
The simplest way to picture one is as two experiments running at the same time on the same visitors: one tests the button, the other tests the headline, and every visitor is in both.
What makes that work is that each experiment has its own coin. One toss decides which button a visitor sees. A second, separate toss decides which headline. If a single coin decided both, everyone with the new button would also get the new headline, and the two changes would be welded together: a bundle again, with nothing in the data to tell them apart. The two changes would be confounded (chapter 1).
One coin, or a coin for each lever
How to read it1,000 visitors, a new button and a new headline. Each row is one of the four combinations a visitor could see. The numbers are how many visitors see it, on average.
| What the visitor sees | One coin for both | A coin for each |
|---|---|---|
| old button, old headline | 500 | 250 |
| new button, old headline | 0 | 250 |
| old button, new headline | 0 | 250 |
| new button, new headline | 500 | 250 |
On a testing platform the two coins are two independent random assignments. Each experiment scrambles the visitor’s identifier with a key of its own (chapter 5), so knowing a visitor’s group in one says nothing about their group in the other. It is the same mechanism that lets large companies run hundreds of separate tests on the same people at once. Two buttons and two headlines make four versions; three levers with three positions each make twenty-seven.
The best-known example is from Barack Obama’s 2008 campaign. The first page a visitor saw had a large picture, a form asking for an email address, and a button. The campaign’s analytics director, Dan Siroker, treated the picture and the button as two levers:
- The button text, with four options: “Sign up”, “Sign up now”, “Join us now” and “Learn more”.
- The media above it, with six options: three photos and three videos.
Four button texts times six media make 24 different pages. Here are three of them.
Three of the 24 pages
How to read itWireframes, not real pages. The page the campaign started with, the kind of page its staff expected to win, and the page that won, with its two winning pieces in blue.
And here are all 24 at once. Every visitor was sent to one of them at random, roughly 13,000 visitors to each, 310,382 in all.
Two levers, 24 pages
How to read itEach row is one button text; each column is one photo or video. Every square is one page: that row’s button under that column’s media. A cross is a photo, a triangle a video.
| three photos | three videos | |||||
|---|---|---|---|---|---|---|
| Sign up | ||||||
| Sign up now | ||||||
| Join us now | ||||||
| Learn more | ||||||
What 24 pages cost
The grid holds two kinds of answer, and they do not cost the same. A whole row or a whole column is built from many visitors. A single square is built from few.
| The question | Visitors behind each option | Smallest difference it can reliably see |
|---|---|---|
| Which button text? (4 rows) | about 77,600 | about 5% |
| Which photo or video? (6 columns) | about 51,700 | about 6% |
| Which single page? (24 squares) | about 12,900 | about 12% |
“Reliably see” means what chapter 6 means by it: found four times in five. The campaign could afford to compare single pages because the differences were enormous. The winner was 40% better than the starting page, more than three times the 12% the test needed. Most product changes are nothing like that. The shop of chapter 6, looking for a 5% improvement on a 4% conversion rate, would need about 154,000 visitors for every one of 24 pages: 3.7 million in all, nineteen weeks of its traffic, and more still once the line is tightened for 23 comparisons against the original.
So a multivariate test is cheap for one question and very expensive for another. “Which button, and which picture?” costs about the same people as a test of the button alone, because the same visitors answer both. “Which exact page?” multiplies the people by the number of pages. Decide which of the two you are asking before choosing this shape.
Two more things sit inside that result. The first is why rows and columns come so cheap. To measure the effect of the button text, the test does not compare single squares. It compares whole rows: everyone who saw “Learn more”, whatever was above it, with everyone who saw another text. That comparison is called the main effect of the button, and it uses every visitor, all 310,000 of them, not just the 13,000 in one square. The same visitors are then used again, grouped by column, for the main effect of the media. Each lever is measured as precisely as if it had a test to itself.
The second is a caution. The winning square is the best of 24 draws. Even when the difference is far too large to be noise, as here, the best of many is likely to be a little lucky, the winner’s curse of chapter 6, so the number to plan with is somewhat lower than the one celebrated.
What a multivariate test can show that no other shape can is whether the levers depend on each other: whether “Learn more” is the best button under every picture, or only under some. That is an interaction.
Interactions
Two changes interact when the effect of one depends on the other.
Without an interaction, effects simply add up: if a blue button adds 0.8 points and a new headline adds 0.5, both together add 1.3. With an interaction, they do not: together they might add 2 points, or nothing, or even lose.
The simplest picture is a button and the page around it. A blue button stands out on a white page. On a page with a blue background, the same button disappears into it.
The same two changes, four combinations
How to read itTwo levers, two positions each: the button (grey or blue) and the page (white or blue). Every combination is a version, with its conversion rate under it. The numbers are an illustration.
The same four numbers as a table, as conversion rates, with the effect of the blue button worked out for each page:
| grey button | blue button | effect of the blue button | |
|---|---|---|---|
| white page | 3.6% | 4.4% | +0.8 points |
| blue page | 4.0% | 3.4% | −0.6 points |
The effect of the blue button is +0.8 points on the white page and −0.6 on the blue one. The difference between those two effects, 1.4 points, is the interaction. And notice what the main effect says: averaged over both pages, the blue button adds (0.8 − 0.6) / 2 = 0.1 points, almost nothing. A test of the button alone, on a site with both kinds of page, would report “no effect” and hide a large gain and a large loss.
Parallel lines, crossing lines
How to read itEach line is one page; each dot the conversion rate with a grey or a blue button. Parallel lines mean the button adds the same amount on either page: no interaction. Lines that cross mean the button’s effect depends on the page. The numbers are an illustration.
Real interactions are usually less dramatic than crossing lines, and they are rarer than designers fear. Microsoft runs many separate A/B tests on the same people at the same time, so most visitors are in several tests at once, and finds that tests interfering with each other is unusual, more often a bug than a real effect. Interactions are most likely between changes that touch the same thing: the same button, the same message, the same moment in the journey. Changes on different pages, or to different parts of the page, rarely interact.
They are also expensive to measure. Measuring an interaction as precisely as a main effect takes about four times the people, so a multivariate test sized for its main effects will rarely be able to say much about interactions. In practice: where you have a specific reason to expect two changes to interact, test them together, as a bundle or stacked in the order you would ship them, and size the test for it; elsewhere, run separate tests and let the platform watch for the rare clash.
Why interactions cost four times as much
Take two levers with two positions each and N people split equally into four cells, each with mean m. With σ² the variance of one person’s behaviour, each cell mean, an average of N/4 people, has variance 4σ²/N.
The main effect of the button compares the two cells with the new button against the two without: (m₁₁ + m₁₂)/2 − (m₂₁ + m₂₂)/2. Its variance is 4 · ¼ · 4σ²/N = 4σ²/N, the same as a plain A/B test with N people.
The interaction is a difference of differences: m₁₁ − m₁₂ − m₂₁ + m₂₂. Its variance is 4 · 4σ²/N = 16σ²/N, four times larger. To measure it with the same precision you need four times the people.
This uses the convention that the main effect is a difference of averages and the interaction the full difference of differences. Some texts halve the interaction to put it on the same scale as the main effect; its variance is then 4σ²/N, but the quantity measured is half as large, so detecting a given difference of differences still takes four times the people.
In a stacked test with versions A, B, C, D, each step is a difference of two group means, with variance 2σ²/n for n people per version: the same as a plain A/B test with n per version.
Slowly, with numbers
- m₁₁
- The mean of one cell. First digit: the button (1 new, 2 old). Second digit: the other lever.
- σ²
- How much one person varies.
- 4σ²/N
- How much one cell’s mean wobbles: a quarter of the people, so four times the variance.
With numbersTwo rules do all the work. Adding or subtracting independent things adds their variances. Halving a quantity quarters its variance.
With the table above: the main effect of the blue button is (4.4 + 3.4)/2 − (3.6 + 4.0)/2 = 3.9 − 3.8 = 0.1 points, two averages subtracted. The interaction is (4.4 − 3.6) − (3.4 − 4.0) = 0.8 + 0.6 = 1.4 points: four cell means, none of them halved, so four full wobbles are in it.
Choosing a shape
Six situations, and the shape of test that fits each one.
- One idea, one change: A against B.
- A new concept you will ship whole or not at all: a bundle, A against the concept, knowing it will not say which part helped.
- A concept made of pieces, and you want to know which earn their place: stack them, one piece per version, in the order you would ship them.
- One lever with a few options: two or three options against A, sized for the extra groups.
- One lever that works like a dial: the boldest position you would ship first, then the steps between.
- Several levers, lots of traffic, and a real reason to expect them to depend on each other: a multivariate test.
What we’ve learned
- A bundle of changes can be a clean test and still teach nothing: when it loses or comes out flat, it cannot say which part helped, which hurt, or whether they cancelled out.
- Change one thing per variation, or know that you are testing a bundle.
- A lever is one dimension of the design; its positions are either options (colours, headlines) or a dial (subtle to bold).
- On a dial, test the boldest position you would ship first.
- Every extra variation costs a group of people and a stricter threshold; two or three is a sensible ceiling.
- Stacking pieces one per version says what each piece adds, with one more version than pieces.
- Multivariate tests measure each lever cheaply, using everyone; interactions cost four times as much and are rarer than feared.
- Two changes interact when the effect of one depends on the other; an average can then hide a gain and a loss.
Sources
- Siroker, D. (2010). How Obama raised $60 million by running a simple experiment. Optimizely blog.
- Kohavi, R., Longbotham, R., Sommerfield, D. and Henne, R. M. (2009). Controlled experiments on the web: survey and practical guide. Data Mining and Knowledge Discovery 18. Multivariate tests and their cost.
- Microsoft Experimentation Platform. A/B interactions: a call to relax.
- Kohavi, R., Tang, D. and Xu, Y. (2020). Trustworthy Online Controlled Experiments. Cambridge University Press.