- Rejection sampling
In
mathematics , rejection sampling is a technique used to generate observations from a distribution. It is also commonly called the acceptance-rejection method or "accept-reject algorithm".It generates sampling values from an arbitrary
probability distribution function by using an instrumental distribution , under the only restriction that where is an appropriate bound on .Rejection sampling is usually used in cases where the form of makes sampling difficult. Instead of sampling directly from the distribution , we use an envelope distribution where sampling is easier. These samples from are probabilistically accepted or rejected.
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 . It forms the basis for algorithms such as theMetropolis algorithm .The unconditional acceptance probability is the proportion of proposed samples which are accepted, and is the integral over all values of of . If this is high, fewer samples are rejected, and the required number of samples for the target distribution is obtained more quickly. The unconditional acceptance probability is higher the less the ratio varies, however to obtain acceptance probabilty 1, , which defeats the purpose of sampling.
Algorithm
The algorithm (used by
John von Neumann and dating back to Buffon and his needle) is as follows:
* Sample from and from
* Check whether or not
Wikimedia Foundation. 2010.