## The Mathematics Behind: Rejection Sampling

Suppose that we have a probability density function (PDF) $f(x)$ that is impossible to analyze analytically. How can we ever draw samples from this PDF? Luckily, there are many techniques out there and this time I will highlight rejection sampling. A simple to implement (but not always effective) sampling method.