Skip to main content
QUICK REVIEW

[Paper Review] Always Valid Inference: Bringing Sequential Analysis to A/B Testing

Ramesh Johari, Leo Pekelis|arXiv (Cornell University)|Dec 15, 2015
Statistical Methods in Clinical TrialsMathematics37 references50 citations
TL;DR

This paper introduces always valid p-values and confidence intervals for A/B testing that maintain Type I error control under any data-dependent stopping rule, enabling continuous monitoring without inflating false positives. The method uses a sequential probability ratio test (mSPRT) framework to provide valid inference at any point during an experiment, efficiently balancing power and sample size even with unknown user preferences for speed versus sensitivity.

ABSTRACT

A/B tests are typically analyzed via frequentist p-values and confidence intervals; but these inferences are wholly unreliable if users endogenously choose samples sizes by *continuously monitoring* their tests. We define *always valid* p-values and confidence intervals that let users try to take advantage of data as fast as it becomes available, providing valid statistical inference whenever they make their decision. Always valid inference can be interpreted as a natural interface for a sequential hypothesis test, which empowers users to implement a modified test tailored to them. In particular, we show in an appropriate sense that the measures we develop tradeoff sample size and power efficiently, despite a lack of prior knowledge of the user's relative preference between these two goals. We also use always valid p-values to obtain multiple hypothesis testing control in the sequential context. Our methodology has been implemented in a large scale commercial A/B testing platform to analyze hundreds of thousands of experiments to date.

Motivation & Objective

  • To address the critical flaw in standard A/B testing where continuous monitoring inflates Type I error due to data-dependent stopping times.
  • To develop a statistical framework that provides valid inference regardless of when a user decides to stop monitoring, without requiring prior knowledge of their preference for speed or power.
  • To enable a simple, intuitive interface—p-values and confidence intervals—that remains statistically valid under sequential analysis.
  • To extend the framework to control familywise error rate (FWER) and false discovery rate (FDR) in multiple hypothesis testing under sequential monitoring.
  • To implement and validate the method in a large-scale commercial A/B testing platform, demonstrating robustness and practical utility.

Proposed method

  • Uses a modified sequential probability ratio test (mSPRT) to construct always valid p-values and confidence intervals that remain valid at any stopping time.
  • Employs a likelihood ratio-based approach to define p-values that are uniformly distributed under the null hypothesis at any stopping time.
  • Derives confidence intervals that maintain coverage probability at any data-dependent stopping time by adjusting for sequential testing.
  • Applies the Benjamini-Hochberg (BH) procedure in a sequential setting, defining stopping times based on ordered p-values to control FDR.
  • Introduces corrected confidence intervals that adjust for multiple testing in sequential settings, ensuring FCR (false coverage rate) control.
  • Implements a 'reset policy' heuristic in practice to detect and correct for seasonal or time-dependent correlations in data.

Experimental results

Research questions

  • RQ1Can p-values and confidence intervals remain valid for inference when users continuously monitor and stop experiments based on observed data?
  • RQ2How can Type I error be controlled under arbitrary stopping rules in sequential A/B testing?
  • RQ3Can the method efficiently balance sample size and statistical power without prior knowledge of user preferences?
  • RQ4How can multiple hypothesis testing error rates (FWER and FDR) be controlled in a sequential A/B testing context?
  • RQ5What practical mechanisms can detect and correct for time-dependent data correlations in real-world A/B testing environments?

Key findings

  • The proposed always valid p-values maintain Type I error control under any data-dependent stopping rule, even when users monitor continuously.
  • The method enables efficient trade-offs between sample size and power, achieving near-optimal performance across diverse user preferences without prior knowledge.
  • Simulations show that standard p-values can inflate Type I error by up to fivefold under continuous monitoring, while the proposed method avoids this issue.
  • The framework successfully controls FDR in sequential multiple testing by combining mSPRT-based p-values with a modified Benjamini-Hochberg procedure.
  • Corrected confidence intervals ensure FCR control at level α(1 + j/m), providing valid coverage under sequential selection rules.
  • The methodology has been deployed at scale in a commercial A/B testing platform, analyzing hundreds of thousands of experiments with consistent reliability.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.