Using Sequential Testing to Reduce Sample Size

Andrey Korneev27 Jan 2025

Problem

The T-Bank Origination team runs thousands of A/B tests a year, mostly on binary metrics. A test often shows an effect far above the MDE long before the precalculated sample is collected, but the classical design forbids stopping early. CUPED and stratification help little on binary metrics without good covariates. Peeking without a correction raises the type I error to 0.19 after 10 peeks and 0.37 after 100, instead of 0.05.

Example from the article: in 50 simulated A/A tests with 10 even peeks, 6 crossed the usual ±1.96 boundary (0.12 instead of 0.05).

Solution in brief

Use a Group Sequential Test (GST). At each peek compute the usual z-statistic and compare it with boundaries from an alpha-spending function, which spreads the total significance level α over the peeks. The test stops when the statistic crosses a boundary and never runs longer than the classical test. In the author's simulations, 16 peeks cost 3% of power and cut the time to a decision by 34%.

Questions this case answers
  • How to shorten experiments on binary metrics by allowing interim looks at the data while keeping the type I error at the nominal level
  • How to choose how many times and how early to peek at a running test when each extra look costs some statistical power
  • How to stop an A/B test on a binary metric before the planned sample is collected without inflating the false positive rate?
  • How to decide whether to continue a test when the observed effect is well above the MDE but the precalculated sample is far away?

Tools and methods

  • Group Sequential Test — z-test with boundaries from an alpha-spending function (power family, Pocock)
  • Power analysis — gives the standard z-test sample size, against which the collected share is measured
  • A/A simulations — check the false positive rate under peeking
  • AdaptiveGST — the author's Python library (Lan and DeMets boundary code) that computes boundaries and decisions
Continue reading — it's free

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