Solution

ID: past-exam-of-the-mathematics-course-of-the-university-of-cambridge/2022/ii/paper-4/28k/b/solution

In one proposal of rejection sampling, the probability of both proposing a value in and accepting it is
Integrating shows that the acceptance probability is . Conditional on acceptance, the density of the proposed value is therefore
Each unsuccessful proposal restarts independently, so the eventual output has the same conditional density:

New to topics? Read the docs here!