next up previous
Next: About this document

Econ 551: Note on A/R Samplinggif
Professor John Rust, Department of Economics, Yale University

A/R sampling (short for acceptance-rejection sampling) is a way of generating random draws tex2html_wrap_inline76 from a density tex2html_wrap_inline78 that is hard to sample from by drawing from another envelope or majorizing density tex2html_wrap_inline80 that is easy to generate random draws from. The majorizing density g must satisfy the following condition:

displaymath84

where tex2html_wrap_inline86 . Note that to do A/R method we must know some constant a satisfying inequality (1), since the A/R procedure works as follows

1.
Draw a uniform random draw tex2html_wrap_inline90 .

2.
Draw a random draw tex2html_wrap_inline92 , i.e. a random draw from the majorizing density.

3.
if tex2html_wrap_inline94 reject the draw and go back to step 1. Otherwise stop, accept the draw, and set tex2html_wrap_inline96 as a random draw from tex2html_wrap_inline78 .

Claim: tex2html_wrap_inline76 is a random draw from tex2html_wrap_inline78 .

Proof: We need to show that

displaymath104

where the probability on the left hand side of equation (2) is the conditional probability that tex2html_wrap_inline106 given that the A/R simulation procedure has stopped. However that probability can be written as:

displaymath108

The probability in the numerator of (3) can be written as

displaymath110

But the probability of stopping given a draw tex2html_wrap_inline96 is just

displaymath114

since tex2html_wrap_inline116 is uniformly distributed and independent of tex2html_wrap_inline118 . Substituting equation (5) into equation (4) we get:

displaymath120

Letting tex2html_wrap_inline122 we get

displaymath124

Substituting equations (6) and (7) into equation (3) we get the result in equation (2).

Note that tex2html_wrap_inline78 does not have to integrate to 1 for the A/R method to work: the normalizing factor necessary for tex2html_wrap_inline78 to be a valid probability density, tex2html_wrap_inline132 , can be absorbed into the constant a. However since we need to know an actual value of a for the A/R method to work, we must at least have an estimate of the upper bound on this normalizing factor to determine an appropriate constant a satisfying inequality (1). Note how the normalizing factor ends up multiplying a:

displaymath142

So that even if we don't know the normalizing factor but can guess an upper bound for it, then we can still do A/R sampling to draw from the density computed by dividing p by its normalizing factor. We can always use a very large value of a, but the cost is a low probability of acceptance (probability of stopping) so the A/R sampling method can be very inefficient and time consuming. This is why Markov Chain Monte Carlo methods such as Gibbs sampling and the Metropolis-Hastings methods are typically used instead of A/R in order to simulate draws from a posterior density in Bayesian econometrics.




next up previous
Next: About this document

John Rust
Mon Jan 27 18:22:52 CST 1997