Problem
Analysts want to read an A/B test before the planned sample is collected, to save time and traffic. Checking a Student's test at every look breaks it: the type I error (false positive) rate grows with the number of looks, so false winners appear far more often than planned. Fixing only the type I error leaves the type II error (missed real effect) uncontrolled.
Example from the article: a simulated experiment with 128 measurements per group, planned at type I error 0.05 and type II error 0.1. Peeking 16 times with a plain Student's test gives a type I error of about 0.2, four times the plan.
Solution in brief
The author measures the damage by simulation, then tries two remedies: a numerical analogue of the Pocock method (a stricter threshold for a fixed number of looks) and the Wald sequential test with an upper and a lower boundary. The Wald test controls both errors and stops after about 71 observations per group on average. Some runs need more data than a fixed test.
Questions this case answers
- How to monitor an experiment continuously and stop early while keeping the false-positive and false-negative rates at their planned levels
- How to choose between a fixed-sample test, a fixed number of interim looks and a fully sequential test when the maximum sample size is limited
- How to stop an A/B test early without inflating the type I error
- How to quantify how much repeated peeking at a test inflates false positives
Tools and methods
- Adjusted threshold (numerical Pocock analogue) — one stricter p-value threshold for a fixed number of looks, found by simulation
- Wald sequential test (SPRT) — two boundaries on a running statistic; crossing either stops the test
- Simulated A/A and A/B runs — check error rates and duration of a rule
Google or a one-time email code. No password.
