I'm trying to understand how to estimate the parameter vector $\mathbf{\theta} = (\theta_1,\theta_2, \theta_3)$ of a model using the MH algorithm.
I am given a joint posterior density:
$p(\mathbf{\theta}, \alpha | y) \propto \alpha^n e^{\left(-\alpha f(\mathbf{\theta})\right)}$
I am also given two conditional posterior distributions:
- $p_{1}(\alpha|\theta,y) \propto IG(n,f(\theta))$
- $p_{2}(\theta|y) \propto f(\theta)^{-n}$
Where $f(\theta)$ is always the same function (cannot sample from it directly) which depends on $(\theta_1, \theta_2, \theta_3)$. Also, the parameter $\alpha$ is of no interest.
This is how I'm implementing the algorithm (the proposal $q$ is a multivariate Gaussian distribution):
$\theta^* \sim \mathcal{N}(\theta^{i-1}, \Sigma)$
$p = \min \left( \frac{p_2(\theta^*|y) q(\theta^{i-1}|\theta^*)}{p_2(\theta^{i-1}|y) q(\theta^*|\theta^{i-1})},1 \right) $
accept $\theta^*$ with probability $p$.
Where $q(\theta^{i-1}|\theta^*)$ is the density of the multivariate Gaussian distribution centered at $\theta^*$.
Question : am I supposed to be using the conditional posterior density $p_2$ for this step or should I use the joint posterior density? What is the logic behind this? So far the book examples I've seen use the joint posterior, but this is my first try with conditional posteriors (in non standard form) so I'm not sure I understand the logic.
Question 2 : should I be sampling from my proposal all at once or should I make a decision for each individual $\theta_i$?
Question 3 : should I be using the joint posterior somewhere ? Or is it needed to obtain the conditional posteriors only?