math.STFeb 19, 2026

Asymptotically Optimal Sequential Testing with Markovian Data

Authors: Alhad Sethi, Kavali Sofia Sagar, Shubhada Agrawal, Debabrota Basu, P. N. Karthik

Organizations: Indian Institute of Science, Bangalore · Indian Institute of Technology, Hyderabad · Univ. Lille, Inria, CNRS, Centrale Lille, UMR 9189 – CRIStAL

Abstract

We study one-sided and αα-correct sequential hypothesis testing for data generated by an ergodic, finite-state Markov chain. The null hypothesis is that the unknown transition matrix belongs to a prescribed set PP of stochastic matrices, and the alternative corresponds to a disjoint set QQ. We establish a non-asymptotic instance-dependent lower bound on the expected stopping time of any valid sequential test under the alternative, which is asymptotically tight. Our novel analysis improves the existing lower bounds, which are either asymptotic or provably sub-optimal in this setting. Our lower bound incorporates both the stationary distribution and the transition structure induced by the unknown Markov chain. We further propose an optimal test whose expected stopping time matches this lower bound asymptotically as α→0α\to 0. We illustrate the usefulness of our framework through applications to sequential detection of model misspecification in Markov Chain Monte Carlo and to testing structural properties, such as the linearity of transition dynamics, in Markov decision processes. Our findings yield a sharp and general characterization of optimal sequential testing procedures under Markovian dependence.

Figures & tables

Appendix figures & tables8 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

Mar 18, 2026

Multi-Armed Sequential Hypothesis Testing by Betting

We consider a variant of sequential testing by betting where, at each time step, the statistician is presented with multiple data sources (arms) and obtains data by choosing one of the arms. We consider the composite global null hypothesis P\mathscr{P} that all arms are null in a certain sense (e.g. all dosages of a treatment are ineffective) and we are interested in rejecting P\mathscr{P} in favor of a composite alternative Q\mathscr{Q} where at least one arm is non-null (e.g. there exists an effective treatment dosage). We posit an optimality desideratum that we describe informally as follows: even if several arms are non-null, we seek ee-processes and sequential tests whose performance are as strong as the ones that have oracle knowledge about which arm generates the most evidence against P\mathscr{P}. Formally, we generalize notions of log-optimality and expected rejection time optimality to more than one arm, obtaining matching lower and upper bounds for both. A key technical device in this optimality analysis is a modified upper-confidence-bound-like algorithm for unobservable but sufficiently "estimable" rewards. In the design of this algorithm, we derive nonasymptotic concentration inequalities for optimal wealth growth rates in the sense of Kelly [1956]. These may be of independent interest.
Oct 6, 2026

Anytime-valid simulation-based hypothesis testing

For a given data distribution (Xt)t∈N∼Q(X_t)_{t \in \mathbb{N}} \sim Q i.i.d., we investigate the hypothesis testing problem: H0:Q=P0H_0: Q = P_0 vs. H1:Q=P1H_1: Q = P_1, for two different model probability distributions P0P_0 and P1P_1. In contrast to the standard setting, where analytic densities p0p_0 and p1p_1 are given, here, we consider the density-free setting, where we only have access to i.i.d. simulations (Zt0)t∈N∼P0(Z^0_t)_{t \in \mathbb{N}} \sim P_0 and (Zt1)t∈N∼P1(Z^1_t)_{t \in \mathbb{N}} \sim P_1. For this simulation-based hypothesis testing setting, we construct an e-test martingale, resulting in a sequential test with anytime-valid type-I error guarantees, approximate growth optimality, geometrically decaying type-II error bounds, and asymptotic power one. Most ingredients used in our constructions are variants of well known concepts. The value of this paper lies in the compact presentation of an effective, anytime-valid solution for the density-free simulation-based sequential hypothesis testing case.
Feb 25, 2026

Global Sequential Testing for Multi-Stream Auditing

Across many risk-sensitive areas, it is critical to continuously audit machine learning systems as we receive more data to quickly determine if they are performing as designed. This auditing task can be modeled as a sequential hypothesis testing problem with kk data streams and a global null hypothesis that asserts the system operates as intended across all kk streams. Under the alternative, the standard global sequential test, which uses a Bonferroni correction, has an expected stopping time of O(ln⁡kα)O\left(\ln \frac{k}α\right) for large kk and significance level αα. In this work, we demonstrate that efficient sequential tests, relying on merging martingales via averaging and products rules, provide improved stopping times, and thus more powerful tests against the null. Using these results, we show that a balanced test can match the Bonferroni rate of O(ln⁡kα)O\left(\ln \frac{k}α\right) in the sparse regime (just a few non-null streams) while achieving O(1kln⁡1α)O\left(\frac{1}{k}\ln \frac{1}α\right) under dense alternatives (many non-null steams). We validate our theory through experiments on both synthetic and real-world data.