Minimum of Two Exponential
Last updated
Last updated
Suppose we want to simulate pseudo random numbers from the following distribution, which I came across in r - Finding a way to simulate random numbers for this distribution - Cross Validated,
where and .
Xi'an provided a very elegant solution.
Note that
the distribution is the distribution of
since
Thus, the R code to simulate is simple to be