How to generate a random variable from exponential


Complete the following:

Q: Let F(t) = 1- e ^(- lamda*t)

a) Show how to generate a random variable from the exponential distribution function shown above. Show derivation of the equation.

b) Generate 10000 random variables X and Y with cumulative distribution F(t); do this twice using lambda =2,3 (so 2 columns of 10000 numbers each).

c) Using the equation from a) and the data from b) construct a graph(s) that confirms lambda is the values used (ie 2 and 3)

Solution Preview :

Prepared by a verified Expert
Basic Statistics: How to generate a random variable from exponential
Reference No:- TGS01902267

Now Priced at $25 (50% Discount)

Recommended (95%)

Rated (4.7/5)