Professional Documents
Culture Documents
The Rejection Method. The Rejection Method Is A Quite Ingenious Approach and Is
The Rejection Method. The Rejection Method Is A Quite Ingenious Approach and Is
Note how in Examples 3-5 the inversion method (for generating sample values of
negative exponential or of Bernoulli random variables) is used as a building block
(or "subroutine") in the overall procedure.
The rejection method. The rejection method is a quite ingenious approach and is
based on a geometrical probability interpretation of pdf's (cf. Section 3.3.2). It can
be used for generating sample values for any random variable that:
1. Assumes values only within a finite range.
2. Has a pdf that is bounded (i.e., does not go to infinity for any value of the
random variable).
Let X be such a random variable. Let the maximum value of the pdf fx(x) be
denoted as c and let X assume values in the range [a, b] (X need not assume all
possible values in [a, b]). To generate random observations of X through the
rejection method (see Figure 7.10):
STEP Enclose the pdf fx(x) in the smallest rectangle that fully contains it and
1: whose sides are parallel to the x and y axes. This is a (b - a) x c rectangle.4
STEP Using two random numbers, r1 and r2, and scaling each to the appropriate
2: dimension of the rectangle [by multiplying one by (b - a) and the other by
c] generate a point that is uniformly distributed over the rectangle.
STEP If this point is "below" the pdf, accept the x-coordinate of the point as an
3: appropriate sample value of X. Otherwise, reject and return to Step 2.
The validity of the foregoing procedure is not intuitively obvious on a first reading.
We illustrate it first through an example and then explain why it works.