Skip to main content
QUICK REVIEW

[Paper Review] Testing Closeness of Discrete Distributions

Tuğkan Batu, Lance Fortnow|London School of Economics and Political Science Research Online (London School of Economics and Political Science)|Sep 27, 2010
Machine Learning and AlgorithmsComputer Science40 references12 citations
TL;DR

This paper presents a sublinear-time algorithm for testing the ℓ1 distance between two discrete probability distributions using O(n²/³ǫ⁻⁸/³ log n) samples, significantly improving upon the linear sample complexity of naive methods. The approach combines ℓ2 distance estimation for low-probability elements and direct ℓ1 estimation for high-probability elements via a filtering technique, achieving optimal sample complexity up to logarithmic factors, with applications to testing rapid mixing in Markov chains.

ABSTRACT

Given samples from two distributions over an $n$-element set, we wish to test whether these distributions are statistically close. We present an algorithm which uses sublinear in $n$, specifically, $O(n^{2/3}ε^{-8/3}\log n)$, independent samples from each distribution, runs in time linear in the sample size, makes no assumptions about the structure of the distributions, and distinguishes the cases when the distance between the distributions is small (less than $\max\{ε^{4/3}n^{-1/3}/32, εn^{-1/2}/4\}$) or large (more than $ε$) in $\ell_1$ distance. This result can be compared to the lower bound of $Ω(n^{2/3}ε^{-2/3})$ for this problem given by Valiant. Our algorithm has applications to the problem of testing whether a given Markov process is rapidly mixing. We present sublinear for several variants of this problem as well.

Motivation & Objective

  • To develop a sublinear-sample algorithm for testing whether two discrete distributions are close in ℓ1 distance.
  • To address the challenge of testing distribution closeness when only independent samples are available and no structural assumptions are made.
  • To apply the algorithm to property testing of Markov chains, particularly determining whether a chain is rapidly mixing.
  • To achieve sample complexity that is optimal up to logarithmic factors, matching known lower bounds.

Proposed method

  • The algorithm uses a filtering strategy that partitions the domain into high-probability and low-probability elements based on a threshold derived from ǫ and n.
  • For high-probability elements, it applies a direct ℓ1 estimation using the naive sampling approach with controlled error.
  • For low-probability elements, it estimates ℓ2 distance with O(ǫ⁻⁴ log(1/δ)) samples, leveraging the fact that ℓ1 distance is at most √n times ℓ2 distance.
  • It combines the estimates from both components using a weighted error bound to ensure overall ℓ1 distance is estimated within ǫ.
  • The method optimizes the threshold for filtering to balance the error contributions from high- and low-probability parts.
  • The framework is extended to Markov chains by testing whether the distribution after t steps is close to the stationary distribution, using edge-walk sampling.

Experimental results

Research questions

  • RQ1Can we test whether two discrete distributions are close in ℓ1 distance using sublinear samples in n, without assuming any structure on the distributions?
  • RQ2What is the optimal sample complexity for testing ℓ1 distance between two distributions when only independent samples are available?
  • RQ3How can we leverage ℓ2 distance estimation to achieve efficient ℓ1 testing in the sublinear regime?
  • RQ4Can this approach be extended to test whether a Markov chain is rapidly mixing, i.e., reaches stationarity quickly?
  • RQ5What is the sample complexity for testing closeness to rapid mixing in Markov chains, especially in sparse or structured settings?

Key findings

  • The algorithm uses O(n²/³ǫ⁻⁸/³ log(n/δ)) samples to test ℓ1 distance, which is optimal up to logarithmic factors, matching the Ω(n²/³ǫ⁻²/³) lower bound from Valiant.
  • The method achieves a trade-off between ℓ1 estimation for high-probability elements and ℓ2 estimation for low-probability elements, minimizing total error.
  • For Markov chains, the algorithm tests whether t-step distributions are close to stationarity by following ˜O(tn⁵/³) edges, remaining sublinear for small t.
  • When the chain is (ǫ, t)-mixing, the test accepts with probability at least 2/3; when not (2ǫ, 1.01ǫ)-close to any (4ǫ, 2t)-mixing chain, it rejects with probability at least 2/3.
  • The framework extends to sparse Markov chains by reweighting states according to row support size and testing closeness to smooth states under this distribution.
  • For undirected graphs, the method can be accelerated using a uniform distribution tester, reducing complexity when the stationary distribution is uniform.

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.