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

Brian M Cho, Kyra Gan, Nathan Kallus

TL;DR

In sequential experiments, continuously monitoring data to stop early often leads to false positives. The authors introduce PEAK (Peeking with Expectation-based Averaged Kapital), a novel nonparametric sequential testing method for multi-armed bandits and multiple data streams. By averaging "evidence" across streams and utilizing a mathematically convex betting scheme, PEAK avoids the computational nightmare of grid searches and the statistical waste of union bounds. It allows experimenters to continuously monitor data and stop early, saving up to 85% of samples compared to traditional stopping rules while running significantly faster than existing state-of-the-art methods.

The Problem: The Danger of "Peeking"

In sequential experiments—such as A/B testing, personalized learning, or clinical trials—data is collected over time. Experimenters naturally want to "peek" at the results to stop early if a clear winner emerges, saving time and resources. However, continuously checking standard $p$-values inflates the false positive rate, a phenomenon often called $p$-hacking.

Modern statistics addresses this using e-processes and the testing-by-betting framework, which provide "anytime-valid" inference, allowing researchers to peek safely. However, existing testing-by-betting methods struggle when applied to multiple data streams, such as in multi-armed bandit problems. To test a composite hypothesis (e.g., "Is Arm A better than Arms B, C, and D?"), current methods require a grid search over the entire hypothesis space. This grid grows exponentially with the number of arms, making it computationally intractable. Furthermore, naive attempts to combine tests across arms rely on "union bounds," which are overly conservative and waste valuable data.

The PEAK Method

The paper builds on the testing-by-betting framework. Conceptually, an experimenter starts with $1 of "capital" and places bets on incoming data against a null hypothesis. If the null is wrong, the capital grows; if it crosses a predefined threshold (like $1/\alpha$), the null is rejected.

The authors introduce two major innovations to make this work efficiently for multiple streams:

  1. A Convex Betting Scheme (Single Stream): They design a specific betting strategy where the bet size is proportional to the distance between the running mean and the hypothesized mean. Crucially, they prove this specific formulation makes the resulting capital process strictly convex.
  2. PEAK (Multi-Stream): Instead of multiplying evidence or using union bounds across multiple arms, PEAK averages the capital across all streams.

Because the average of convex functions is also convex, testing a complex multi-arm hypothesis transforms into a standard convex optimization problem. Instead of an exponential grid search, researchers can use off-the-shelf optimization solvers to instantly find the minimum value in a hypothesis region, completely eliminating the curse of dimensionality.

Key Insights and Ideas

  • Averaging > Union Bounding: The authors mathematically prove that averaging evidence (capital) across streams strictly dominates the traditional union-bound approach. If a union bound can reject a hypothesis, PEAK is guaranteed to reject it too—but PEAK can also reject hypotheses that the union bound misses.
  • Convexity is King: By carefully designing the betting function to guarantee a convex confidence sequence, the authors bridge the gap between advanced martingale statistics and standard convex optimization.
  • Near-Optimal Nonparametric Power: Even though PEAK makes zero assumptions about the underlying data distribution (other than it being bounded between 0 and 1), its asymptotic growth rate (how fast it gathers evidence) is near-optimal. It performs competitively even against parametric tests that "know" the exact distribution type.

Experimental Results

The researchers evaluated PEAK on both synthetic multi-armed bandit environments (using Bernoulli, Beta, and mixture distributions) and real-world data from the HeartSteps mHealth dataset.

Log volume of confidence sequences for various methods across different variance settings.

As shown above, PEAK (denoted as PEEK in the visualizations) consistently maintains tight confidence sequences (lower log volume) across both high and low variance settings, demonstrating its robust statistical power.

Sample Efficiency and Speed

In pure-exploration bandit problems, PEAK drastically reduced the number of samples needed to stop compared to baseline stopping rules.

Stopping times for different rules under Beta and Bernoulli distributions.
  • Sample Efficiency: PEAK achieved up to an 85% reduction in required samples compared to baseline stopping rules. For instance, in high-variance Bernoulli settings, PEAK stopped significantly earlier than competing methods.
  • Computational Speedup: In a fixed-horizon test, PEAK ran in ~5 seconds. The state-of-the-art "Hedged" method took ~14.5 seconds even on a very coarse grid, and its runtime scales exponentially if higher fidelity is needed. PEAK's runtime remains low regardless of fidelity.
  • Real-World Impact: On the HeartSteps dataset, PEAK successfully identified 8 patients who definitively benefited from the physical activity intervention before the trial ended. By stopping early for these users, an experimenter would have saved 18,563 samples (~10% of the total trial data). Competing methods identified only 1 or 0 patients early.

Limitations and Future Work

While PEAK is vastly faster than grid-search-based nonparametric methods, it still requires running convex optimization solvers. Simple, closed-form parametric tests (like standard $t$-tests or parametric $e$-processes) will still have lower computational overhead if you are absolutely certain your data fits a specific distribution.

Ultimately, PEAK is most appropriate for environments where strong parametric assumptions are unrealistic, and the experimenter needs robust statistical power against both high-variance and low-variance data streams simultaneously.

Summary updated

BibTeX
@inproceedings{cho2024peeking,
  author = {Brian M 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