cs.DSMay 5, 2026

On Computing Total Variation Distance Between Mixtures of Product Distributions

Authors: Weiming FengYucheng FuMinji YangAnqi Zhang

Organizations: School of Computing and Data Science, The University of Hong Kong. · The Institute for Interdisciplinary Information Sciences, Tsinghua University.

Abstract

We study the problem of approximating the total variation distance between two mixtures of product distributions over an nn-dimensional discrete domain. Given two mixtures P\mathbb{P} and Q\mathbb{Q} with k1k_1 and k2k_2 product distributions over [q]n[q]^n, respectively, we give a randomized algorithm that approximates dTV(P,Q)d_{\mathrm{TV}}\left({\mathbb{P}},{\mathbb{Q}}\right) within a multiplicative error of (1±ε)(1\pm \varepsilon) in time poly((nq)k1+k2,1/ε)\mathrm{poly}((nq)^{k_1+k_2},1/\varepsilon). We also study the special case of mixtures of Boolean subcubes over {0,1}n\{0,1\}^n. For this class, we give a deterministic algorithm that exactly computes the total variation distance in time poly(n,2O(k1+k2))\mathrm{poly}(n,2^{O(k_1+k_2)}), and show that exact computation is #P\#\mathsf{P}-hard when k1+k2=Θ(n)k_1+k_2=Θ(n).

Explore similar work

Jun 9, 2026cs.DS

Density estimation for Hellinger via minimum-distance estimators: mixtures of Gaussians, log-concave, and more

We study the task of density estimation, where we hope to accurately estimate a probability density from nn samples. A textbook method for density estimation in total variation distance is the minimum-distance estimator approach, where we conclude both the algorithm and the analysis merely from bounding the VC dimension of a particular concept class (the so-called Yatracos class). While this technique has originally yielded sharp guarantees primarily for total variation distance, in this work we extend the minimum-distance estimator approach for learning within Hellinger distance. Our main observation is that we may produce an analogous recipe for Hellinger (where we only require bounding the VC dimension of a related concept class) by drawing connections to recent results yielding reverse data processing inequalities. This recipe is flexible enough to accommodate fast algorithms originally designed for total variation distance; by modifying the approach of Acharya et al. (2017) we conclude the first near-linear time algorithm for learning classes including univariate mixtures of log-concave densities and mixtures of Gaussians (with arbitrary variances), with near-optimal sample complexity.
Spencer Compton, Jerry Li
Apr 15, 2025stat.CO

Efficient and Stable Multi-Dimensional Kolmogorov-Smirnov Distance

We revisit extending the Kolmogorov-Smirnov distance between probability distributions to the multi-dimensional setting, and make new arguments about the proper way to approach this generalization. Our proposed formulation maximizes the difference over orthogonal dominating rectangular ranges (d-sided rectangles in R^d), and is an integral probability metric. We also prove that the distance between a distribution and a sample from the distribution converges to 0 as the sample size grows, and bound this rate. Moreover, we show that one can, up to this same approximation error, compute the distance efficiently in 4 or fewer dimensions; specifically, the runtime is near-linear in the size of the sample needed for that error. With this, we derive a delta-precision two-sample hypothesis test using this distance. Finally, we show these metrics and approximation properties do not hold for other popular variants.
Peter Matthew Jacobs, Foad Namjoo, Jeff M. Phillips
Sep 26, 2025math.OC

Mixtures Closest to a Given Measure: A Semidefinite Programming Approach

Mixture models, such as Gaussian mixture models, are widely used in machine learning to represent complex data distributions. A key challenge, especially in high-dimensional settings, is to determine the mixture order and estimate the mixture parameters. We study the problem of approximating a target measure, available only through finitely many of its moments, by a mixture of distributions from a parametric family (e.g., Gaussian, exponential, Poisson), with approximation quality measured by the 2-Wasserstein or the total variation distance. Unlike many existing approaches, the parameter set is not assumed to be finite; it is modeled as a compact basic semi-algebraic set. We introduce a hierarchy of semidefinite relaxations with asymptotic convergence to the desired optimal value. In addition, when a certain rank condition is satisfied, the convergence is even finite and recovery of an optimal mixing measure is obtained. We also present an application to clustering, where our framework serves either as a stand-alone method or as a preprocessing step that yields both the number of clusters and strong initial parameter estimates, thereby accelerating convergence of standard (local) clustering algorithms.
Srećko Đurašinović, Jean-Bernard Lasserre, Victor Magron