Empirical Continuous Distribution
Given the cdf of a continuous empirical distribution as shown below:
The steps for generating a random variate X is as follows:
Step1: generate R~U( )
Step2: find the interval i in which R lies, i.e., .
Step3: compute X
Method 1: X = F-1(R)
(read X off the graph of cdf).