Errors, Power and Sample Size
Before the checkout test, someone else at Pantry tested a "Reorder" button for three days with 1,000 users per arm. The result was p = 0.4, and the product manager declared: "The button doesn't work." Maybe. Or maybe the test was far too small to notice a button that does work. Deciding how big a test must be before it starts is what separates an experiment from a coin toss.
The rule
Decide the smallest effect worth finding, then buy enough sample to see it.
Every test can go wrong in two ways:
- A Type I error is a false alarm: declaring a winner when the change does nothing. Its rate is the significance level, , usually 5%.
- A Type II error is a miss: failing to detect a change that really works. Power is the chance of not missing, and teams usually aim for 80%.
Power depends on the size of the effect you hope to catch. The minimum detectable effect (MDE) is the smallest lift worth acting on, and it comes from the decision, not from the data. For comparing two conversion rates at with 80% power, a well-known rule of thumb is
where is the baseline rate and is the MDE, both as proportions. For Quick Checkout, and (one point): users per arm. That is exactly why the test ran with 14,400 users in each group.
Because is squared, halving the effect you want to detect needs four times the users.