[Paper Review] A Family of Exact Goodness-of-Fit Tests for High-Dimensional Discrete Distributions
This paper introduces a family of exact, distribution-free goodness-of-fit tests for high-dimensional discrete distributions using a stochastic rank statistic (SRS). The method ranks observed samples against simulated i.i.d. draws from a candidate distribution using a user-defined total order on the domain; under the null hypothesis, the SRS is exactly uniformly distributed over {0, 1, ..., m}, enabling non-asymptotic, linear-time testing without computing intractable probabilities.
The objective of goodness-of-fit testing is to assess whether a dataset of observations is likely to have been drawn from a candidate probability distribution. This paper presents a rank-based family of goodness-of-fit tests that is specialized to discrete distributions on high-dimensional domains. The test is readily implemented using a simulation-based, linear-time procedure. The testing procedure can be customized by the practitioner using knowledge of the underlying data domain. Unlike most existing test statistics, the proposed test statistic is distribution-free and its exact (non-asymptotic) sampling distribution is known in closed form. We establish consistency of the test against all alternatives by showing that the test statistic is distributed as a discrete uniform if and only if the samples were drawn from the candidate distribution. We illustrate its efficacy for assessing the sample quality of approximate sampling algorithms over combinatorially large spaces with intractable probabilities, including random partitions in Dirichlet process mixture models and random lattices in Ising models.
Motivation & Objective
- To address the lack of theoretically rigorous, customizable, and practical goodness-of-fit tests for discrete distributions in high-dimensional, combinatorially large domains.
- To develop a test that is exact (non-asymptotic), distribution-free, and consistent against all alternatives, even in sparse or small-sample regimes.
- To enable practitioners to incorporate domain-specific knowledge via customizable orderings on the data domain to enhance test power.
- To provide a simulation-based, linear-time procedure that avoids explicit computation of intractable probability mass functions.
- To offer a practical framework for evaluating sample quality in approximate inference algorithms over complex discrete spaces, such as random partitions and lattices.
Proposed method
- Proposes the Stochastic Rank Statistic (SRS), which computes the rank of each observed sample $y_i$ among $m$ i.i.d. draws from the candidate distribution $\mathbf{p}$, using uniform random variables to break ties.
- Defines a total order $\prec$ on the countable domain $\mathcal{T}$, allowing practitioners to encode domain-specific structure or properties into the test.
- Uses a simulation-based procedure to compute ranks without requiring explicit evaluation of $\mathbf{p}(x)$, making it suitable for distributions with intractable probabilities.
- Establishes that the SRS is exactly uniformly distributed on $\{0, 1, \dots, m\}$ under the null hypothesis $\mathbf{q} = \mathbf{p}$, and only under that condition.
- Employs conditional probability and binomial mixtures to derive the exact sampling distribution of the SRS under the null, accounting for ties and non-uniform probabilities.
- Applies the test by histogramming the ranks of observed samples and assessing uniformity via standard goodness-of-fit tests (e.g., chi-squared) on the resulting discrete uniform distribution.
Experimental results
Research questions
- RQ1Can a goodness-of-fit test be constructed that is exact, distribution-free, and consistent for high-dimensional discrete distributions with intractable probabilities?
- RQ2How can domain-specific knowledge be systematically incorporated into a goodness-of-fit test to improve its power without compromising theoretical guarantees?
- RQ3What is the exact non-asymptotic sampling distribution of a rank-based test statistic when applied to discrete, high-dimensional data with ties?
- RQ4Can such a test be implemented efficiently in linear time without explicitly computing the probability mass function?
- RQ5How effective is the method in assessing sample quality from approximate samplers in complex models like Dirichlet process mixture models and Ising models?
Key findings
- The SRS is exactly uniformly distributed on $\{0, 1, \dots, m\}$ if and only if the observed samples were drawn from the candidate distribution $\mathbf{p}$, establishing consistency against all alternatives.
- The sampling distribution of the SRS is distribution-free and known in closed form, eliminating the need for Monte Carlo calibration or asymptotic approximations.
- The test is computationally efficient, requiring only $O(nm)$ time for $n$ observations and $m$ simulated samples, with no need to evaluate $\mathbf{p}(x)$ explicitly.
- The method successfully detects deviations in approximate samplers for random partitions in Dirichlet process mixture models and random lattices in Ising models, demonstrating practical utility.
- The test's power is sensitive to the choice of ordering $\prec$, and the paper provides systematic methods to construct effective orderings using data structure traversal, probe statistics, and randomization.
- Theoretical analysis confirms that non-uniformity in the rank histogram implies $\mathbf{q} \neq \mathbf{p}$, and the test can detect such discrepancies even when $\mathbf{p}$ and $\mathbf{q}$ are close in total variation.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.