Rejection Sampling

Creator
Creator
Seonglae Cho
Created
Created
2024 Oct 22 23:55
Editor
Edited
Edited
2025 Apr 29 2:6
Refs
Refs

Using proxy distribution qq to sample target distribution pp.

When we can calculate p values but it's difficult to sample from the entire p distribution
A technique that draws samples from a proposal distribution and determines the final sample based on evaluating the validity of these samples. Only assumption is that you know how to sample a density qq such that pMqp \le Mq where MM is a known constant.
  1. Sample XX' from q
  1. Sample UU(0,1) U \sim \mathcal{U}(0,1)
  1. If U<p(X)Mq(X)U\lt \frac{p(X')}{Mq(X')}, accept XX' else go back to 1 (
    Importance sampling
    like approach but only for criteria)
On average, MM iterations needed to obtain one point sampled from ff. MM is better to be smaller.
Because the acceptance probability α\alpha is
α=p(x)Mq(x)dx=1M,\alpha = \int\frac{p(x)}{Mq(x)}dx =\frac{1}{M},
on average you need 1α=M\frac{1}{\alpha} = M iterations to obtain one accepted samples.
 
 
 
 

Recommendations