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 . HenceThus 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 givesSolving these two equations for givesGenerate 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
There are currently no matching articles.