NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Testing Probability Distributions Underlying Aggregated Data

Clément L. Canonne, Ronitt Rubinfeld

Abstract

Distribution testing is a fundamental task in statistics and computer science, yet traditional sample-based methods often face prohibitive costs when dealing with large domain sizes $n$. This paper investigates two novel access models—the dual and cumulative dual models—which augment standard sampling with direct query access to probability mass functions. We demonstrate that these models enable exponential speedups, reducing the complexity of many core testing problems from $\text{poly}(n)$ to constant or logarithmic terms, effectively bypassing long-standing lower bounds in the standard sampling model.

Introduction

In the era of massive datasets, understanding the properties of a probability distribution $D$ over a large domain (e.g., the set of all possible $k$-grams in a language) is a recurring challenge. Standard statistical approaches rely on independent samples, but for many properties like uniformity or entropy, the required number of samples scales with the domain size $n$. When $n$ reaches millions or billions, these methods become computationally infeasible.

This research addresses a critical question: Can we do better if we have more than just raw samples? In many practical contexts, such as indexed databases or sanitized data releases, we have access to aggregated information. By formalizing this as the "dual access" model, we show that querying the probability mass of specific elements allows for significantly more efficient testing.

Access Models and Methodology

The authors propose and analyze two hybrid models that bridge the gap between pure sampling and full distribution knowledge:

  1. Dual Access Model: The algorithm can draw independent samples from $D$ and query an "evaluation oracle" for the exact probability mass $D(i)$ of any element $i \in [n]$.
  2. Cumulative Dual Access Model: A more powerful extension where the algorithm can also query the Cumulative Distribution Function (CDF), obtaining the total mass $\sum_{j=1}^i D(j)$ for any $i$.

The primary algorithmic strategy involves estimating expectations of the form $\mathbb{E}_{i \sim D}[\Phi(i, D(i))]$. By using samples to identify high-probability regions and the evaluation oracle to precisely measure them, the authors develop estimators that are both efficient and robust to multiplicative noise in the oracle's responses.

Key Insights

  • Breaking the Domain Size Barrier: The most impactful finding is that query access can make testing complexity independent of $n$. For instance, testing if two distributions are identical—a task requiring $O(n^{2/3})$ samples—can be performed with $O(1/\epsilon)$ queries in the dual model.
  • Practical Tolerant Testing: "Tolerant" testing (distinguishing between a distribution being close to a property versus far from it) is notoriously difficult in the sampling model, often requiring nearly $n$ samples. The dual model collapses this gap, making tolerant testing nearly as efficient as standard testing.
  • The Advantage of Cumulative Queries: While the dual model is powerful, the cumulative model provides further gains for "order-dependent" properties. For example, estimating the entropy of monotone distributions sees an exponential speedup when CDF queries are available.

Results Summary

The following table summarizes the performance of the dual models compared to traditional sampling (SAMP) and other conditional models (COND, EVAL).

Summary of query complexities for various distribution testing problems across different access models.

The results indicate that for fundamental tasks like uniformity testing, identity testing, and support size estimation, the dual models achieve optimal or near-optimal complexity, often reaching the $\Theta(1/\epsilon)$ or $\Theta(1/\epsilon^2)$ regime.

Discussion and Future Directions

While the dual models offer dramatic theoretical improvements, their applicability depends on the availability of the required oracles. These oracles are naturally present in many aggregated data scenarios, such as Google N-gram datasets or differentially private databases.

Future work may explore the full characterization of properties that benefit from the cumulative model, particularly those sensitive to the domain's total order. Additionally, while the current algorithms are robust to noise, further research into even more restricted or noisy oracle models could broaden the practical impact of these techniques.

Summary updated

BibTeX
@inproceedings{canonne2014testing,
  author = {Clément L. Canonne and Ronitt Rubinfeld},
  title = {{Testing Probability Distributions Underlying Aggregated Data}},
  booktitle = {ICALP},
  year = {2014},
  doi = {10.1007/978-3-662-43948-7\_24},
}
Figure