3
$\begingroup$

This exercise comes from Koop's Bayesian Econometrics. Given $\theta$, the parameter(s) of a model (in this case $\theta$ is a scalar), $\tilde{\theta}$, the point estimate of $\theta$, and constants $c_1 > 0, c_2 > 0$, the goal of the exercise is to show that $\tilde{\theta} = E[\theta \mid y]$ minimizes the expected loss of the squared error function $C(\tilde{\theta}, \theta) = (\tilde{\theta} - \theta)^2$, where, to quote the book, "the expectation is taken with respect to the posterior of $\theta$", i.e. $\theta \mid y$.


Per this meta question, I'm including my solution as a separate answer, both for feedback on that solution and for other people to post their own solutions.

$\endgroup$
2
  • 1
    $\begingroup$ @Xi'an Thanks for pointing that out. [tag:self-study] can include questions that aren't homework, correct? I'm not a student, but I'm working through this book for something at work. $\endgroup$
    – Michael A
    Jan 28, 2016 at 21:17
  • $\begingroup$ The self-study tag includes homework-like questions such as this one. $\endgroup$
    – Sycorax
    Jan 28, 2016 at 21:24

1 Answer 1

2
$\begingroup$

This is my solution:

\begin{align} \cfrac{\partial}{\partial \tilde{\theta}} E_{\theta \mid y} \left[ C(\tilde{\theta}, \theta) \mid y\right] &= \cfrac{\partial}{\partial \tilde{\theta}} E_{\theta \mid y} \left[ (\tilde{\theta} - \theta)^2 \mid y\right] \\ &= \cfrac{\partial}{\partial \tilde{\theta}} E_{\theta \mid y} \left[ (\tilde{\theta}^2 - 2 \tilde{\theta} \theta + \theta^2 ) \mid y\right] \\ &= \cfrac{\partial}{\partial \tilde{\theta}} \left (E_{\theta \mid y} \left[ \tilde{\theta}^2 \mid y \right] - 2 \tilde{\theta} E_{\theta \mid y} \left[ \theta \mid y \right] + E_{\theta \mid y} \left[ \theta^2 \mid y \right] \right) \\ &= \cfrac{\partial}{\partial \tilde{\theta}} \left( \tilde{\theta}^2 - 2 \tilde{\theta} E_{\theta \mid y} \left[ \theta \mid y \right] + E_{\theta \mid y} \left[ \theta^2 \mid y \right] \right) \\ &= 2 \tilde{\theta} - 2 E_{\theta \mid y} \left[ \theta \mid y \right] \end{align}

Setting this equal to zero gives the critical value $\tilde{\theta} = E_{\theta \mid y} \left[ \theta \mid y \right]$. Since

\begin{equation} \frac{\partial^2}{\partial^2 \tilde{\theta}} E_{\theta \mid y} \left[ C(\tilde{\theta}, \theta) \mid y\right] = \frac{\partial}{\partial \tilde{\theta}} \left( 2 \tilde{\theta} - 2 E_{\theta \mid y} \left[ \theta \mid y \right] \right) = 2 > 0 \end{equation} this critical value is a minimum. Feedback on this solution, and other solutions, are welcome.

$\endgroup$
2
  • 1
    $\begingroup$ This is a correct solution, if missing the second order condition. You can however avoid derivatives by decomposing $E_{\theta \mid y} \left[ (\tilde{\theta} - E\theta)^2 \mid y\right]$ as $$E_{\theta \mid y} \left[ (\tilde{\theta} - E_{\theta \mid y}[\theta|y])^2 \mid y\right] +E_{\theta \mid y} \left[ (E_{\theta \mid y}[\theta|y] - \theta)^2 \mid y\right]$$by virtue of the Pythagorean Theorem. $\endgroup$
    – Xi'an
    Jan 28, 2016 at 21:11
  • 1
    $\begingroup$ @Xi'an Whoops, you're right, I left out the second-order condition. I added it. $\endgroup$
    – Michael A
    Jan 28, 2016 at 21:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.