B prev next
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35

<< RANDOM DISTRIBUTIONS >>

The Rejection Method

In this method a sequence of random numbers {y1, y2, y3, ...} is generated with a uniform distribution in the range of interest, ymin to ymax. Now suppose that our goal is to produce a sequence of numbers distributed according to the function Py(y):

We proceed through the sequence {y1, y2, y3, ...} and accept values with a probability proportional to Py(y)