Problem
A frequentist team ties run length to power: pick a minimum detectable effect (MDE), get a sample size, convert it to weeks. A team that decides from a Bayesian posterior has no such direct link between sample size and effect size. The prior complicates it further: if it says a 5% lift is improbable, designing the test to detect 5% makes little sense.
Example from the article: a lift prior of , a metric standard deviation of , equal allocation, and the "probability to beat control" rule with threshold 0.95.
Solution in brief
Measure run length by expected impact: the average true lift the team ships under its decision rule, with no-ship counted as 0. It rises with sample size and levels off at the "Clairvoyant" impact, the average under perfect information. Pick the sample size near that ceiling. A simulation gives the curve for any rule; a closed-form normal expression gives it without simulation.
Questions this case answers
- How to set the sample size of an experiment when the decision rule is posterior-based and a frequentist power-versus-effect-size relation does not exist
- How to quantify the expected benefit of a shipping rule as a function of sample size, relative to the benefit under perfect information
- How to choose the run length of an A/B test when decisions are made with a Bayesian rule instead of a p-value?
- How to tell when running a Bayesian A/B test longer stops paying off?
Tools and methods
- Bayesian A/B test (normal-normal model) — conjugate posterior of the lift from the observed lift and its standard error.
- Decision rules — probability to beat control, Bayesian p-value style rule, positive posterior mean.
- Monte Carlo simulation — draws true lift, group means and a decision to estimate expected impact per sample size.
- Closed-form expected impact — truncated bivariate normal formula replacing the simulation.
Google or a one-time email code. No password.