Write , and assume ; a uniform distribution on the region requires positive area. Set , , so the inverse transformation is , . Its Jacobian determinant has absolute value for . The region becomes , , and its area is
The original joint probability density function is therefore on . The change of variables formula gives
The boundary has probability zero, so division by causes no ambiguity for the resulting random variable.
Integrating out the second coordinate gives the probability density function of the marginal distribution
Thus the ratio has the normalized target probability density function. The factor from the Jacobian determinant is essential; merely transforming the rectangular coordinates as if they remained uniform would give a different probability density function. This is the basis of the ratio-of-uniforms method.
Here attains its maximum one at , so . For , put . Then . Its derivative is , so its maximum is at , with value .
For , is increasing and has maximum one. For , has logarithmic derivative , so its maximum is at , with value . Therefore the Laplace ratio-of-uniforms envelope has the finite bounds
These calculations establish finiteness and identify the tight axis-aligned bounds, rather than relying only on exponential tail decay.
Independently generate uniform on and uniform on , using the bounds above. Accept the proposal if
otherwise generate a fresh pair. On acceptance return . The bounding rectangle contains the entire ratio region: , and lies between the extrema of . Conditioning a uniform rectangle point on acceptance makes it uniform on , so the preceding marginal distribution calculation proves that the returned value has the desired Laplace distribution.
For this target , so the region has area two. The rejection sampling acceptance probability is
Endpoints have zero probability and can be excluded to avoid divisions by zero in implementation.

Articles by others on the same topic (0)

There are currently no matching articles.