Basis Lab

Running an Online Experiment

How Much Traffic It Will Take

Last timeSplitting the Traffic Fairly

The number of people needed goes up as the square of how small a change you want to see, which is why most experiments teams want to run cannot be run at all.

The calculation that ends most discussions

Before running anything, work out how many people it will take. It is one

multiplication and it frequently ends the discussion, which is a service

rather than an obstruction.

FIG 1People needed on each side
the variability of the measure among individual people
the size of change you want to be able to detect
people needed on each side, so twice this in total
The sixteen comes from wanting a one in twenty false alarm rate and an eighty per cent chance of seeing a real effect of that size, and it is close enough for planning that nothing is gained by being more precise. For a yes or no measure such as whether somebody converted, the variability is the conversion rate times one minus it, which needs no data collection to estimate: a four per cent conversion rate gives 0.0384.

Take the checkout example. Conversion runs at four per cent, and the change is

worth having if it lifts conversion by two tenths of a percentage point.

Variability is 0.0384, the change is 0.002, and the calculation gives about

a hundred and fifty-four thousand people on each side.

FIG 2The same calculation for four changes worth detecting
steplift to detect, percentage pointspeople per sidetotal peopledays at 20,000 visitors a day
11.06,10012,2001
20.524,60049,2003
30.2153,600307,20016
40.1614,4001,228,80062
50.036,826,70013,653,300683
5 steps
A four per cent baseline conversion rate throughout. The last row is the break even lift computed in the first lesson for a cheap copy change, and detecting it would take nearly two years, which is the useful finding: the change is worth shipping if it is real and it cannot be tested, so the decision has to be made another way. The jump from the third row to the fourth is the subject of the next section.

Why small effects cost so much

The square in the denominator is the whole story, and it is worth

understanding rather than memorising.

A measured difference between two groups wobbles. The size of the wobble falls

like the square root of the number of people, because that is how averages

behave: four times the people gives half the wobble, not a quarter of it.

To see an effect, the effect has to stand clear of the wobble. So an effect

half as large needs a wobble half as large, which needs four times the people.

An effect a tenth as large needs a hundred times the people.

The lesson stops here

3 more paragraphs to go

You have read the opening. The rest of the argument, the problems that check whether it landed, and the lines worth keeping at the end all come with a plan.

The first lesson of every course in the library reads the whole way through, free, so you can see exactly what the rest of them are.

See the planThe contents

This is the reading half

Starting the course gives you your own copy of it. Every idea on every page has problems standing under it, marked with a reason rather than a tick, and any sentence you do not believe can be opened and argued with. None of that can happen on a page nobody owns.

The contents

The rest of this course

  1. 01Saying What Would Count as Better
  2. 02Splitting the Traffic Fairlyopening only
  3. 03How Much Traffic It Will Takeyou are here
  4. 04Reading the Resultopening only
  5. 05Why You Must Not Peekopening only
  6. 06Testing Many Things at Onceopening only
  7. 07When a Test Is the Wrong Toolopening only
  8. 08What to Do With the Answeropening only

Read alongside