Numerical analysis Monte Carlo and quasi-Monte Carlo methods Theorem
Rejection sampling
Builds on Probability density functionContinuous uniform distributionConditional probabilityGeometric distribution
Statement
Let and be probability density functions on , and let be a constant with for all . Let be independent pairs, where has density , has the uniform distribution on , and and are independent. Call trial accepted if and . Let be the index of the first accepted trial and . Then:
- each trial is accepted with probability ;
- the conditional distribution of given that trial is accepted has density ;
- is finite almost surely, has the geometric distribution with success probability , so , and has density .
Remarks
For a measurable set , , where the integral runs over the points with , which carry all the mass of since . Taking gives clause 1, and dividing by gives clause 2. Clause 3 follows because the trials are independent and is the value of the first success. Example: to sample the density on , take on and ; a uniform is accepted when , which happens half the time. The bound is necessary: if on a set of positive measure, the accepted values follow the density proportional to , not . The method needs only up to a constant factor: if with unknown , one uses and the acceptance test .
Going deeper
For a student
Rejection sampling, due to von Neumann, is exact, needs no inverse distribution function, and works in any dimension. Its weakness is the acceptance rate , which typically decays exponentially with the dimension, so in high dimension Markov chain Monte Carlo is used instead. Many fast samplers are refinements of it. The ziggurat algorithm uses a cheap envelope made of rectangles. Adaptive rejection sampling builds the envelope from tangent lines of when is log-concave. The number of trials before acceptance is geometric, so the cost per sample is random but with all moments finite.
Reading path
To understand this page from the ground up, read these 5 pages in order. The foundations come first.
Show the path as a graph
- no evidence level
- Conditional probability concept
- Continuous uniform distribution concept
- Geometric distribution concept
- Probability density function concept
- Rejection sampling statement
Where this leads
1 page builds on this one.
Further reading
About this page
| Tag | R1QBNFTHFP |
|---|---|
| URI | m2://R1QBNFTHFP |
| Kind | statement, theorem |
| Writing | W0 stub |
| MSC | 65C10, 65C05 |
| Status | This copy of the site has no build data. Run m2 status R1QBNFTHFP. |
| About | Probability density function |
| Uses | Probability density function, Continuous uniform distribution, Conditional probability, Geometric distribution |
| Same as |
Markdown · JSON · Edit on GitHub
What this page needs for W1
- an inventory row: the row of the inventory that the node accounts for (0 of 1)
- a source with a locator (0 of 1)
The writing levels say how complete the text of a page is. They do not measure its truth.