English

$\ell_p$ Testing and Learning of Discrete Distributions

Data Structures and Algorithms 2015-03-24 v4 Machine Learning Statistics Theory Statistics Theory

Abstract

The classic problems of testing uniformity of and learning a discrete distribution, given access to independent samples from it, are examined under general p\ell_p metrics. The intuitions and results often contrast with the classic 1\ell_1 case. For p>1p > 1, we can learn and test with a number of samples that is independent of the support size of the distribution: With an p\ell_p tolerance ϵ\epsilon, O(max{1/ϵq,1/ϵ2})O(\max\{ \sqrt{1/\epsilon^q}, 1/\epsilon^2 \}) samples suffice for testing uniformity and O(max{1/ϵq,1/ϵ2})O(\max\{ 1/\epsilon^q, 1/\epsilon^2\}) samples suffice for learning, where q=p/(p1)q=p/(p-1) is the conjugate of pp. As this parallels the intuition that O(n)O(\sqrt{n}) and O(n)O(n) samples suffice for the 1\ell_1 case, it seems that 1/ϵq1/\epsilon^q acts as an upper bound on the "apparent" support size. For some p\ell_p metrics, uniformity testing becomes easier over larger supports: a 6-sided die requires fewer trials to test for fairness than a 2-sided coin, and a card-shuffler requires fewer trials than the die. In fact, this inverse dependence on support size holds if and only if p>43p > \frac{4}{3}. The uniformity testing algorithm simply thresholds the number of "collisions" or "coincidences" and has an optimal sample complexity up to constant factors for all 1p21 \leq p \leq 2. Another algorithm gives order-optimal sample complexity for \ell_{\infty} uniformity testing. Meanwhile, the most natural learning algorithm is shown to have order-optimal sample complexity for all p\ell_p metrics. The author thanks Cl\'{e}ment Canonne for discussions and contributions to this work.

Keywords

Cite

@article{arxiv.1412.2314,
  title  = {$\ell_p$ Testing and Learning of Discrete Distributions},
  author = {Bo Waggoner},
  journal= {arXiv preprint arXiv:1412.2314},
  year   = {2015}
}

Comments

This is the full version of the paper appearing at ITCS 2015. Two columns. 24 pages, of which 14 appendix

R2 v1 2026-06-22T07:22:40.078Z