Sampling an exponential from a uniform

Given a uniform [0,1][0,1] variable UU, which transformation produces an Exp(λ)\text{Exp}(\lambda) sample?

Show hints (2)+
  1. Invert the CDF F(x) = 1 − e^(−λx).
  2. −ln U is exponential with rate 1.

Answer

Reveal answer →

X=−ln⁡UλX = -\dfrac{\ln U}{\lambda}

Create a free account to see the full worked solution and track your progress.

Interview format: Market Maker, Systematic & Data-Driven Trading

Related questions