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.