Rejection sampling

From HandWiki
Revision as of 15:01, 6 February 2024 by NBrushPhys (talk | contribs) (update)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Short description: Computational statistics technique

In numerical analysis and computational statistics, rejection sampling is a basic technique used to generate observations from a distribution. It is also commonly called the acceptance-rejection method or "accept-reject algorithm" and is a type of exact simulation method. The method works for any distribution in [math]\displaystyle{ \mathbb{R}^m }[/math] with a density.

Rejection sampling is based on the observation that to sample a random variable in one dimension, one can perform a uniformly random sampling of the two-dimensional Cartesian graph, and keep the samples in the region under the graph of its density function.[1][2][3] Note that this property can be extended to N-dimension functions.

Description

To visualize the motivation behind rejection sampling, imagine graphing the density function of a random variable onto a large rectangular board and throwing darts at it. Assume that the darts are uniformly distributed around the board. Now remove all of the darts that are outside the area under the curve. The remaining darts will be distributed uniformly within the area under the curve, and the x-positions of these darts will be distributed according to the random variable's density. This is because there is the most room for the darts to land where the curve is highest and thus the probability density is greatest.

The visualization as just described is equivalent to a particular form of rejection sampling where the "proposal distribution" is uniform (hence its graph is a rectangle). The general form of rejection sampling assumes that the board is not necessarily rectangular but is shaped according to the density of some proposal distribution that we know how to sample from (for example, using inversion sampling), and which is at least as high at every point as the distribution we want to sample from, so that the former completely encloses the latter. (Otherwise, there would be parts of the curved area we want to sample from that could never be reached.)

Rejection sampling works as follows:

  1. Sample a point on the x-axis from the proposal distribution.
  2. Draw a vertical line at this x-position, up to the maximum y-value of the probability density function of the proposal distribution.
  3. Sample uniformly along this line from 0 to the maximum of the probability density function. If the sampled value is greater than the value of the desired distribution at this vertical line, reject the x-value and return to step 1; else the x-value is a sample from the desired distribution.

This algorithm can be used to sample from the area under any curve, regardless of whether the function integrates to 1. In fact, scaling a function by a constant has no effect on the sampled x-positions. Thus, the algorithm can be used to sample from a distribution whose normalizing constant is unknown, which is common in computational statistics.

Theory

The rejection sampling method generates sampling values from a target distribution [math]\displaystyle{ X }[/math] with arbitrary probability density function [math]\displaystyle{ f(x) }[/math] by using a proposal distribution [math]\displaystyle{ Y }[/math] with probability density [math]\displaystyle{ g(x) }[/math]. The idea is that one can generate a sample value from [math]\displaystyle{ X }[/math] by instead sampling from [math]\displaystyle{ Y }[/math] and accepting the sample from [math]\displaystyle{ Y }[/math] with probability [math]\displaystyle{ f(x)/(M g(x)) }[/math], repeating the draws from [math]\displaystyle{ Y }[/math] until a value is accepted. [math]\displaystyle{ M }[/math] here is a constant, finite bound on the likelihood ratio [math]\displaystyle{ f(x)/g(x) }[/math], satisfying [math]\displaystyle{ 1 \lt M \lt \infty }[/math] over the support of [math]\displaystyle{ X }[/math]; in other words, M must satisfy [math]\displaystyle{ f(x) \leq M g(x) }[/math] for all values of [math]\displaystyle{ x }[/math]. Note that this requires that the support of [math]\displaystyle{ Y }[/math] must include the support of [math]\displaystyle{ X }[/math]—in other words, [math]\displaystyle{ g(x) \gt 0 }[/math] whenever [math]\displaystyle{ f(x) \gt 0 }[/math].

The validation of this method is the envelope principle: when simulating the pair [math]\displaystyle{ (x,v=u\cdot Mg(x)) }[/math], one produces a uniform simulation over the subgraph of [math]\displaystyle{ Mg(x) }[/math]. Accepting only pairs such that [math]\displaystyle{ u\lt f(x)/(Mg(x)) }[/math] then produces pairs [math]\displaystyle{ (x,v) }[/math] uniformly distributed over the subgraph of [math]\displaystyle{ f(x) }[/math] and thus, marginally, a simulation from [math]\displaystyle{ f(x). }[/math]

This means that, with enough replicates, the algorithm generates a sample from the desired distribution [math]\displaystyle{ f(x) }[/math]. There are a number of extensions to this algorithm, such as the Metropolis algorithm.

This method relates to the general field of Monte Carlo techniques, including Markov chain Monte Carlo algorithms that also use a proxy distribution to achieve simulation from the target distribution [math]\displaystyle{ f(x) }[/math]. It forms the basis for algorithms such as the Metropolis algorithm.

The unconditional acceptance probability is the proportion of proposed samples which are accepted, which is [math]\displaystyle{ \begin{align} \mathbb{P}\left(U\le\frac{f(Y)}{M g(Y)}\right) &= \operatorname{E}\mathbf{1}_{\left[U\le\frac{f(Y)}{M g(Y)}\right]}\\[6pt] &= E\left[\operatorname{E}[\mathbf{1}_{\left[U\le\frac{f(Y)}{M g(Y)}\right]}| Y]\right] & (\text{by tower property } ) \\[6pt] &= \operatorname{E}\left[\mathbb{P}\left(U\le \frac{f(Y)}{Mg(Y)} \biggr| Y\right) \right]\\[6pt] &= E\left[\frac{f(Y)}{M g(Y)}\right] & (\text{because } \Pr(U \leq u) = u, \text{when } U \text{ is uniform on } (0,1)) \\[6pt] &=\int\limits_{y: g(y) \gt 0} \frac{f(y)}{M g(y)} g(y) \, dy\\ [6pt] &= \frac{1}{M}\int\limits_{y: g(y) \gt 0} f(y) \, dy \\[6pt] &= \frac{1}{M} & (\text{since support of } Y \text{ includes support of } X) \end{align} }[/math]where [math]\displaystyle{ U\sim \mathrm{Unif}(0,1) }[/math], and the value of [math]\displaystyle{ y }[/math] each time is generated under the density function [math]\displaystyle{ g(\cdot) }[/math] of the proposal distribution [math]\displaystyle{ Y }[/math].

The number of samples required from [math]\displaystyle{ Y }[/math] to obtain an accepted value thus follows a geometric distribution with probability [math]\displaystyle{ 1/M }[/math], which has mean [math]\displaystyle{ M }[/math]. Intuitively, [math]\displaystyle{ M }[/math] is the expected number of the iterations that are needed, as a measure of the computational complexity of the algorithm.

Rewrite the above equation, [math]\displaystyle{ M=\frac{1}{\mathbb{P}\left(U\le\frac{f(Y)}{M g(Y)}\right)} }[/math] Note that [math]\displaystyle{ 1 \le M\lt \infty }[/math], due to the above formula, where [math]\displaystyle{ \mathbb{P}\left(U\le\frac{f(Y)}{M g(Y)}\right) }[/math] is a probability which can only take values in the interval [math]\displaystyle{ [0,1] }[/math]. When [math]\displaystyle{ M }[/math] is chosen closer to one, the unconditional acceptance probability is higher the less that ratio varies, since [math]\displaystyle{ M }[/math] is the upper bound for the likelihood ratio [math]\displaystyle{ f(x)/g(x) }[/math]. In practice, a value of [math]\displaystyle{ M }[/math] closer to 1 is preferred as it implies fewer rejected samples, on average, and thus fewer iterations of the algorithm. In this sense, one prefers to have [math]\displaystyle{ M }[/math] as small as possible (while still satisfying [math]\displaystyle{ f(x) \leq M g(x) }[/math], which suggests that [math]\displaystyle{ g(x) }[/math] should generally resemble [math]\displaystyle{ f(x) }[/math] in some way. Note, however, that [math]\displaystyle{ M }[/math] cannot be equal to 1: such would imply that [math]\displaystyle{ f(x)=g(x) }[/math], i.e. that the target and proposal distributions are actually the same distribution.

Rejection sampling is most often used in cases where the form of [math]\displaystyle{ f(x) }[/math] makes sampling difficult. A single iteration of the rejection algorithm requires sampling from the proposal distribution, drawing from a uniform distribution, and evaluating the [math]\displaystyle{ f(x)/(M g(x)) }[/math] expression. Rejection sampling is thus more efficient than some other method whenever M times the cost of these operations—which is the expected cost of obtaining a sample with rejection sampling—is lower than the cost of obtaining a sample using the other method.

Algorithm

The algorithm, which was used by John von Neumann[4] and dates back to Buffon and his needle,[5] obtains a sample from distribution [math]\displaystyle{ X }[/math] with density [math]\displaystyle{ f }[/math] using samples from distribution [math]\displaystyle{ Y }[/math] with density [math]\displaystyle{ g }[/math] as follows:

  • Obtain a sample [math]\displaystyle{ y }[/math] from distribution [math]\displaystyle{ Y }[/math] and a sample [math]\displaystyle{ u }[/math] from [math]\displaystyle{ \mathrm{Unif}(0,1) }[/math] (the uniform distribution over the unit interval).
  • Check if [math]\displaystyle{ u\lt f(y)/Mg(y) }[/math].
    • If this holds, accept [math]\displaystyle{ y }[/math] as a sample drawn from [math]\displaystyle{ f }[/math];
    • if not, reject the value of [math]\displaystyle{ y }[/math] and return to the sampling step.

The algorithm will take an average of [math]\displaystyle{ M }[/math] iterations to obtain a sample.[6]

Advantages over sampling using naive methods

Rejection sampling can be far more efficient compared with the naive methods in some situations. For example, given a problem as sampling [math]\displaystyle{ X\sim F(\cdot) }[/math] conditionally on [math]\displaystyle{ X }[/math] given the set [math]\displaystyle{ A }[/math], i.e., [math]\displaystyle{ X|X\in A }[/math], sometimes [math]\displaystyle{ X }[/math] can be easily simulated, using the naive methods (e.g. by inverse transform sampling):

  • Sample [math]\displaystyle{ X\sim F(\cdot) }[/math] independently, and accept those satisfying [math]\displaystyle{ \{n\ge 1: X_n\in A\} }[/math]
  • Output: [math]\displaystyle{ \{X_1,X_2,...,X_N:X_i\in A, i=1,...,N\} }[/math] (see also truncation (statistics))

The problem is this sampling can be difficult and inefficient, if [math]\displaystyle{ \mathbb{P}(X\in A)\approx 0 }[/math]. The expected number of iterations would be [math]\displaystyle{ \frac{1}{\mathbb{P}(X\in A)} }[/math], which could be close to infinity. Moreover, even when you apply the Rejection sampling method, it is always hard to optimize the bound [math]\displaystyle{ M }[/math] for the likelihood ratio. More often than not, [math]\displaystyle{ M }[/math] is large and the rejection rate is high, the algorithm can be very inefficient. The Natural Exponential Family (if it exists), also known as exponential tilting, provides a class of proposal distributions that can lower the computation complexity, the value of [math]\displaystyle{ M }[/math] and speed up the computations (see examples: working with Natural Exponential Families).

Rejection sampling using exponential tilting

Given a random variable [math]\displaystyle{ X\sim F(\cdot) }[/math], [math]\displaystyle{ F(x)=\mathbb{P}(X\le x) }[/math] is the target distribution. Assume for the simplicity, the density function can be explicitly written as [math]\displaystyle{ f(x) }[/math]. Choose the proposal as

[math]\displaystyle{ \begin{align} F_\theta (x)&=\mathbb{E}\left[\exp(\theta X-\psi (\theta))\mathbb{I}(X\le x)\right]\\ &=\int^x_{-\infty}e^{\theta y-\psi(\theta)}f(y)dy\\ g_\theta(x)&=F'_\theta(x)=e^{\theta x-\psi(\theta)}f(x) \end{align} }[/math]

where [math]\displaystyle{ \psi(\theta) = \log\left(\mathbb{E}\exp(\theta X)\right) }[/math] and [math]\displaystyle{ \Theta = \{\theta :\psi(\theta)\lt \infty\} }[/math]. Clearly, [math]\displaystyle{ \{F_\theta (\cdot)\}_{\theta \in \Theta} }[/math], is from a natural exponential family. Moreover, the likelihood ratio is

[math]\displaystyle{ Z(x)=\frac{f(x)}{g_\theta(x)}=\frac{f(x)}{e^{\theta x-\psi(\theta)}f(x)}=e^{-\theta x+\psi(\theta)} }[/math]

Note that [math]\displaystyle{ \psi (\theta)\lt \infty }[/math] implies that it is indeed a cumulant-generation function, that is,

[math]\displaystyle{ \psi(\theta)=\log\mathbb{E}{\exp(tX)}|_{t=\theta}=\log M_X(t)|_{t=\theta} }[/math].

It is easy to derive the cumulant-generation function of the proposal and therefore the proposal's cumulants.

[math]\displaystyle{ \begin{align} \psi_\theta(\eta)&=\log\left(\mathbb{E}_\theta\exp(\eta X)\right)=\psi(\theta+\eta)-\psi(\theta)\lt \infty\\ \mathbb{E}_\theta(X)&= \left.\frac{\partial \psi_\theta(\eta)}{\partial\eta}\right|_{\eta=0}\\ \mathrm{Var}_\theta(X)&= \left.\frac{\partial^2 \psi_\theta(\eta)}{\partial^2\eta}\right|_{\eta=0} \end{align} }[/math]

As a simple example, suppose under [math]\displaystyle{ F(\cdot) }[/math], [math]\displaystyle{ X \sim \mathrm{N}(\mu, \sigma^2) }[/math], with [math]\displaystyle{ \psi(\theta)= \mu\theta+\frac{\sigma^2\theta^2}{2} }[/math]. The goal is to sample [math]\displaystyle{ X|X\in \left[b,\infty\right] }[/math], where [math]\displaystyle{ b\gt \mu }[/math]. The analysis goes as follows:

  • Choose the form of the proposal distribution [math]\displaystyle{ F_\theta(\cdot) }[/math], with cumulant-generating function as
[math]\displaystyle{ \psi_\theta(\eta) = \psi (\theta+\eta) - \psi(\theta) = (\mu+\theta\sigma^2)\eta + \frac{\sigma^2\eta^2}{2} }[/math],
which further implies it is a normal distribution [math]\displaystyle{ \mathrm{N}(\mu+\theta\sigma^2, \sigma^2) }[/math].
  • Decide the well chosen [math]\displaystyle{ \theta^* }[/math] for the proposal distribution. In this setup, the intuitive way to choose [math]\displaystyle{ \theta^* }[/math] is to set
[math]\displaystyle{ \mathbb{E}_{\theta}(X)=\mu+\theta\sigma^2=b }[/math],
that is [math]\displaystyle{ \theta^*=\frac{b-\mu}{\sigma^2}. }[/math] The proposal distribution is thus [math]\displaystyle{ g_{\theta^*}(x) = \mathrm{N}(b, \sigma^2) }[/math].
  • Explicitly write out the target, the proposal and the likelihood ratio
[math]\displaystyle{ \begin{align} f_{X|X\ge b}(x)&=\frac{f(x)\mathbb{I}(x\ge b)}{\mathbb{P}(X\ge b)}\\ g_{\theta^*}(x)&=f(x)\exp(\theta^* x-\psi(\theta^*))\\ Z(x)&=\frac{f_{X|X\ge b}(x)}{g_{\theta^*}(x)}=\frac{\exp(-\theta^* x+\psi(\theta^*))\mathbb{I}(x\ge b)}{\mathbb{P}(X\ge b)} \end{align} }[/math]
  • Derive the bound [math]\displaystyle{ M }[/math] for the likelihood ratio [math]\displaystyle{ Z(x) }[/math], which is a decreasing function for [math]\displaystyle{ x \in [b, \infty] }[/math], therefore
[math]\displaystyle{ M=Z(b)=\frac{\exp(-\theta^*b+\psi(\theta^*))}{\mathbb{P}(X\ge b)} = \frac{\exp\left(-\frac{(b-\mu)^2}{2\sigma^2}\right)}{\mathbb{P}(X\ge b)} = \frac{\exp\left(-\frac{(b-\mu)^2}{2\sigma^2}\right)}{\mathbb{P}\left(\mathrm{N}(0,1)\ge\frac{b-\mu}{\sigma}\right)} }[/math]
  • Rejection sampling criterion: for [math]\displaystyle{ U\sim \mathrm{Unif}(0,1) }[/math], if
[math]\displaystyle{ U\le \frac{Z(x)}{M}=e^{-\theta^*(x-b)}\mathbb{I}(x\ge b) }[/math]

holds, accept the value of [math]\displaystyle{ X }[/math]; if not, continue sampling new [math]\displaystyle{ X\sim_{i.i.d.}\mathrm{N}(\mu+\theta^*\sigma^2,\sigma^2) }[/math] and new [math]\displaystyle{ U\sim \mathrm{Unif}(0,1) }[/math] until acceptance.

For the above example, as the measurement of the efficiency, the expected number of the iterations the natural exponential family based rejection sampling method is of order [math]\displaystyle{ b }[/math], that is [math]\displaystyle{ M(b)=O(b) }[/math], while under the naive method, the expected number of the iterations is [math]\displaystyle{ \frac{1}{\mathbb{P}(X\ge b)}=O(b\cdot e^{\frac{(b-\mu)^2}{2\sigma^2}}) }[/math], which is far more inefficient.

In general, exponential tilting a parametric class of proposal distribution, solves the optimization problems conveniently, with its useful properties that directly characterize the distribution of the proposal. For this type of problem, to simulate [math]\displaystyle{ X }[/math] conditionally on [math]\displaystyle{ X\in A }[/math], among the class of simple distributions, the trick is to use natural exponential family, which helps to gain some control over the complexity and considerably speed up the computation. Indeed, there are deep mathematical reasons for using natural exponential family.

Drawbacks

Rejection sampling requires knowing the target distribution (specifically, ability to evaluate target PDF at any point).

Rejection sampling can lead to a lot of unwanted samples being taken if the function being sampled is highly concentrated in a certain region, for example a function that has a spike at some location. For many distributions, this problem can be solved using an adaptive extension (see adaptive rejection sampling), or with an appropriate change of variables with the method of the ratio of uniforms. In addition, as the dimensions of the problem get larger, the ratio of the embedded volume to the "corners" of the embedding volume tends towards zero, thus a lot of rejections can take place before a useful sample is generated, thus making the algorithm inefficient and impractical. See curse of dimensionality. In high dimensions, it is necessary to use a different approach, typically a Markov chain Monte Carlo method such as Metropolis sampling or Gibbs sampling. (However, Gibbs sampling, which breaks down a multi-dimensional sampling problem into a series of low-dimensional samples, may use rejection sampling as one of its steps.)

Adaptive rejection sampling

For many distributions, finding a proposal distribution that includes the given distribution without a lot of wasted space is difficult. An extension of rejection sampling that can be used to overcome this difficulty and efficiently sample from a wide variety of distributions (provided that they have log-concave density functions, which is in fact the case for most of the common distributions—even those whose density functions are not concave themselves) is known as adaptive rejection sampling (ARS).

There are three basic ideas to this technique as ultimately introduced by Gilks in 1992:[7]

  1. If it helps, define your envelope distribution in log space (e.g. log-probability or log-density) instead. That is, work with [math]\displaystyle{ h\left(x\right) = \log g\left(x\right) }[/math] instead of [math]\displaystyle{ g\left(x\right) }[/math] directly.
    • Often, distributions that have algebraically messy density functions have reasonably simpler log density functions (i.e. when [math]\displaystyle{ f\left( x \right) }[/math] is messy, [math]\displaystyle{ \log f\left(x\right) }[/math] may be easier to work with or, at least, closer to piecewise linear).
  2. Instead of a single uniform envelope density function, use a piecewise linear density function as your envelope instead.
    • Each time you have to reject a sample, you can use the value of [math]\displaystyle{ f \left(x \right) }[/math] that you evaluated, to improve the piecewise approximation [math]\displaystyle{ h \left(x \right) }[/math]. This therefore reduces the chance that your next attempt will be rejected. Asymptotically, the probability of needing to reject your sample should converge to zero, and in practice, often very rapidly.
    • As proposed, any time we choose a point that is rejected, we tighten the envelope with another line segment that is tangent to the curve at the point with the same x-coordinate as the chosen point.
    • A piecewise linear model of the proposal log distribution results in a set of piecewise exponential distributions (i.e. segments of one or more exponential distributions, attached end to end). Exponential distributions are well behaved and well understood. The logarithm of an exponential distribution is a straight line, and hence this method essentially involves enclosing the logarithm of the density in a series of line segments. This is the source of the log-concave restriction: if a distribution is log-concave, then its logarithm is concave (shaped like an upside-down U), meaning that a line segment tangent to the curve will always pass over the curve.
    • If not working in log space, a piecewise linear density function can also be sampled via triangle distributions[8]
  3. We can take even further advantage of the (log) concavity requirement, to potentially avoid the cost of evaluating [math]\displaystyle{ f \left( x \right) }[/math] when your sample is accepted.
    • Just like we can construct a piecewise linear upper bound (the "envelope" function) using the values of [math]\displaystyle{ h \left(x \right) }[/math] that we had to evaluate in the current chain of rejections, we can also construct a piecewise linear lower bound (the "squeezing" function) using these values as well.
    • Before evaluating (the potentially expensive) [math]\displaystyle{ f \left( x \right) }[/math] to see if your sample will be accepted, we may already know if it will be accepted by comparing against the (ideally cheaper) [math]\displaystyle{ g_l \left( x \right) }[/math] (or [math]\displaystyle{ h_l \left( x \right) }[/math] in this case) squeezing function that have available.
    • This squeezing step is optional, even when suggested by Gilks. At best it saves you from only one extra evaluation of your (messy and/or expensive) target density. However, presumably for particularly expensive density functions (and assuming the rapid convergence of the rejection rate toward zero) this can make a sizable difference in ultimate runtime.

The method essentially involves successively determining an envelope of straight-line segments that approximates the logarithm better and better while still remaining above the curve, starting with a fixed number of segments (possibly just a single tangent line). Sampling from a truncated exponential random variable is straightforward. Just take the log of a uniform random variable (with appropriate interval and corresponding truncation).

Unfortunately, ARS can only be applied for sampling from log-concave target densities. For this reason, several extensions of ARS have been proposed in literature for tackling non-log-concave target distributions.[9][10][11] Furthermore, different combinations of ARS and the Metropolis-Hastings method have been designed in order to obtain a universal sampler that builds a self-tuning proposal densities (i.e., a proposal automatically constructed and adapted to the target). This class of methods are often called as Adaptive Rejection Metropolis Sampling (ARMS) algorithms.[12][13] The resulting adaptive techniques can be always applied but the generated samples are correlated in this case (although the correlation vanishes quickly to zero as the number of iterations grows).

See also

References

  1. Casella, George; Robert, Christian P.; Wells, Martin T. (2004). Generalized Accept-Reject sampling schemes. Institute of Mathematical Statistics. pp. 342–347. doi:10.1214/lnms/1196285403. ISBN 9780940600614. 
  2. Neal, Radford M. (2003). "Slice Sampling". Annals of Statistics 31 (3): 705–767. doi:10.1214/aos/1056562461. 
  3. Bishop, Christopher (2006). "11.4: Slice sampling". Pattern Recognition and Machine Learning. Springer. ISBN 978-0-387-31073-2. 
  4. Forsythe, George E. (1972). "Von Neumann's Comparison Method for Random Sampling from the Normal and Other Distributions". Mathematics of Computation 26 (120): 817–826. doi:10.2307/2005864. ISSN 0025-5718. https://www.jstor.org/stable/2005864. 
  5. Legault, Geoffrey; Melbourne, Brett A. (2019-03-01). "Accounting for environmental change in continuous-time stochastic population models" (in en). Theoretical Ecology 12 (1): 31–48. doi:10.1007/s12080-018-0386-z. ISSN 1874-1746. https://doi.org/10.1007/s12080-018-0386-z. 
  6. Thomopoulos, Nick T. (2012-12-19) (in English). Essentials of Monte Carlo Simulation: Statistical Methods for Building Simulation Models (2013th ed.). New York, NY Heidelberg: Springer. ISBN 978-1-4614-6021-3. https://www.amazon.com/Essentials-Monte-Carlo-Simulation-Statistical/dp/1461460212. 
  7. Gilks, W. R.; Wild, P. (1992). "Adaptive Rejection Sampling for Gibbs Sampling". Journal of the Royal Statistical Society. Series C (Applied Statistics) 41 (2): 337–348. doi:10.2307/2347565. 
  8. Thomas, D. B.; Luk, W. (2007). "Non-uniform random number generation through piecewise linear approximations". IET Computers & Digital Techniques 1 (4): 312–321. doi:10.1049/iet-cdt:20060188. 
  9. Hörmann, Wolfgang (1995-06-01). "A Rejection Technique for Sampling from T-concave Distributions". ACM Trans. Math. Softw. 21 (2): 182–193. doi:10.1145/203082.203089. ISSN 0098-3500. 
  10. Evans, M.; Swartz, T. (1998-12-01). "Random Variable Generation Using Concavity Properties of Transformed Densities". Journal of Computational and Graphical Statistics 7 (4): 514–528. doi:10.2307/1390680. 
  11. Görür, Dilan; Teh, Yee Whye (2011-01-01). "Concave-Convex Adaptive Rejection Sampling". Journal of Computational and Graphical Statistics 20 (3): 670–691. doi:10.1198/jcgs.2011.09058. ISSN 1061-8600. 
  12. Gilks, W. R.; Best, N. G.; Tan, K. K. C. (1995-01-01). "Adaptive Rejection Metropolis Sampling within Gibbs Sampling". Journal of the Royal Statistical Society. Series C (Applied Statistics) 44 (4): 455–472. doi:10.2307/2986138. 
  13. Meyer, Renate; Cai, Bo; Perron, François (2008-03-15). "Adaptive rejection Metropolis sampling using Lagrange interpolation polynomials of degree 2". Computational Statistics & Data Analysis 52 (7): 3408–3423. doi:10.1016/j.csda.2008.01.005. 

Further reading

  • Robert, C. P.; Casella, G. (2004). Monte Carlo Statistical Methods (Second ed.). New York: Springer-Verlag.