How sequential testing accelerates our experimentation velocity

Konrad Richter6 Nov 2023

Problem

Fixed-sample A/B tests need a pre-computed sample size and runtime, and stopping early after a look at intermediate results inflates the false-positive rate (the "peeking problem"). Sequential tests are less powerful than fixed-sample tests (FSTs). To keep the same error rates they need a larger maximum sample size, so flat experiments run longer. Few experiments succeed, so stopping only the winners early may not shorten the average runtime.

Example from the article: in a backtest on historical experiments, group sequential tests (GST) paid off only if more than 21% of experiments succeed.

Solution in brief

Use a futility boundary only, with no efficacy boundary. An experiment stops early when its cumulated relative uplift falls below the boundary, which shows it is unlikely to reach the pre-defined MDE by the maximum runtime. An experiment that reaches the maximum sample size without crossing the boundary counts as significantly positive.

Questions this case answers
  • How to cut the average runtime of randomized experiments with repeated significance checks while keeping the type I and type II error rates fixed when most tests show no effect
  • How to introduce a new statistical decision rule into an experimentation platform where the old tests are hard-coded in the BI layer
  • How to shorten A/B test runtime without inflating the false-positive rate when people peek at results?
  • How to decide whether sequential testing pays off given how rarely experiments win?

Tools and methods

  • Group sequential test (GST) — repeated significance checks on daily batches with adjusted decision boundaries.
  • Futility-only boundary (BaseMATH) — in-house method that computes maximum sample size and boundary from random-walk and Brownian-motion properties.
  • Looker — display of pre-calculated results.
  • Databricks — dashboard used for the pilot.
Continue reading — it's free

Google or a one-time email code. No password.