Peeking with PEAK: Sequential, Nonparametric Composite Hypothesis Tests for Means of Multiple Data Streams

Brian Cho, Kyra Gan, Nathan Kallus

Introduction

In modern data-driven environments like A/B testing, clinical trials, and recommendation engines, the ability to "peek" at data as it arrives is highly desirable. However, traditional statistical tests are not designed for this; repeated testing until a significant result is found—the "peeking" trap—leads to inflated type-I error rates. To address this, researchers from Cornell Tech presented PEAK (Peeking with Expectation-based Averaged Capital) at ICML 2024. PEAK is a novel sequential testing framework that enables "anytime-valid" inference for the means of multiple data streams without the need for parametric assumptions or wasteful union bounds.

Problem Statement

Traditional sequential analysis often requires knowing the exact data distribution (parametric assumptions) and is typically limited to simple point hypotheses. While modern "testing-by-betting" frameworks have addressed the parametric requirement by treating evidence as "capital" that grows when a null hypothesis is false, they struggle with multiple data streams. Standard approaches use union bounds—dividing the error budget across streams—which is overly conservative. Furthermore, testing composite hypotheses in high-dimensional spaces often involves computationally expensive grid searches, limiting real-time applicability.

Methodology: The PEAK Framework

PEAK introduces three primary innovations to overcome these hurdles:

  1. Strictly Convex Betting Scheme: The authors propose a betting function based on the distance between the running mean and the hypothesized mean. This choice ensures the resulting capital process is strictly convex, which is crucial for optimization.
  2. Evidence Averaging: Instead of the conservative union bound, PEAK averages capital across all data streams. The authors mathematically demonstrate that this pooling of evidence is more powerful, rejecting false hypotheses faster.
  3. Convex Optimization for Composite Tests: By ensuring convexity, testing whether a vector of means falls within a complex region becomes a standard convex optimization problem. This allows for the use of efficient off-the-shelf solvers, bypassing the need for slow grid searches.

Experimental Evaluation

The framework was evaluated using both synthetic simulations and real-world data:

  • Synthetic Distributions: Bernoulli (high variance) and Beta (low variance) distributions were used to test threshold and best-arm identification.
  • HeartSteps Dataset: A mobile health dataset with step-count data from 37 users was used to sequentially identify the impact of digital interventions on individual users.

Key Results

PEAK demonstrates significant improvements in both sample efficiency and computational performance.

Comparison of log volume of confidence sequences across different distributions.

As shown in Figure 3, PEAK (labeled as PEEK in the plot) consistently maintains a competitive or superior log volume of confidence sequences compared to other nonparametric methods like Sub-Bernoulli or Empirical Bernoulli across various variance and symmetry scenarios. This indicates that the confidence sequences generated by PEAK shrink faster, leading to earlier stopping.

Average stopping times for different stopping rules.

Quantitatively, PEAK provides up to an 85% reduction in the number of samples required before stopping compared to standard baseline rules. In the Bernoulli distribution tests (Figure 4), PEAK achieved a stopping time of 1678.08, significantly lower than the "Base" rule's 4795.51. Furthermore, PEAK's computational runtime remains stable even as precision requirements increase, unlike grid-search-dependent methods like "Hedged" betting. On the real-world HeartSteps dataset, PEAK was able to identify beneficial interventions for patients significantly earlier than other methods.

Conclusion

PEAK offers a robust, nonparametric solution for sequential testing across multiple data streams. By leveraging evidence averaging and convex optimization, it provides anytime-valid guarantees with superior sample efficiency and scalability. Future work includes extending the framework to unbounded data and optimizing solver dependencies for high-throughput systems.

Summary updated

BibTeX
@inproceedings{cho2024peeking,
  author = {Brian Cho and Kyra Gan and Nathan Kallus},
  title = {{Peeking with PEAK: Sequential, Nonparametric Composite Hypothesis Tests for Means of Multiple Data Streams}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=hcASxFvmZ5},
}
Figure