Optimal Closeness Testing of Discrete Distributions Made (Complex) Simple

Clément L. Canonne, Yucheng SunarXiv 2022

Abstract

In this note, we revisit the recent work of Diakonikolas, Gouleakis, Kane, Peebles, and Price (2021), and provide an alternative proof of their main result. Our argument does not rely on any specific property of Poisson random variables (such as stability and divisibility) nor on any "clever trick," but instead on an identity relating the expectation of the absolute value of any random variable to the integral of its characteristic function:

$$\mathbb{E}[|X|] = \frac{2}{\pi}\int_0^\infty \frac{1-\Re(\mathbb{E}[e^{i tX}])}{t^2}\, dt$$

Our argument, while not devoid of technical aspects, is arguably conceptually simpler and more general; and we hope this technique can find additional applications in distribution testing.

Introduction

Closeness testing is a cornerstone of distribution testing. The problem asks: given independent samples from two unknown probability distributions, $p$ and $q$, over a domain of size $k$, how many samples are required to determine whether $p = q$ or if they are far apart (specifically, if their Total Variation distance is greater than $\epsilon$)?

While the optimal sample complexity for this task was recently established by Diakonikolas et al. [DGKPP21], the proof was notoriously difficult. It relied heavily on "Poissonization"—a technique where the number of samples is treated as a Poisson random variable to simplify dependencies. However, in this context, Poissonization introduced significant complexity, requiring intricate arguments regarding the stability and divisibility of Poisson variables that did not easily generalize. This paper provides a more direct, conceptually cleaner proof that works within the standard multinomial sampling model.

The Problem with Poissonization

In traditional distribution testing proofs, researchers often use Poissonization to make the counts of different elements in the domain independent. While this often simplifies the math, for closeness testing, it led to an "unwieldy" proof structure. The previous optimal bound required navigating the specific behaviors of Poisson variables in ways that felt like "clever tricks" rather than a generalizable framework.

This work seeks to bypass those hurdles by moving the problem into the complex plane, leveraging the power of characteristic functions to handle the absolute values that naturally arise in distance metrics.

Methods: The Zolotarev Identity

The authors focus on a test statistic, $Z$, designed to measure the differences between the counts of elements observed from both distributions. The primary challenge in proving sample complexity is establishing an "expectation gap": showing that the average value of $Z$ is significantly larger when $p \neq q$ than when $p = q$.

To achieve this without the traditional Poissonization tricks, the authors employ Zolotarev’s identity. This identity relates the expectation of the absolute value of a random variable to an integral of its characteristic function:

$$\mathbb{E}[|X|] = \frac{2}{\pi}\int_0^\infty \frac{1-\Re(\mathbb{E}[e^{i tX}])}{t^2}\, dt$$

By applying this identity, the authors transform the analysis of absolute values of Binomial random variables into a calculus problem. The resulting integral is analyzed by splitting it into three distinct cases based on the relationship between the means of the distributions. This allows for a local analysis of the distributions' behavior near zero, effectively lower-bounding the expectation gap by truncating the integral at a strategic point $\tau$.

Key Insights

  • "Complex" Simplicity: The paper demonstrates that using more advanced mathematical tools—specifically characteristic functions in the complex plane—can actually simplify the logic of a proof by removing the need for elementary but convoluted combinatorial tricks.
  • Direct Multinomial Analysis: Unlike previous approaches that required translating results from a Poisson model back to a Binomial model, this proof operates directly on the multinomial setting.
  • Methodological Versatility: To demonstrate the robustness of the Zolotarev approach, the authors also use it to re-derive results for the Poissonized setting, suggesting that this technique could serve as a "universal hammer" for various distribution testing problems involving absolute expectations.

Results

The paper successfully re-establishes the optimal sample complexity for closeness testing, $n(k, \epsilon, \delta)$, confirming the bound:

$$ \Theta\left( \max \left( \frac{\log(1/\delta)}{\epsilon^2}, \frac{k^{2/3}\log^{1/3}(1/\delta)}{\epsilon^{4/3}}, \frac{k^{1/2}\log^{1/2}(1/\delta)}{\epsilon^2} \right) \right) $$

where $k$ is the domain size, $\epsilon$ is the distance parameter, and $\delta$ is the error probability. Furthermore, the authors provide explicit constants for these bounds, moving the theoretical result closer to practical applicability.

Conclusion and Future Work

While the proof still contains technical challenges—notably in the detailed analysis of specific lemmas—it offers a significant conceptual improvement over previous methods. The shift from Poisson-specific properties to a general identity involving characteristic functions provides a clearer path for future research. The authors anticipate that this Zolotarev-based technique will be applicable to other distribution testing problems where absolute values and expectations currently present mathematical obstacles.

Summary updated

BibTeX
@misc{canonne2022optimal,
  author = {Clément L. Canonne and Yucheng Sun},
  title = {{Optimal Closeness Testing of Discrete Distributions Made (Complex) Simple}},
  year = {2022},
  eprint = {2204.12640},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2204.12640},
}
Figure