4 Feb, 2016
We want to obtain samples from $p(\theta)$. We first choose an envelop function $q$, and $M\gt 1$ such that $p(\theta)\lt M q(\theta)$, $\forall \theta$.
continue
$:=$ TRUE
continue
continue
$:=$ FALSE
Issues with rejection sampling include (1) choosing $M$ and (2) choosing $q(\theta)$. We can choose $M^* = \underset{\theta}{max} \frac{p(\theta)}{q(\theta)}$.