For , use the unnormalized normal density . Its ratio region is
The bound on is one because is maximized at zero. To bound , maximize for . Its derivative vanishes at , giving . Thus the normal ratio-of-uniforms envelope is , .
Draw independent , set and , and accept precisely when
returning . Equivalently compare logarithms to avoid underflow. Since , the region area is and the rectangle area is . Therefore
It is independent of the normal scale. In the diagram the vertical coordinate is normalized by , so the same shape works for every positive scale.
Figure 1.
Normal ratio-of-uniforms region and its minimum axis-aligned rejection rectangle
. Details.

Articles by others on the same topic (0)

There are currently no matching articles.