Exponential Distribution - Generate a fairly hefty data set X that is approximately exponentially distributed with μ = 0.7.

84 Views Asked by At

I encountered a question in one of the books, which asked to generate a fairly hefty data set X that is approximately exponentially distributed with μ = 0.7.

I can do it for approximately normally distributed, but could not think how to do it for approximately exponentially distributed.

Does anyone know about it ?

1

There are 1 best solutions below

4
On

If you can generate a Uniform $[0,1]$ random variable $U$, then $-0.7 \log(U)$ has an exponential distribution with $\mu = 0.7$.