KatInterview

Valid Early Stopping: Interim Looks, Always-Valid Tests, Many Metrics

Statistics & ExperimentsModel answer
HardModel answerStatistics & Experimentssequential-testingalpha-spendingmsprt

Last updated

Design an A/B test that can be stopped early for a win or for futility without inflating false positives, covering fixed-look boundaries, always-valid methods and multiple metrics.

Your team wants to watch an online experiment as data arrives and be able to end it early, either because the treatment clearly wins or because it is clearly not going to. Stakeholders keep checking the dashboard, and you need to make sure this does not produce spurious "significant" results.

Answer the following.

a) Take a two-sided test at overall level 0.05 with two interim analyses plus a final analysis, at equally spaced information fractions. Compare the Pocock and O'Brien-Fleming boundaries. Give the critical z-values at each look, and discuss the trade-offs in early stopping, final-look power and sample size. Say how you would add a futility rule. Also say what changes if "two looks" means one interim plus the final.

b) Explain how a mixture sequential probability ratio test (mSPRT) or an e-value approach gives inference that stays valid no matter when or how often people peek. State what property makes it work and what you would report to stakeholders (p-values, intervals).

c) Describe how you would combine sequential monitoring with several metrics (a primary metric, secondary metrics and guardrails) so that the overall error rate is not inflated either by repeated looks or by testing many metrics.

A strong answer is structured, gives the numbers, and calls out the costs and common mistakes.

Hints

Hint 1

Start by quantifying the problem: repeatedly applying a fixed 1.96 threshold makes the real false-positive rate climb well past 5% (around 14% with five looks). Boundaries must be chosen so the probability of crossing at any look under H0 is 0.05, using the correlation Corr(Z_j, Z_k) = sqrt(t_j / t_k).

Hint 2

Pocock uses the same threshold at every look, while O'Brien-Fleming uses c_k proportional to sqrt(K/k), so it is extremely strict early and close to 1.96 at the end. For three looks the values are roughly 2.289 (flat) versus 3.471, 2.454, 2.004.

Hint 3

For always-valid inference, find a quantity that is a nonnegative martingale with mean 1 under H0, then apply Ville's inequality: P(sup Lambda_n >= 1/alpha) <= alpha. Averaging or multiplying e-values stays valid, which is what you need for multiple metrics.

Hint 4

For multiple metrics, split or recycle the alpha budget (Bonferroni or graphical procedures), give each metric its own spending function or e-process, and use e-BH if you want FDR control under arbitrary dependence. Keep futility rules non-binding.