WorksMathematics
Let Them Peek: Group Sequential Designs for A/B Testing
Abstract
Randomized controlled trials, commonly known as A/B tests, are the standard mechanism for inferring causal effects of product innovations. Standard platforms evaluate these tests with fixed-horizon procedures that control the false positive rate at a predetermined time, forcing teams to wait until the end even when early data strongly indicates success or failure. Unfortunately, continuous monitoring ("peeking") invalidates these guarantees, while always-valid inference is overly conservative under a strict deadline, and group sequential designs (GSD) have received limited traction in large-scale experimentation due to operational barriers: terminal-rule preservation, autocorrelation, latent effect-size distributions, calendar-duration optimization. We fill in this gap by proposing a Predictive Probability of Success (PPoS) group sequential framework that is autocorrelation-aware and duration-optimal while preserving the platform's fixed-horizon terminal rule. Our key insight is that PPoS thresholds map to closed-form lift boundaries that converge to the standard test at the horizon by construction, admit an effective-sample-size correction estimated from historical A/A tests, and suffice to attain the likelihood-ratio efficiency floor. Experimentally on online A/A and A/B experiments, we show that the proposed policy reduces expected duration by 43.1% (7.97 days vs. 14-day baseline), increasing effective platform capacity by 76%, while retaining the guarantees on FPR and power.
Introduction
Inferring causal effects of treatments is a goal in the evaluation of product innovations, and randomized controlled trials, commonly known as A/B tests, are the standard mechanism for doing so [1]. Under the potential outcomes framework, the causal estimand is a comparison of the potential outcomes of the same units under different treatment conditions; on an experimentation platform it is summarized by a cumulative lift estimated from the accumulating data. Standard platforms evaluate these tests using fixed-horizon procedures: at a predetermined time , the experiment concludes, and a feature is launched if the estimated cumulative lift exceeds the threshold , where is the standard error of and is the -quantile of the standard normal distribution.
While this approach controls the false positive rate (FPR) at level and guarantees adequate power at the design effect, the fixed-horizon assumption becomes inefficient as organizations scale. Constrained testing resources force product teams to wait until even when early data strongly indicates an obvious success or failure [2]. Consequently, experimenters frequently monitor results continuously and stop tests early (“peeking”), a practice that inflates the false positive rate and invalidates traditional statistical guarantees [3].
Continuous monitoring is often formalized through always-valid inference (AVI) [4, 5], which bounds the error rate uniformly across an infinite time horizon. However, the open-ended nature of AVI conflicts with the practical requirements of product teams who rely on a definitive maximum horizon to force a launch decision. When a strict deadline is imposed on an AVI framework, the design becomes overly conservative, allocating error budget to infinite horizons that will never be realized [6]. Group Sequential Design (GSD) offers a more efficient alternative by calibrating decision boundaries across a finite set of interim looks [7, 8, 9].
Despite its theoretical advantages, GSD is rarely implemented in large-scale platform experimentation due to several interconnected operational barriers. First, practitioners are reluctant to adopt early stopping rules if doing so alters the terminal decision criteria established by the platform. Second, standard sequential boundaries assume independent increments, whereas platform metrics consistently exhibit strong daily autocorrelation. Third, the frequentist power of a sequential design cannot be directly verified on online A/B tests because the true effect size distribution is latent. Fourth, while traditional sequential methods optimize for sample size, platform engineering requires optimizing for expected calendar duration to maximize feature velocity. Lastly, the guarantees of a sequential design hold only if its recommendations are executed immediately, whereas in practice, experiment owners will often wait to assess guardrails before acting.
This paper develops a group sequential testing framework tailored to the operational realities of large-scale experimentation. Section 2 presents an end-to-end methodology for policy construction, detailing how we preserve the terminal decision rule, correct for longitudinal autocorrelation, estimate unobserved operating characteristics, and optimize for expected duration. Section 3 compares our proposed policy against well-known GSD baselines in both simulation and empirical applications. Section 4 discusses enforcing the stopping rule with autonomous agents and correcting the resulting selection bias. Section 5 outlines future directions for adaptive sampling.
Methodological Framework
Policy Formulation and Terminal Agreement. Let denote the estimated cumulative lift conditional on all observations up to day [10]. A group sequential policy evaluates at distinct intervals against a lower futility boundary and an upper efficacy boundary (Figure 1). The decision rule is defined as:

Figure 1. Decision boundaries under the fixed-horizon paradigm (left) and the proposed GSD policy (right). The sequential boundaries are constructed to converge at the fixed-horizon terminal threshold.
Our objective is to design a policy that minimizes the expected duration of experiments while adhering to a target FPR and Power. We require that the terminal rule of the sequential policy matches the platform’s established fixed-horizon rule. This yields the following constrained optimization problem:
where is the stopping time.
Standard group sequential designs (e.g., Pocock [7], O’Brien–Fleming [8]) do not satisfy the terminal agreement constraint, as they raise the terminal value to allocate error budget to earlier interim analyses. A design that leaves the terminal rule untouched is comparatively easy to adopt: if no boundary is crossed, the experiment runs to its horizon and is evaluated by the exact test the platform would have applied anyway, so there is no second framework to learn and no final verdict to re-justify. The one downside is the horizon itself, which we treat as a design variable; an experiment that never crosses a boundary may run somewhat longer than the platform’s default, and we quantify that trade-off in § 3.
To achieve this, we formulate the boundaries using the Predictive Probability of Success (PPoS) [10]—the Bayesian predictive probability, given the data observed through day , that the cumulative lift at horizon will exceed the terminal threshold:
The policy is parameterized by probability thresholds , such that the trial stops for efficacy if and for futility if . At terminal horizon , data is fully observed, and reduces to the indicator function . Consequently, this formulation guarantees that the terminal decision aligns with the standard level- test . This preserves the decision rule rather than each individual decision: experiments stopped early are decided by the interim boundaries, and the selected horizon may differ from the platform’s default.
Deriving Boundaries under Autocorrelation. Under the standard assumption of independent increments, let be the prior on the lift, the standard error after days (with the standard deviation of a daily lift increment), and the shrinkage factor of the predictive mean . The probability thresholds map to closed-form boundaries on the lift scale:
However, longitudinal panel data violates the independent-increments assumption. Because the same users contribute observations on consecutive days, each additional day reduces the standard error less than a day of fresh users would. Treating dependent increments as independent deflates the standard error, yielding permissive boundaries that inflate the FPR and overstate power. To correct this, we estimate the empirical correlation matrix of the daily increments from historical A/A tests, pooling non-overlapping windows of daily -scores across experiments and averaging correlations by lag, and replace the unadjusted time with an effective sample size formulation:
This reduces to under independence (), and satisfies whenever the average correlation among the first days is non-negative. Substituting into the boundary equations at every look, including the terminal in , in the square-root term, and in the threshold , yields the adjusted, autocorrelation-aware boundaries .
Evaluating Unobserved Operating Characteristics. Verifying the FPR and power of a sequential procedure on empirical data poses an estimation problem: the point-null FPR requires a strict null hypothesis, and power is a function of a latent distribution of true effect sizes. Following Zhou et al. [11], we estimate the average operating characteristics by integrating over the empirical distribution. Using a mixture of A/A tests (known nulls) and A/B tests, we define and . Let denote the launch rate of rule in set . We define the structural estimators:
Because empirical launch rates identify only the product —where and are the average power and FPR of the fixed-horizon test—we anchor at its nominal value (the nominal power at the minimum detectable effect). This anchor only sets the scale: mathematically, , where the ratio
requires no parametric assumptions. Consequently, verifying that amounts to verifying that the sequential design retains the power of the fixed-horizon test over the unobserved latent effect distribution (i.e., verifying when ).
Optimizing for Expected Duration. We solve the parameter space entirely via simulation. We simulate trajectories utilizing the empirical correlation matrix under both the null and a point alternative at the MDE. The design problem reduces to a grid search over the stopping boundaries, selecting the that minimizes the expected stopping day , subject to FPR and Power . Because , the terminal test maintains level for any selected horizon , so treating the horizon as a design variable does not compromise the terminal guarantee. These optimal parameters are then used in online experiments without further re-tuning.
Empirical Evaluation
We evaluate the proposed PPoS framework against a standard 14-day fixed-horizon design [12, 13, 14], alongside O’Brien–Fleming (OBF) [8] and Pocock [7] sequential boundaries, and a likelihood-ratio (LR) oracle bound [9]. A comparison against always-valid inference is deferred to an extended version of this work: calibrating an open-ended process to match a specific FPR at a fixed horizon involves design choices that materially affect the resulting conservatism. All sequential policies share the same design parameters: they are calibrated to an FPR and power at the MDE, perform interim analyses daily from day 5 onward, and select their horizon from the same candidate grid . Calibration uses simulated trajectories drawn under the empirical correlation matrix . For PPoS, we assign an uninformative prior , which yields and collapses the boundaries to a frequentist object while retaining the Bayesian infrastructure for future integration of historical priors. More generally, is the posterior expectation of the conditional power , averaged over the remaining posterior uncertainty in rather than evaluated at a single plug-in value.
Empirical validation is performed on approximately 2000 online A/A and A/B experiments tracking an internal supply metric. The A/A and A/B experiments are drawn from the same population and run under the same traffic allocation, duration, and logging configuration, differing only in whether a treatment is applied; the A/A tests are therefore a valid reference both for the point-null FPR and for the correlation matrix . Boundaries established in simulation are applied directly to the online experiments without re-tuning. Online 95% confidence intervals are percentile bootstrap intervals (1000 replicates) that resample A/A and A/B experiments separately and recompute all estimators, including . Calibration and validation share and , but the resulting leakage is limited: weights only the objective and not the error constraints, and uses no launch outcomes.
Simulation results (Figure 2, diamonds) indicate that the PPoS framework attains the efficiency floor defined by the LR oracle bound, achieving an expected duration of days, a 41.7% reduction relative to the 14-day baseline. This is expected rather than coincidental: at each look, is a monotone function of the likelihood ratio, so the policy lies within the class of threshold rules over which the LR floor is optimal, and its two thresholds suffice to attain it. The grid search selects an optimal horizon of ; under a constraint forcing , the efficiency improvements largely persist, yielding days (a 34.5% reduction). At its selected horizon, the framework outperforms both OBF ( days, ) and Pocock ( days, ); because OBF selects the same horizon, that comparison is horizon-matched and the remaining gap reflects boundary shape alone.

Figure 2. FPR, average power, and expected duration across evaluated designs. Simulated properties are denoted by diamonds; empirical properties evaluated on online experiments are denoted by dots with 95% confidence intervals. The online power of the fixed-horizon design is the anchor of the power estimator and is therefore not shown.
Applying the framework to empirical data confirms that the structural estimators remain calibrated (Figure 2, dots). For PPoS, OBF, and Pocock, the 95% bootstrap confidence intervals for both the empirical FPR and the average power contain their nominal targets. The online power of the LR floor, by contrast, falls below 0.80—an expected outcome, since that bound is optimal only for the simulated two-point model in which every true effect equals the MDE. In the empirical application, the PPoS policy yielded an expected duration of days [7.81, 8.15]. Operationally, this 43.1% reduction in average experiment runtime translates to a 76% increase in aggregate platform testing capacity, assuming constant experiment generation and a fixed pool of testing slots released when an experiment stops rather than held to its horizon.
GSD In Practice and Post-Selection Inference
The validity of the sequential estimators relies on the assumption that the trial terminates at the stopping time . In practice, an operational delay often occurs between a policy triggering and a human experimenter taking action. This hesitation is frequently driven by a desire to “further validate” an early outcome via additional data—a form of anti-peeking—or to wait for guardrail metrics to stabilize.
This behavioral delay confounds the design, and the two boundaries fail in different ways. Ignoring a futility crossing and continuing data collection grants the procedure subsequent, un-modeled opportunities to cross later, invalidating FPR control. Conversely, delaying a launch after an efficacy crossing is conservative for FPR, but it forfeits the calendar time the policy was explicitly optimized to save and leaves the realized stopping distribution different from the one against which the design was calibrated. To preserve the statistical properties, execution of the stopping rule should be enforced programmatically by an automated agent. Unlike traditional automation, agentic integrations can provide detailed, human-readable reasoning for the termination, fit into existing summarization workflows, and defer only when a pre-specified data-quality check fails—making the exception part of the calibrated policy rather than a discretionary override.
Furthermore, conditioning the analysis on the stopping time introduces selection bias into the point estimate, a phenomenon generally known as the winner’s curse [15, 16]. Because the PPoS framework solely defines the stopping rule, effect estimation requires secondary adjustment. To provide an unbiased post-selection estimate, the terminal values should be evaluated via a conditional estimator that explicitly accounts for the boundary-crossing distribution [17], or smoothed using Bayesian shrinkage under a conservative prior centered at zero [18, 11].
Conclusion
We propose a group sequential testing framework that addresses the operational constraints of online experimentation. By formulating boundaries via the Predictive Probability of Success and correcting for longitudinal autocorrelation via an effective sample size adjustment, the policy preserves the fixed-horizon terminal rule while controlling error rates. Evaluation on empirical distributions demonstrates that the framework reduces expected duration by 43.1%, increasing effective platform capacity by 76%, and matches the theoretical oracle bound in simulation. Delegating execution to an agent is what would keep these guarantees valid in practice, and we have sketched the design of such a mechanism. Future extensions of this framework will investigate integrating sequential boundaries with adaptive sampling mechanisms, such as interim sample size re-estimation [19] and dynamic allocation rules [20].
References
- [1]Ron Kohavi, Diane Tang, and Ya Xu. Trustworthy Online Controlled Experiments: A Practical Guide to A/B Testing. Cambridge University Press, 2020.
- [2]Somit Gupta, Ron Kohavi, Diane Tang, Ya Xu, Reid Andersen, Eytan Bakshy, Niall Cardin, Sumita Chandran, Nanyu Chen, Dominic Coey, et al. Top challenges from the first practical online controlled experiments summit. ACM SIGKDD Explorations Newsletter, 2019.DOI
- [3]Tanner Fiez, Houssam Nassif, Yu-Cheng Chen, Sergio Gamez, and Lalit Jain. Best of three worlds: Adaptive experimentation for digital marketing in practice. In The Web Conference (WWW), 2024.arxiv.org/abs/2402.10870
- [4]Ramesh Johari, Pete Kooman, Leonid Pekelis, and David Walsh. Always valid inference: Continuous monitoring of A/B tests. Operations Research, 2022.
- [5]Akash V. Maharaj, Ritwik Sinha, David Arbour, Ian Waudby-Smith, Simon Z. Liu, Moumita Sinha, Raghavendra Addanki, Aaditya Ramdas, Manas Garg, and Viswanathan Swaminathan. Anytime-valid confidence sequences in an enterprise A/B testing platform. In Companion Proceedings of the ACM Web Conference (WWW), 2023.DOI
- [6]Judith Ter Schure, Muriel Pérez, Alexander Ly, and Peter Grünwald. The anytime-valid logrank test: Error control under continuous monitoring with unlimited horizon. The New England Journal of Statistics in Data Science, 2024.
- [7]Stuart J. Pocock. Group sequential methods in the design and analysis of clinical trials. Biometrika, 1977.DOI
- [8]Peter C. O’Brien and Thomas R. Fleming. A multiple testing procedure for clinical trials. Biometrics, 1979.pubmed.ncbi.nlm.nih.gov/497341
- [9]Christopher Jennison and Bruce W. Turnbull. Group Sequential Methods with Applications to Clinical Trials. Chapman and Hall/CRC, 2000.DOI
- [10]Abbas Zaidi, Rina Friedberg, Samir Khan, Yao-Yang Leow, Maulik Soneji, Houssam Nassif, and Richard Mudd. Bayesian predictive probabilities for online experimentation. arXiv:2511.06320, 2025.arxiv.org/abs/2511.06320
- [11]Tianjian Zhou and Yuan Ji. On bayesian sequential clinical trial designs. arXiv:2112.09644, 2021.DOI
- [12]Mohamed A Radwan, Quinn Lanners, Jiasheng Zhang, Serkan Karakulak, Houssam Nassif, and Murat Ali Bayir. Counterfactual evaluation of ads ranking models through domain adaptation. In Workshops of Conference on Recommender Systems (RecSys), 2024.arxiv.org/abs/2409.19824
- [13]Mohsen Malmir, Houssam Nassif, Danish Nasir Shaikh, Taher Rahgooy, and Murat Ali Bayir. Impression share prediction: An offline evaluation task for ranking systems. In Conference on Recommender Systems (RecSys), 2026.DOI
- [14]Mohsen Malmir, Mohammed A Radwan, Houssam Nassif, and Murat Ali Bayir. Beyond IPS: Reliable counterfactual evaluation in multi-stage ad systems without logged propensities. In Conference on Neural Information Processing Systems (NeurIPS), 2026.arxiv.org/abs/2610.40112
- [15]Anastasios A Tsiatis, Gary L Rosner, and Cyrus R Mehta. Exact confidence intervals following a group sequential test. Biometrics, 1984.
- [16]Scott S Emerson and Thomas R Fleming. Parameter estimation following group sequential hypothesis testing. Biometrika, 1990.DOI
- [17]Isaiah Andrews, Toru Kitagawa, and Adam McCloskey. Inference on winners. The Quarterly Journal of Economics, 2024.
- [18]Richard Mudd, Abbas Zaidi, Rina Friedberg, Ilya Gorbachev, Anchal Choubey, and Houssam Nassif. Breaking the winner’s curse with bayesian hybrid shrinkage. arXiv:2603.12867, 2026.arxiv.org/abs/2603.12867
- [19]Thomas Gsponer, Florian Gerber, Björn Bornkamp, David Ohlssen, Marc Vandemeulebroecke, and Heinz Schmidli. A practical guide to bayesian group sequential designs. Pharmaceutical Statistics, 2014.
- [20]Kapilan Balagopalan, Yinan Li, Yao Zhao, Tuan Nguyen, Anton Daitche, Houssam Nassif, and Kwang-Sung Jun. Fixed budget is no harder than fixed confidence in best-arm identification up to logarithmic factors. In International Conference on Machine Learning (ICML), 2026.arxiv.org/abs/2602.03972