Problem
Platforms with always-valid confidence sequences must tell users how long to run a test. Most calculators either ignore sequential testing or inflate the fixed-sample size until the test has the target rejection probability at the planned endpoint (the last-point heuristic). That ignores early rejections, so the test comes out oversized: asking for 80% power delivers 86-88%. That costs 8-20% more users per experiment and cuts the number of experiments that can run at once.
Example from the article: on Spotify's mobile home screen, 58 teams ran 520 experiments in one year, about 10 new experiments every week. When experiments compete for the same user population, sample size decides how many can run at once.
Solution in brief
Find a multiplier such that . It is derived from Brownian motion and a linear approximation of the stopping boundary at the planned endpoint, so it needs no simulation and works for any smooth concave boundary. At and 80% power the multiplier drops from 2.90 to 2.50.
Questions this case answers
- How to plan the maximum sample size of a continuously monitored test so that it reaches the target power without paying for power it does not need
- How to account for early rejections in a power calculation under optional stopping, in closed form
- How to compute the sample size of an always-valid sequential A/B test without overestimating it?
- How to size a test that can stop early without running simulations for every change of effect size or significance level?
Tools and methods
- Always-valid confidence sequences (WSKR, Maharaj) and mSPRT — the sequential tests whose boundaries the correction covers
- Last-point heuristic — the baseline sizing rule the correction replaces
- Closed-form correction factor — sample size multiplier on the fixed-sample size
- Bonferroni correction — multiple-comparison adjustment applied in Spotify's production setup
Google or a one-time email code. No password.