|
Method of Inverse transform
Suppose we want to generate a random variable with a prescribed distribution function . We have observed that the random variable , defined by .Thus given random number , the inverse transform will have the CDF .
Figure 1
The algorithmic steps for the inverse transform method are as follows:
- Generate a random number from
. Call it .
- Compute the value
such that 
- Take
to be the random number generated.
|