Exponential Random Numbers

The basic rule relating two continuous probability distributions $f(y)$ and $w(x)$ is

\begin{displaymath}
f(y) dy = w(x) dx
\end{displaymath}

Let us assume a domain [0,1] in $y$ and $x$ and that the $y$ variable is uniformly distributed, $f(y) = 1$. Then

\begin{displaymath}
y(x) = \int_0^x dx' w(x')
\end{displaymath}

with the condition

\begin{displaymath}
y(1) = 1 = \int_0^1 dx' w(x')
\end{displaymath}

To get an exponential distribution set $ w(x) = exp(-x) $ and extend the domain to $\infty$ to get the transformation

\begin{displaymath}
y(x) = 1 - exp( -x )
\end{displaymath}

or

\begin{displaymath}
x = - ln( 1 - y )
\end{displaymath}



Michel Vallieres 2014-04-01