Skip to main content
QUICK REVIEW

[Paper Review] Sampling Polya-Gamma random variates: alternate and approximate techniques

Jesse Windle, Nicholas G. Polson|arXiv (Cornell University)|May 2, 2014
Bayesian Methods and Mixture ModelsComputer Science15 references18 citations
TL;DR

This paper proposes efficient sampling techniques for the Pólya-Gamma distribution, specifically for the $J^*(b,z)$ distribution, introducing an alternate direct sampler for integer $b \in [1,4]$ and a saddlepoint approximation for large $b$. It demonstrates that the alternate sampler outperforms the standard Devroye method for $n=3$ to $10$, while the saddlepoint method is most efficient for $n \geq 13$, with speedups up to 6.78× over the baseline method.

ABSTRACT

Efficiently sampling from the Pólya-Gamma distribution, ${PG}(b,z)$, is an essential element of Pólya-Gamma data augmentation. Polson et. al (2013) show how to efficiently sample from the ${PG}(1,z)$ distribution. We build two new samplers that offer improved performance when sampling from the ${PG}(b,z)$ distribution and $b$ is not unity.

Motivation & Objective

  • Address the computational bottleneck in Pólya-Gamma data augmentation by improving sampling efficiency for $\text{PG}(b,z)$ when $b \neq 1$.
  • Develop a direct sampler for $J^*(n,z)$ with integer $n \in [1,4]$ to avoid summing $n$ independent $J^*(1,z)$ variates.
  • Propose a saddlepoint approximation method for large $b$ to enable fast sampling when exact methods become infeasible.
  • Provide a hybrid sampling strategy that selects the optimal method based on $n$ and $z$ to maximize sampling efficiency.
  • Benchmark and compare multiple sampling strategies across a range of $n$ and $z$ values to identify performance trade-offs.

Proposed method

  • Introduce an alternate sampler for $J^*(n,z)$ using the infinite convolution representation of $J^*(b,z)$ as a sum of independent gamma variates scaled by $d_n^{-1}$, where $d_n = \frac{\pi^2}{2}(n+\frac{1}{2})^2 + \frac{z^2}{2}$.
  • Construct a direct sampler for $J^*(n,z)$ with $n \in \{1,2,3,4\}$ by leveraging the infinite divisibility and stable subordinator properties of the $J^*$ distribution.
  • Develop a saddlepoint approximation for $J^*(b,z)$ by matching the cumulant generating function and using the saddlepoint equation $\psi'(t^*) = x$ to approximate the density.
  • Use the moment generating function $M(t;b,z) = \prod_{n=0}^\infty \left(1 - \frac{t}{d_n}\right)^{-b}$ to derive the saddlepoint approximation and sample from the approximated density.
  • Implement a hybrid sampling strategy that selects the Devroye method for $n=1,2$, the alternate method for $n \in \{3,\dots,12\}$, the saddlepoint method for $13 \leq n \leq 170$, and a normal approximation for $n \geq 170$.
  • Benchmark all methods using 10,000 i.i.d. draws across various $n$ and $z$ values on a standard laptop, measuring wall-clock time and computing speed-up ratios relative to the Devroye method.

Experimental results

Research questions

  • RQ1How can sampling from the $J^*(b,z)$ distribution be accelerated when $b$ is an integer greater than 1?
  • RQ2What is the performance gain of a direct sampler for $J^*(n,z)$ with $n \in \{3,4\}$ compared to summing $n$ independent $J^*(1,z)$ variates?
  • RQ3How accurate and efficient is the saddlepoint approximation for $J^*(b,z)$ when $b$ is large?
  • RQ4What is the optimal hybrid sampling strategy across different ranges of $b$ and $z$?
  • RQ5Can the normal approximation be reliably used for $b \geq 170$ when gamma function evaluations fail?

Key findings

  • The alternate sampler for $J^*(n,z)$ with $n \in \{3,4\}$ achieves speedups of up to 2.75× over the Devroye method when $z=2$.
  • For $n=10$, the saddlepoint approximation method achieves a speedup of 2.57× compared to the Devroye method, with performance improving as $n$ increases.
  • The saddlepoint method outperforms all other methods for $n \geq 13$, achieving a maximum speedup of 6.78× at $n=100$, $z=10$.
  • The hybrid sampling strategy—using Devroye for $n=1,2$, alternate for $n=3$ to $12$, saddlepoint for $n=13$ to $170$, and normal approximation for $n \geq 170$—optimizes performance across the full parameter space.
  • The truncated sum method based on Fact 3.5 (summing 200 gamma variates) never outperforms the other methods and is consistently slower than the best alternatives.
  • The speedup ratio increases with $n$, and while $z$ affects the optimal method choice, the general performance trends remain consistent across different $z$ values.

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.