Skip to main content
QUICK REVIEW

[Paper Review] Optimal Testing for Properties of Distributions

Jayadev Acharya, Constantinos Daskalakis|arXiv (Cornell University)|Jul 21, 2015
Machine Learning and AlgorithmsComputer Science21 references44 citations
TL;DR

This paper presents a general, sample-optimal, and computationally efficient testing framework for fundamental properties of discrete probability distributions—such as monotonicity, log-concavity, unimodality, independence, and monotone hazard rate—by reducing the problem to distinguishing between a distribution and a known reference via chi-squared and total variation distances. The key contribution is establishing tight sample complexity bounds of $\Theta(\sqrt{n}/\varepsilon^2)$ for univariate properties and $\Theta(n^{d/2}/\varepsilon^2)$ for monotonicity in $d$ dimensions, with matching lower bounds.

ABSTRACT

Given samples from an unknown distribution $p$, is it possible to distinguish whether $p$ belongs to some class of distributions $\mathcal{C}$ versus $p$ being far from every distribution in $\mathcal{C}$? This fundamental question has received tremendous attention in statistics, focusing primarily on asymptotic analysis, and more recently in information theory and theoretical computer science, where the emphasis has been on small sample size and computational complexity. Nevertheless, even for basic properties of distributions such as monotonicity, log-concavity, unimodality, independence, and monotone-hazard rate, the optimal sample complexity is unknown. We provide a general approach via which we obtain sample-optimal and computationally efficient testers for all these distribution families. At the core of our approach is an algorithm which solves the following problem: Given samples from an unknown distribution $p$, and a known distribution $q$, are $p$ and $q$ close in $χ^2$-distance, or far in total variation distance? The optimality of our testers is established by providing matching lower bounds with respect to both $n$ and $\varepsilon$. Finally, a necessary building block for our testers and an important byproduct of our work are the first known computationally efficient proper learners for discrete log-concave and monotone hazard rate distributions.

Motivation & Objective

  • To close the gap in sample complexity for testing fundamental shape properties of discrete distributions, such as monotonicity, log-concavity, unimodality, independence, and monotone hazard rate.
  • To develop a unified testing framework that achieves optimal sample complexity and computational efficiency for all these distribution families.
  • To establish tight lower bounds matching the upper bounds, proving optimality of the proposed testers with respect to both $n$ and $\varepsilon$.
  • To provide the first known computationally efficient proper learners for discrete log-concave and monotone hazard rate distributions as a byproduct.

Proposed method

  • The core method is an algorithm that distinguishes whether an unknown distribution $p$ is close to a known distribution $q$ in $\chi^2$-distance or far in total variation distance, using $\Theta(\sqrt{n}/\varepsilon^2)$ samples.
  • The framework reduces property testing to this $\chi^2$-vs-TV distance distinguishing problem, enabling sample-optimal testers for various distribution classes.
  • For monotonicity testing over $[n]^d$, the method constructs a class of distributions with $2^{n^{d/2}/2}$ elements, each differing in a structured way from the uniform distribution, and applies Paninski’s method to derive the lower bound.
  • For independence testing, the method constructs a large class of distributions over the hypergrid $[n_1] \times \cdots \times [n_d]$ that are far from product distributions, leveraging degrees of freedom arguments and Paninski’s technique.
  • For log-concave and unimodal distributions, the method shows that any such distribution is $\varepsilon$-far from a constructed class of distributions by analyzing raise points and applying triangle inequality over intervals.
  • For monotone hazard rate (MHR) distributions, the method identifies a set of at least $n/8$ raise points within the central interval $[n/4, 3n/4]$, and uses bounds on $p_i$ and $p_{i+1}$ to derive a total variation lower bound of $\Omega(\varepsilon)$.

Experimental results

Research questions

  • RQ1What is the optimal sample complexity for testing whether a distribution over $[n]$ is monotone, given $\varepsilon$-distance to monotonicity?
  • RQ2How does the sample complexity scale for testing independence in $d$-dimensional distributions over a hypergrid?
  • RQ3Can a unified framework be designed to achieve sample-optimal and computationally efficient testing for multiple distribution properties?
  • RQ4What is the tightest possible lower bound on sample complexity for testing log-concavity, unimodality, and monotone hazard rate in the small-sample regime?
  • RQ5Can proper learning algorithms be constructed efficiently for log-concave and monotone hazard rate distributions as a byproduct of the testing framework?

Key findings

  • Testing identity to any distribution over $[n]$ requires $\Theta(\sqrt{n}/\varepsilon^2)$ samples, which is optimal for the uniform distribution and matches the minimax sample complexity.
  • Testing monotonicity over $[n]^d$ requires $\Theta(n^{d/2}/\varepsilon^2)$ samples, improving upon prior bounds that required $\Omega(\sqrt{n}\log n / \varepsilon^4)$ in 1D and $\tilde{\Omega}(n^{d-1/2}\text{poly}(1/\varepsilon))$ in higher dimensions.
  • Testing independence of $d$ random variables over $[n_1] \times \cdots \times [n_d]$ requires $O\left(\left(\prod_{l}n_{l}\right)^{1/2} + \sum_{l}n_{l}\right)/\varepsilon^2$ samples, with a matching $\Omega\left(\left(\prod_{l}n_{l}\right)^{1/2}/\varepsilon^2\right)$ lower bound.
  • Testing log-concavity, unimodality, and monotone hazard rate over $[n]$ each require $\Theta(\sqrt{n}/\varepsilon^2)$ samples, with matching lower bounds established via structured distribution classes and raise-point analysis.
  • The framework yields the first known computationally efficient proper learners for discrete log-concave and monotone hazard rate distributions, which are essential for the testing pipeline.
  • The method establishes optimality of the testers by proving matching lower bounds for all considered properties, with respect to both $n$ and $\varepsilon$.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.