Use the quantile function for , so a strictly increasing CDF is not required. For any real , the quantile event agrees, up to endpoint null sets, with . Hence
Thus has distribution function and probability density function . This proves inverse transform sampling, including a probability density function with intervals on which the CDF is constant.
Integration of the Laplace distribution probability density function gives
Solving these two equations for gives
Generate one uniform and return this piecewise expression. The branches agree at and the inverse transform sampling proof establishes the target law without any rejection step.

Articles by others on the same topic (0)

There are currently no matching articles.