Data Science, Sampling, Statistics, Machine Learning, Artificial Intelligence.
In order to use rejection sampling, one needs to have a simple proposal distribution q(x) from which it is possible to draw samples. A constant k is also chosen so that the distribution k*q(x) always encloses, or covers the distribution p(x) for all x. We sample from the distribution k*q(x) and if