Solution

ID: past-exam-of-the-mathematics-course-of-the-university-of-cambridge/2001/iii/paper-33/1/b/solution

For normal rejection sampling with an exponential envelope, complete the square in the probability density function ratio:
The maximum occurs at , which lies in the support because . Thus
The PDF exponent is inside the square root; this distinction is lost in the converted TeX.
The acceptance rule simplifies to
An exponential proposal can be generated as from an independent uniform distribution value . Since the target is normalized, the overall acceptance probability is . To maximize it,
Therefore the optimal rate is , with acceptance probability .
Finally, give each accepted half-normal distribution value an independent fair sign and output . On each half-line its probability density function is half the reflected half-normal distribution probability density function:
Consequently . The sign must be drawn independently; rejection itself does not supply it.

New to topics? Read the docs here!