Why use envelope function for rejection sampling?

by izhak   Last Updated March 14, 2019 20:19 PM - source

What is the purpose of envelope function?

Say, for single random variable, why can't we just sample x coordinate and y coordinate (representing probability) and reject all those y's which lay above the curve?

Tags : sampling


Answers 1


How do you propose sampling $y$? You take a sample from some other distribution $q$. What happens if $q(x) < p(x)$ where p is the desired distribution? You cannot have an acceptance ratio greater than one and so the samples would not be distributed according to $p$.

Thus you need a function $q$ where $q$ is greater than $p$ for all $x$ but is close to $p$ so as to minimise rejection. This might then resemble an envelope.

Oxonon
Oxonon
October 20, 2016 22:25 PM

Related Questions




Additional sample after simple random sampling

Updated May 24, 2018 17:19 PM

when and where need deep stratification?

Updated February 21, 2019 02:19 AM