Abstract
Motivated by monitoring the arrival of incoming adverse events such as customer support calls or crash reports from users exposed to an experimental product change, we consider sequential hypothesis testing of continuous-time inhomogeneous Poisson point processes. Specifically, we provide an interval-valued confidence process $C^\alpha(t)$ over continuous time $t$ for the cumulative arrival rate $\Lambda(t) = \int_0^t \lambda(s) \mathrm{d}s$ with a continuous-time anytime-valid coverage guarantee $\mathbb{P}[\Lambda(t) \in C^\alpha(t) \, \forall t >0] \geq 1-\alpha$. We extend our results to compare two independent arrival processes by constructing multivariate confidence processes and a closed-form $e$-process for testing the equality of rates with a time-uniform Type-I error guarantee at a nominal $\alpha$. We characterize the asymptotic growth rate of the proposed $e$-process under the alternative and show that it has power 1 when the average rates of the two Poisson process differ in the limit. We also observe a complementary relationship between our multivariate confidence process and the universal inference $e$-process for testing composite null hypotheses.
Introduction
In modern A/B testing and system monitoring, "peeking"—the practice of repeatedly checking experimental results as data accumulates—is a well-known statistical hazard. If a researcher stops an experiment the moment a p-value dips below a threshold, they significantly inflate the Type-I error rate. However, in industrial contexts where monitoring adverse events like app crashes or customer support surges is critical, waiting for a fixed-horizon window to close is often impractical and potentially damaging to the user experience.
This paper introduces a framework for Anytime-Valid Continuous-Time Confidence Processes. Developed by Michael Lindon and Nathan Kallus, this work allows for the real-time monitoring of event streams with rigorous statistical guarantees. By providing closed-form expressions for confidence intervals and $e$-processes, the framework enables practitioners to perform "optional stopping" while maintaining a strict limit on false positives.
The Challenge of Inhomogeneous Streams
Most classical sequential tests assume fixed sample sizes or discrete-time steps. When modeling event arrivals, such as software failures, researchers typically use Poisson Point Processes. However, real-world arrival rates are rarely constant; they fluctuate based on time of day, external factors, or the onset of a service outage, making them "inhomogeneous."
Existing methods face two primary hurdles:
- The Peeking Problem: Repeated testing without adjustment leads to a 100% probability of eventually observing a "significant" result by chance.
- The Inhomogeneity Problem: Many sequential tests assume a constant rate or rely on discrete-time approximations (like the Central Limit Theorem), which can be slow to detect changes or mathematically intractable when the underlying rate varies over time.
Methodology
Anytime-Valid Confidence Processes
The authors leverage the theory of martingales and Ville’s inequality to construct confidence processes. Unlike a standard confidence interval that is valid only at a single pre-specified time, a confidence process $C^\alpha(t)$ is a sequence of intervals guaranteed to contain the true cumulative arrival rate $\Lambda(t)$ at all times $t > 0$ with probability at least $1-\alpha$.
Proportional Hazards and e-Processes
To ensure mathematical tractability and interpretability, the authors focus on alternatives where the arrival rate is scaled by a constant factor (proportional hazards). By "mixing" over these alternatives using a logGamma distribution, they derive a closed-form expression for the likelihood ratio. This leads to the introduction of an $e$-process $E(t)$ for testing the equality of two different streams (e.g., Control vs. Treatment). If $E(t)$ crosses the threshold $1/\alpha$, the null hypothesis is rejected immediately.
Universal Inference
The paper demonstrates a bridge between point process theory and general sequential testing by showing that their specific construction coincides with the "universal inference" framework. This provides a robust theoretical foundation for testing composite null hypotheses in continuous time.
Empirical Validation
Simulation and Real-World Application
The methodology was validated using both synthetic and real-world data:
- Simulated Data: Synthetic inhomogeneous Poisson processes with sinusoidal intensity functions demonstrated how the confidence bands narrow and accurately track the true rate over time.
- Netflix Case Study: The framework was applied to a dataset involving an Android code rewrite at Netflix. The experiment, intended to improve playback, accidentally introduced a bug. The data consisted of timestamps for customer support calls related to streaming problems.
Key Results
- Rapid Detection: In the Netflix case study, the framework detected the surge in customer support calls almost immediately after the buggy code was deployed, enabling a swift rollback.
- Power 1: The proposed test is guaranteed to eventually reject the null hypothesis with probability one if a true difference in average arrival rates exists.
- Superiority over Asymptotics: Compared to standard asymptotic approaches that approximate differences in counts as Brownian motion, this non-asymptotic $e$-process grows faster, leading to earlier detection of experimental effects.
- Exact Validity: The method is exactly valid for all $t > 0$, making it safer for early-stage monitoring than methods that rely on large-sample approximations.
Discussion and Limitations
While the framework is powerful, it relies on the proportional hazards assumption. If the difference between groups is highly non-proportional (e.g., a rate that is lower initially but surges much later), the test may lose efficiency. Additionally, the current model assumes the two arrival processes are independent, which may not hold in certain experimental designs like switchback tests. Future research may extend these anytime-valid principles to more complex processes, such as self-exciting Hawkes processes.
In conclusion, this work provides a mathematically rigorous yet computationally simple tool for real-time monitoring, offering a significant advancement for safety-critical A/B testing and system health tracking.
Summary updated