Draw independent uniformly on , and set
This is the Box-Muller transform. The endpoint has probability zero; an implementation should avoid evaluating its logarithm.
For , , so has density . It is independent of the angle, which has a uniform distribution on , and their joint density is . Transforming to Cartesian coordinates divides by the polar-coordinate Jacobian , yielding
Thus the outputs are independent random variables with the standard normal distribution, proving the algorithm.

Articles by others on the same topic (0)

There are currently no matching articles.