Skip to main content
QUICK REVIEW

[Paper Review] Fast inverse transform sampling in one and two dimensions

Sheehan Olver, Alex Townsend|arXiv (Cornell University)|Jul 4, 2013
Sparse and Compressive Sensing TechniquesEngineering17 references34 citations
TL;DR

This paper presents a fast, robust inverse transform sampling algorithm for one- and two-dimensional probability distributions using adaptive Chebyshev polynomial approximation and low-rank function approximation. It achieves near-machine-precision accuracy and outperforms rejection sampling and slice sampling, especially for expensive-to-evaluate distributions, by reducing function evaluations and enabling efficient parallelization.

ABSTRACT

We develop a computationally efficient and robust algorithm for generating pseudo-random samples from a broad class of smooth probability distributions in one and two dimensions. The algorithm is based on inverse transform sampling with a polynomial approximation scheme using Chebyshev polynomials, Chebyshev grids, and low rank function approximation. Numerical experiments demonstrate that our algorithm outperforms existing approaches.

Motivation & Objective

  • To overcome the conventional perception that inverse transform sampling is inefficient for general probability distributions.
  • To develop a robust and computationally efficient sampling method for smooth, black-box probability distributions in one and two dimensions.
  • To enable high-accuracy sampling with minimal function evaluations by leveraging polynomial approximation and low-rank structures.
  • To provide a scalable, parallelizable algorithm suitable for large-scale sampling tasks.

Proposed method

  • Approximates the probability density function (PDF) using Chebyshev polynomials on a Chebyshev grid, enabling stable and fast computation via the fast cosine transform.
  • Employs adaptive refinement of the polynomial degree until coefficient decay reaches machine precision, ensuring high accuracy in the cumulative distribution function (CDF).
  • Inverts the CDF pointwise using a bijection method instead of computing the inverse function directly, ensuring robust convergence.
  • Extends the method to two dimensions using low-rank approximation of the bivariate CDF, reducing computational cost and storage.
  • Uses a black-box approach: only requires pointwise evaluation of the PDF and a bounding interval, not symbolic manipulation or special properties.
  • Generates samples via inverse transform sampling on the approximated CDF, with the original PDF discarded after approximation.

Experimental results

Research questions

  • RQ1Can inverse transform sampling be made efficient and robust for general smooth, black-box probability distributions?
  • RQ2How can Chebyshev polynomial approximation improve the accuracy and speed of CDF computation and inversion?
  • RQ3Can low-rank approximation techniques enable efficient 2D inverse transform sampling for smooth bivariate distributions?
  • RQ4How does the proposed method compare in performance and function evaluation count to rejection sampling and slice sampling?
  • RQ5To what extent can the algorithm be parallelized for large-scale sampling?

Key findings

  • The algorithm outperforms Matlab’s slice sampling implementation in 1D, with a significant speedup for distributions like sech(ωx) when ω ≥ 30.
  • For the sech(ωx) distribution, the inverse transform method reduces the number of function evaluations by a factor of 10 compared to rejection sampling at large ω.
  • The computational cost of the proposed method remains nearly constant regardless of sample size, unlike rejection sampling, which has unbounded per-sample cost.
  • The method is robust and converges to near-machine-precision accuracy due to superalgebraic convergence of Chebyshev approximation.
  • The algorithm enables efficient parallelization, as the CDF representation is compact and can be stored locally for distributed sampling.
  • The approach generalizes to piecewise smooth, singular, and algebraically decaying distributions via appropriate transformations and approximation schemes.

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.