Skip to main content
QUICK REVIEW

[Paper Review] Uniformly Generating Distribution Functions for Discrete Random Variables

Bruno Caprile|arXiv (Cornell University)|Nov 3, 2000
Bayesian Modeling and Causal InferenceComputer Science3 references4 citations
TL;DR

This paper presents an optimal algorithm for uniformly generating distribution functions over discrete random variables with n outcomes by sampling the (n−1)-simplex. It uses inverse transform sampling with a beta-like marginal distribution to ensure uniformity, requiring only n−1 random draws and constant-time inverse CDF evaluations, achieving optimal efficiency with O(n) complexity.

ABSTRACT

An algorithm is presented which, with optimal efficiency, solves the problem of uniform random generation of distribution functions for an n-valued random variable.

Motivation & Objective

  • To solve the problem of uniformly sampling distribution functions for an n-valued discrete random variable.
  • To avoid the inefficiency of naive rejection sampling in high-dimensional simplices.
  • To ensure uniform sampling over the (n−1)-simplex without bias or rescaling artifacts.
  • To achieve optimal computational efficiency with minimal random number usage.
  • To provide a deterministic, scalable method for probabilistic inference and empirical validation.

Proposed method

  • The algorithm samples the (n−1)-simplex by sequentially generating x₁ to xₙ₋₁ using a marginal distribution proportional to (rⱼ − xⱼ)ⁿ⁻².
  • At each step j, the variable xⱼ is drawn from [0, rⱼ] using the cumulative distribution function Ψ(xⱼ) = 1 − (1 − xⱼ/rⱼ)ⁿ⁻¹.
  • The inverse CDF Ψ⁻¹(ξ) = rⱼ[1 − (1 − ξ)¹/(ⁿ⁻¹)] enables efficient sampling via uniform random variates.
  • The remaining probability mass is assigned directly as xₙ = rₙ, ensuring the sum constraint ∑xᵢ = 1.
  • The method relies on the fact that the marginal distribution of each xⱼ depends only on the remaining mass rⱼ, not on prior values individually.
  • The algorithm uses exactly n−1 calls to a uniform random number generator and n−2 evaluations of the inverse CDF, both optimal in complexity.

Experimental results

Research questions

  • RQ1How can one uniformly sample the set of all possible distribution functions for a discrete random variable with n outcomes?
  • RQ2What is the most efficient way to generate points uniformly distributed over the (n−1)-simplex?
  • RQ3Can a rejection-based method be avoided due to exponential volume decay in high dimensions?
  • RQ4What is the correct marginal distribution for each component xⱼ in the simplex sampling process?
  • RQ5How can inverse transform sampling be applied efficiently to achieve uniform simplex sampling?

Key findings

  • The algorithm achieves optimal efficiency, requiring only n−1 uniform random draws and n−2 inverse CDF evaluations.
  • The marginal distribution for xⱼ at step j is ψ(xⱼ) = (n−1)/rⱼⁿ⁻¹ × (rⱼ − xⱼ)ⁿ⁻², ensuring uniformity over the simplex.
  • The cumulative distribution function is Ψ(xⱼ) = 1 − (1 − xⱼ/rⱼ)ⁿ⁻¹, which allows exact inverse sampling.
  • The inverse CDF is given by Ψ⁻¹(ξ) = rⱼ[1 − (1 − ξ)¹/(ⁿ⁻¹)], enabling efficient generation of xⱼ from uniform variates.
  • The method avoids rejection sampling, which becomes infeasible due to the (super)-exponential decay of the simplex volume in n.
  • The algorithm is independent of n in terms of sampling strategy and maintains uniformity across all dimensions.

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.