You want samples from on (the Beta(2,2) density) using a Uniform(0,1) proposal. Find the smallest valid envelope constant , the acceptance rule and the acceptance probability. What changes if you only know the unnormalised density ?
Probabilistic models, Sampling methods
Level L2 Elementary. Length Medium. Nature Mat Mathematical.
What's being asked
Whether you can set up rejection sampling and compute its efficiency, and know that the normalising constant is not needed.
Key idea
Rejection sampling needs with for all . Draw , , accept if . The overall acceptance rate is , which is for a normalised .
Steps
- The proposal is on . We need everywhere. The maximum is at , giving . So .
- Acceptance rule: draw and . Accept if . At the ratio is 1, and at it is .
- Why it works: the point is uniform under the curve . We keep points under , so the kept have density proportional to .
- Acceptance probability: . So about one in three proposals is wasted.
- Unnormalised case: has maximum , so use and the same rule . The samples are identical. The acceptance rate is , the same as before.
- So the normalising constant is never needed. Only the ratio is used. In high dimensions grows exponentially and the acceptance rate collapses, which is why MCMC is used.
Common mistakes
- Choosing below the maximum of . The samples are then biased away from the middle: near , where , the acceptance chance is capped at 1, so the peak is under-sampled.
- Taking the acceptance rate to be instead of .
- Using an that is too large. It is still correct but wastes samples.
- Thinking the normalising constant of must be known.
How long your answer should be
Half a page; 4 minutes.
Last checked on 4 December 2026.
Read this
Previous in Probabilistic models: A coin has unknown heads probability with prior . After 10 tosses you see 7 heads and 3 tails. Find the posterior, the MLE, the MAP estimate and the posterior mean. What is the probability that the next toss is heads, and the probability that the next two tosses are both heads?
Next in Probabilistic models: How do you derive the evidence lower bound (ELBO), and what is the gap?