Simulating Random Observations
Use the inverse transform method to simulate observations from a continuous distribution: given a uniform draw u on [0,1], solve F(x) = u for x, where F is the target CDF.
Step 1 of 119%
Tutorial
The Inverse Transform Method
A computer can easily generate uniform random numbers on To simulate a random observation from any other continuous distribution, we use the inverse transform method:
- Generate from
- Solve for where is the CDF of the target distribution.
The resulting value is a random observation from This works because if then
so has CDF
Example. Let have CDF for To simulate we solve for
If the computer produces then the simulated observation is