PolyaGammaSamplers.jl
PolyaGammaSamplers.jl provides a method for sampling from the Polya-Gamma distribution ([1]), using the Distributions.jl interface. The Polya-Gamma distribution with parameters b > 0 and z ≥ 0 has Laplace transform
\[\begin{aligned} \mathcal{L}(t) = \cosh^b(z) \cosh^{-b}(\sqrt{2t + z^2}). \end{aligned}\]
This distribution is useful for learning Bayesian Logit, Negative Binomial and non-parametric models ([1, 2, 3]).
Currently, the only available sampler is the one proposed in [1] (hereafter, the PSW sampler).