11

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.

€48Add to basket★★★★☆ 212 reviews
Atoday
1€482★★★★☆ 212 reviews3Buy now · free returns4
B“the better product page”: four changes
What it showsB differs from A in four places and comes back with one number: 3% fewer orders. Nothing in the test can say which of the four changes is responsible, or whether some of them helped.

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.

€48Add to basket★★★★☆ 212 reviews
Atoday
€48★★★★☆ 212 reviewsAdd to basket
Breviews moved up
€48Buy now · free returns★★★★☆ 212 reviews
Cnew button
What it showsB and C each differ from A in exactly one place, so each result has one explanation. If B wins, the reviews belong next to the price. If C loses, the button is the problem. Either answer can be reused on the next page.

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.

€48Add to basket★★★★☆ 212 reviews
Ablack (today)
€48Add to basket★★★★☆ 212 reviews
Bblue
€48Add to basket★★★★☆ 212 reviews
Corange
€48Add to basket★★★★☆ 212 reviews
Dgreen
What it showsFour versions of the same page that differ in one dimension only, the colour of the button. Black, blue, orange and green have no natural order, so the test can say which of the four is best and nothing about colours it did not try.

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.

€48Add to basket★★★★☆ 212 reviews
Ano message (today)
€48Free deliveryAdd to basket★★★★☆ 212 reviews
Ba line under the price
€48Free deliveryAdd to basket★★★★☆ 212 reviews
Ca badge
Free delivery on every order€48Add to basket★★★★☆ 212 reviews
Da bar fixed to the top
What it showsOne dimension, how prominent the message is, in four positions that have an order: absent, quiet, visible, impossible to miss. The words never change. Test the boldest version you would still ship first.

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.

Rooms in FlorenceSee rooms
A“Rooms in Florence” (today)
Free cancellationon most roomsSee rooms
B“Free cancellation on most rooms”
Pay at the hotel,not nowSee rooms
C“Pay at the hotel, not now”
3 rooms leftat this priceSee rooms
D“3 rooms left at this price”
What it showsEach headline is a variation of its own, so the visitors are split four ways instead of two, and there are three comparisons against A instead of one. Each comparison is another chance of a false win.

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.

CheckoutSign in to continueSign inYour detailsPay
Atoday
CheckoutSign in to continueSign inContinue as guestYour detailsPay
BA + guest checkout
CheckoutDelivery €4.90 · arrives ThuSign in to continueSign inContinue as guestYour detailsPay
CB + delivery cost first
CheckoutDelivery €4.90 · arrives ThuSign in to continueSign inContinue as guestYour detailsPay
DC + shorter form
What it showsEach version is the one before it plus one piece. So B against A is guest checkout; C against B is the delivery cost, once guest checkout is there; D against C is the shorter form. D against A is still the whole concept.

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.

0% +2% +4% +6% 0 A today +2.0% B + guest checkout step +2.0 +5.0% C + delivery cost early step +3.0 +5.3% D + shorter form step +0.3
What it showsGuest checkout earns 2 points, delivery costs shown early another 3, the shorter form almost nothing. The team keeps the first two pieces everywhere and can drop the third if it is costly to maintain.

Three things make it work, and they are worth checking before you choose it.

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 seesOne coin for bothA coin for each
old button, old headline500250
new button, old headline0250
old button, new headline0250
new button, new headline500250
What it showsWith one coin, two of the four combinations never happen, so the test cannot tell the button from the headline. With a coin for each lever, every combination gets about a quarter of the visitors, and each change can be judged both with and without the other.

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:

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.

photo 1Sign up
Before the test“Sign up” under photo 1: 8.26% signed up
videoSign up
The team’s favouritea video instead of the photo
family photoLearn more
The winner“Learn more” under the family photo: 11.6%
What it showsThe three pages differ only in the two levers: what is shown above the form, and what the button says. The form itself never changes.

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.

The 24 combinations of four button texts and six media
three photosthree videos
Sign up
Sign up now
Join us now
Learn more
the page before the testthe winner
What it showsFour rows times six columns: 24 pages, tested at the same time. The winner, “Learn more” under the family photo, signed up 11.6% of its visitors against 8.26% for the page the campaign started with, an improvement of about 40%. The staff had expected a video to win; every video did worse than every photo.

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 questionVisitors behind each optionSmallest difference it can reliably see
Which button text? (4 rows)about 77,600about 5%
Which photo or video? (6 columns)about 51,700about 6%
Which single page? (24 squares)about 12,900about 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.

Book now
1grey button, white page: 3.6%
Book now
2blue button, white page: 4.4%
Book now
3grey button, blue page: 4.0%
Book now
4blue button, blue page: 3.4%
What it showsOn the white page the blue button is easier to see than the grey one, and more people book: 3.6% becomes 4.4%. On the blue page it sinks into the background, and fewer people book: 4.0% becomes 3.4%. The same change helps in one place and hurts in the other, so its effect depends on the page.

The same four numbers as a table, as conversion rates, with the effect of the blue button worked out for each page:

grey buttonblue buttoneffect of the blue button
white page3.6%4.4%+0.8 points
blue page4.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.

No interaction grey buttonblue button Interaction grey buttonblue button
white pageblue page

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.

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.