Sequential Algorithms for Testing Closeness of Distributions
Abstract
What advantage do sequential procedures provide over batch algorithms for testing properties of unknown distributions? Focusing on the problem of testing whether two distributions $\mathcal{D}_1$ and $\mathcal{D}_2$ on $\{1,\dots, n\}$ are equal or $\epsilon$-far, we give several answers to this question. We show that for a small alphabet size $n$, there is a sequential algorithm that outperforms any batch algorithm by a factor of at least $4$ in terms sample complexity. For a general alphabet size $n$, we give a sequential algorithm that uses no more samples than its batch counterpart, and possibly fewer if the actual distance between $\mathcal{D}_1$ and $\mathcal{D}_2$ is larger than $\epsilon$. As a corollary, letting $\epsilon$ go to $0$, we obtain a sequential algorithm for testing closeness (with no a priori bound on the distance between $\mathcal{D}_1$ and $\mathcal{D}_2$) with a sample complexity $\tilde{\mathcal{O}}(\frac{n^{2/3}}{TV(\mathcal{D}_1, \mathcal{D}_2)^{4/3}})$: this improves over the $\tilde{\mathcal{O}}(\frac{n/\log n}{TV(\mathcal{D}_1, \mathcal{D}_2)^{2} })$ tester of [Daskalakis and Kawase 2017] and is optimal up to multiplicative constants. We also establish limitations of sequential algorithms for the problem of testing closeness: they can improve the worst case number of samples by at most a constant factor.
Cite
Text
Oufkir et al. "Sequential Algorithms for Testing Closeness of Distributions." Neural Information Processing Systems, 2021.Markdown
[Oufkir et al. "Sequential Algorithms for Testing Closeness of Distributions." Neural Information Processing Systems, 2021.](https://mlanthology.org/neurips/2021/oufkir2021neurips-sequential/)BibTeX
@inproceedings{oufkir2021neurips-sequential,
title = {{Sequential Algorithms for Testing Closeness of Distributions}},
author = {Oufkir, Aadil and Fawzi, Omar and Flammarion, Nicolas and Garivier, Aurélien},
booktitle = {Neural Information Processing Systems},
year = {2021},
url = {https://mlanthology.org/neurips/2021/oufkir2021neurips-sequential/}
}