The Sample Complexity of Simple Binary Hypothesis Testing
Ankit Pensia, Varun Jog, Po-Ling Loh
TL;DR
This work provides tight, finite-sample characterizations of the sample complexity for simple binary hypothesis testing under both Bayesian and prior-free formulations, linking the necessary sample size to divergences from the Jensen–Shannon and Hellinger families. A central technical contribution is an $f$-divergence inequality bridging $ ext{JS}_{oldsymbol{ abla}}(p,q)$ and $ ext{H}_{ar ext{lambda}}(p,q)$, which yields constant-factor equivalence independent of $p$, $q$, and error parameters. The authors extend the core results to distributed, robust, sequential, and erasure settings, deriving both statistical and computational implications and showing how problems with information constraints or contamination can be solved efficiently by reducing to the main Bayes PF framework. Unexpected phenomena in the weak-detection regime are uncovered, including prior-dependent and nonuniform-prior behaviors that challenge conventional asymptotic intuition, with precise bounds that cover multiple regimes. Overall, the paper delivers a cohesive, operational framework that guides test selection and algorithm design across a spectrum of hypothesis-testing scenarios.
Abstract
The sample complexity of simple binary hypothesis testing is the smallest number of i.i.d.\ samples required to distinguish between two distributions $p$ and $q$ in either: (i) the prior-free setting, with type-I error at most $α$ and type-II error at most $β$; or (ii) the Bayesian setting, with Bayes error at most $δ$ and prior distribution $(π, 1-π)$. This problem has only been studied when $α= β$ (prior-free) or $π= 1/2$ (Bayesian), and the sample complexity is known to be characterized by the Hellinger divergence between $p$ and $q$, up to multiplicative constants. In this paper, we derive a formula that characterizes the sample complexity (up to multiplicative constants that are independent of $p$, $q$, and all error parameters) for: (i) all $0 \le α, β\le 1/8$ in the prior-free setting; and (ii) all $δ\le π/4$ in the Bayesian setting. In particular, the formula admits equivalent expressions in terms of certain divergences from the Jensen--Shannon and Hellinger families. The main technical result concerns an $f$-divergence inequality between members of the Jensen--Shannon and Hellinger families, which is proved by a combination of information-theoretic tools and case-by-case analyses. We explore applications of our results to (i) robust hypothesis testing, (ii) distributed (locally-private and communication-constrained) hypothesis testing, (iii) sequential hypothesis testing, and (iv) hypothesis testing with erasures.
