English

Optimal Identity Testing with High Probability

Data Structures and Algorithms 2019-01-17 v2 Information Theory Machine Learning math.IT Statistics Theory Statistics Theory

Abstract

We study the problem of testing identity against a given distribution with a focus on the high confidence regime. More precisely, given samples from an unknown distribution pp over nn elements, an explicitly given distribution qq, and parameters 0<ϵ,δ<10< \epsilon, \delta < 1, we wish to distinguish, {\em with probability at least 1δ1-\delta}, whether the distributions are identical versus ε\varepsilon-far in total variation distance. Most prior work focused on the case that δ=Ω(1)\delta = \Omega(1), for which the sample complexity of identity testing is known to be Θ(n/ϵ2)\Theta(\sqrt{n}/\epsilon^2). Given such an algorithm, one can achieve arbitrarily small values of δ\delta via black-box amplification, which multiplies the required number of samples by Θ(log(1/δ))\Theta(\log(1/\delta)). We show that black-box amplification is suboptimal for any δ=o(1)\delta = o(1), and give a new identity tester that achieves the optimal sample complexity. Our new upper and lower bounds show that the optimal sample complexity of identity testing is Θ(1ϵ2(nlog(1/δ)+log(1/δ))) \Theta\left( \frac{1}{\epsilon^2}\left(\sqrt{n \log(1/\delta)} + \log(1/\delta) \right)\right) for any n,εn, \varepsilon, and δ\delta. For the special case of uniformity testing, where the given distribution is the uniform distribution UnU_n over the domain, our new tester is surprisingly simple: to test whether p=Unp = U_n versus dTV(p,Un)εd_{\mathrm TV}(p, U_n) \geq \varepsilon, we simply threshold dTV(p^,Un)d_{\mathrm TV}(\widehat{p}, U_n), where p^\widehat{p} is the empirical probability distribution. The fact that this simple "plug-in" estimator is sample-optimal is surprising, even in the constant δ\delta case. Indeed, it was believed that such a tester would not attain sublinear sample complexity even for constant values of ε\varepsilon and δ\delta.

Keywords

Cite

@article{arxiv.1708.02728,
  title  = {Optimal Identity Testing with High Probability},
  author = {Ilias Diakonikolas and Themis Gouleakis and John Peebles and Eric Price},
  journal= {arXiv preprint arXiv:1708.02728},
  year   = {2019}
}
R2 v1 2026-06-22T21:10:10.806Z