Data Science, Sampling, Statistics, Machine Learning, Artificial Intelligence.
u*k*q(x(i)) < p(x(i)) accept the sample, here u is coming from a uniform distribution. Figure 2: illustration of rejection sampling. Image by G. Pilikos. Why might not work? Several problems can be faced when working with rejection sampling. First, since k controls the coverage of the proposal