Controlled Experiments
Design like you’re right. Test like you’re wrong.
The motto comes from Skyscanner, where Colin McFarland was Head of Experimentation; Rik Higham wrote it into the team’s experimentation toolkit.
An interactive course on A/B testing for the people who design the changes and the people who measure them. The maths is rigorous and checked against the papers; the prose is for anyone.
Most writing about A/B testing stops at a sample size calculator. That is the easy part. The hard parts are knowing what to measure, admitting how often you are wrong, noticing when the test itself is broken, looking at results early without fooling yourself, and building a company that can live with all of it.
Each chapter has the plain argument in the main text and the maths one click away. Skip the maths and nothing breaks; read it and nothing is hand-waved.
My notes on A/B testing
I’m Fabio Venni. Since 2009 I have worked on A/B testing from inside large e-commerce companies, among them Booking.com, Skyscanner and Adevinta: first as a senior UX and product designer, later managing products and UX teams. I have run tests, built the internal tools that record what each test was for and what it found, agreed with product teams how an experiment should be run from start to finish, and helped start the habit of testing in places where there wasn’t one.
I am a designer with an engineer’s training: four of the five years of an Italian engineering degree under the old system, before the reform of 1999, when the first years were almost entirely mathematics and physics. It is why the maths here is worked out and checked rather than waved at, and why it sits one click away: most people who need to run a good test should never have to read it.
Over the years I found myself giving the same explanations in meeting after meeting: why most ideas fail, why you can’t stop a test because it looks good, why a result needs a reason behind it. These notes are those explanations, written down once, properly.
Contents
Part one · Why we test
- 00 What is a controlled experiment Two versions, a coin toss, a comparison. One whole test from start to finish, what gets counted, and why chance decides who sees what.
- 01 Two shortcuts that are not tests Comparing people who used a feature with people who did not, and comparing before with after. What each gets wrong, and how the coin turns bias into noise.
- 02 Design like you’re right, test like you’re wrong Conviction makes good work. It is not evidence. Most ideas, including good ones, do not move the numbers.
- 03 Two kinds of evidence Numbers tell you what happened and how much. People tell you why. You cannot pick one.
Part two · The numbers
- 04 Noise, and how to read it One running example, one calculation: how much a result wobbles, and the three numbers every dashboard shows, difference, p-value and interval.
- 05 What exactly are you measuring Who you count, how the coin is tossed, the one number that decides (the OEC), and the numbers that must not get worse.
- 06 How many people, and for how long Sample size and duration: noise, power, the smallest change worth finding, whole weeks and seasons. Why small tests produce big, wrong wins.
- 07 Looking early without fooling yourself Check every day and 5% false wins can become 20% or more. Medicine solved this decades ago.
- 08 When the test is lying Sample ratio mismatch, A/A tests and Twyman’s law: check the instrument before you read it.
- 09 Reading a result What a p-value is not, the result a well-planned test usually gives, guardrails, segments and how much to trust one result.
- 10 Less noise, same people Variance reduction with pre-experiment data, and metrics that are easier to move.
Part three · The company
- 11 What goes in B One change or a bundle, pieces stacked one at a time, levers, several variations and multivariate tests: what each shape can teach you and what it costs.
- 12 The life of an experiment From conjecture to scientific hypothesis, then pre-registration, review, launch, readout and a decision someone can find later.
- 13 Metrics people agree on Definitions, owners, versions, a starting catalogue and the checks that keep metrics honest.
- 14 Who does what Designers, researchers, analysts, engineers, the review that keeps them honest together, and a culture that can be wrong.
- 15 Growing up From a few tests a year to thousands: maturity, layers, people who affect each other, build or buy, memory, holdouts and ethics.
Tools
- T1 Plan a test How long to run your test, in whole weeks, and what it can and cannot detect. Analyst settings are there when you need them.
- T2 Read a result Did it work? Checks the data first, then answers in plain words, with the numbers underneath.
- T3 Peeking simulator See why stopping a test the moment it looks good ships changes that do nothing, and how to look early safely.
- T4 Pre-registration sheet One page to agree before launch: the hypothesis, the metric, the size, the looks and the decision rule. Fill it in or print it.
Standing on
The books this one leans on most, and the people I learned it from by working next to them.
-
Trustworthy Online Controlled Experiments
Ron Kohavi, Diane Tang and Ya Xu, 2020
-
Statistical Methods in Online A/B Testing
Georgi Georgiev, 2019
-
Design for Impact
Erin Weigel, 2024
- Jasper Cramwinkel, my manager at Booking.com, asked me about statistics in my design interview, then showed me how to put the maths from my engineering studies to work in design.
- Erin Weigel, a standout product designer, and a colleague at Booking.com. Her book is above; read it.
- Jonas Alves and Mario Silva helped build Booking.com’s in-house A/B testing tool. Both now work at ABsmartly.
- Lukas Vermeer, at Booking.com, briefly. He needs no introduction, and his papers with Pavel Dmitriev, Alex Deng, Aleksander Fabijan and colleagues on metrics, trust checks and maturity run through this book.
- Colin McFarland, Rik Higham and David Pier got the experimentation culture going at Skyscanner. Colin wrote Experiment! (2012) and The Case for Experimentation; Rik wrote “design like you’re right, test like you’re wrong” into the team’s toolkit, and talks about it in Get comfortable breaking your product.
- Anastasiia Lynnyk, analyst extraordinaire. We worked side by side at Adevinta, and together helped the team build its first in-house testing tool.
- Thanks also to María Peláez and Javier Roldán, at Adevinta, and to Raffaele Serrecchia, Lorenzo Cavatorta and Andrea Servali, at Subito.
Their arguments are paraphrased and credited chapter by chapter. Any mistakes are mine.