Solution

ID: past-exam-of-the-mathematics-course-of-the-university-of-cambridge/2003/iii/paper-43/1/a/i/solution

Assume the target probability density function is supported where the proposal probability density function is positive and that the envelope constant is finite. Any satisfies , and integration gives . For each attempt draw independently and . Accept if ; otherwise discard it and repeat. Independent attempts give independent accepted values. A finite pre-generated list of independent proposal draws can be screened with independent uniforms in the same way, though the number retained is random. If , this fixed-envelope rejection sampling method cannot be used with that proposal.

New to topics? Read the docs here!