Bayesian – Bayesian Estimator Under Transformation of Parameters for Posterior Analysis

bayesianestimationinvarianceposterior

Suppose we have $x=(x_1,…,x_n)|\mu,\sigma^2\sim f(x_i|\mu,\sigma^2)$ $iid$, also let $\mu\sim p(\mu)$ and $\sigma^2\sim \pi(\sigma^2)$ be prior distributions. Here $f,p,\pi$ are generic distributions.
Then the posterior is
$$
p(\mu,\sigma^2|x)= c\times L(\mu,\sigma^2)p(\mu)\pi(\sigma^2),
$$

where $c$ is the normalizing constant and $L(\mu,\sigma^2)=f(x|\mu,\sigma^2)$
is the likelihood function. Suppose I want to estimate $\phi=\phi(\mu,\sigma^2)=\mu/\sigma^{3/2}$, what is the Bayesian estimator of $\phi$? Can I just compute
$$
E(\phi|x)=\int\int \phi\times p(\mu,\sigma^2)d\mu d\sigma^2.
$$

or, do I have to obtain the posterior distribution of $\phi$ first, then compute the posterior expectation of $\phi$? In which cases I can obtain Bayes' estimator of a function of the parameters directly from the joint posterior distribution of those parameters?

My doubt is due to the fact that the Bayesian estimator under quadratic loss (which is the posterior expectation) is not invariant under transformation. So, I would be glad if somebody could clarify this for me.

Best Answer

Let's say you want to estimate the posterior on $\phi$, you can do the following; $$ \begin{aligned} p(\phi \vert x) &= \int d\mu \int d\sigma^2 \ p(\phi, \mu , \sigma^2\vert x)\\ &= \int d\mu \int d\sigma^2\ p(\mu, \sigma^2 \vert x)p(\phi \vert \mu, \sigma^2)\\ &= \int d\mu \int d\sigma^2\ c L(\mu, \sigma^2)p(\mu)p(\sigma^2)\delta\left(\sigma^2 - \frac{\mu}{\phi}^{2/3}\right)\\ &= \int d\mu\ c L\left(\mu, \sigma^2=\frac{\mu}{\phi}^{2/3}\right)p(\mu)p\left(\sigma^2 = \frac{\mu}{\phi}^{2/3}\right), \end{aligned} $$ where $\delta(y)$ is the Dirac delta and $p(\phi \vert \mu, \sigma^2)$ is a Dirac delta because $\phi$ is a function of $\mu$ and $\sigma^2$. And based on that, the expected value of $\phi$ is given by $$ \begin{aligned} E(\phi \vert x) &= \int d\phi \ \phi p(\phi \vert x)\\ &= \int d\phi \ \phi \int d\mu\ \ c L\left(\mu, \sigma^2=\frac{\mu}{\phi}^{2/3}\right)p(\mu)p\left(\sigma^2 = \frac{\mu}{\phi}^{2/3}\right)\\ &= \int d\phi \ \phi\int d\mu d\sigma^2 \ p(\mu, \sigma^2\vert x)\delta\left(\phi -\frac{\mu}{\sigma^{3/2}}\right). \end{aligned} $$

You can see that the two methods you proposed are therefore equivalent. Of course, now the prior on $\phi$ is then completely controlled by the prior on $\mu$ and $\sigma^2$.

Related Question