I would like to sample from: $$ p(\theta_2|x)=\int p(\theta_2|\theta_1,x) . p(\theta_1|x) . d\theta_1 $$
Several persons suggest me to use the following procedure to draw $(\theta_2^i)_{i=1:N}$:
for i=1:N
draw $\theta_1^i$ from $p(\theta_1|x)$
draw $\theta_2^i$ from $p(\theta_2|\theta_1^i,x)$
this appears intuitively satifying but I do not see how to show that this procedure is valid. It appears to be linked to Rao-Blackwellisation but it is not clear to me. Thanks for your help.
(this question is linked to an older one that I posted Sampling from marginal using integrated conditional)