Solution

ID: past-exam-of-the-mathematics-course-of-the-university-of-cambridge/2006/iii/paper-47/3/a/solution

For rejection sampling, independently generate a proposal with density and a uniform on . Accept if ; otherwise generate a fresh independent pair and repeat. Set the ratio to zero on where necessarily . The envelope condition makes the acceptance threshold at most one.
For any measurable set , a single attempt satisfies
Taking the whole space shows that acceptance has probability . Conditioning on acceptance therefore gives density . Repeating rejected independent attempts preserves that conditional law and terminates almost surely; the number of attempts is geometric with mean .
For fixed proposal density, admissibility requires under the pointwise convention in the question. Since decreases with , the smallest valid envelope gives the greatest acceptance probability:
For densities specified only almost everywhere, replace the supremum by the essential supremum. Integration of the envelope also gives .

New to topics? Read the docs here!