Chapter 12: Q9SE (page 850)
In Example 12.5.6, we modeled the parameters \({\tau _1}, \ldots {\tau _\pi }\) as i.i.d. having the gamma distribution with parameters \({\alpha _0}\) , and \({\beta _0}.\) We could have added a level to the hierarchical model that would allow the \({\tau _\iota }\) 's to come from a distribution with an unknown parameter. For example, suppose that we model the \({\tau _\iota }\) 's as conditionally independent, having the gamma distribution with parameters \({\alpha _0}\) and \(\beta \) given \(\beta \). Let \(\beta \) be independent of \(\psi \) and \({\mu _1}, \ldots ,{\mu _p}\) with \(\beta \) having the prior distributions as specified in Example 12.5.6.
a. Write the product of the likelihood and the prior as a function of the parameters \({\mu _1}, \ldots ,{\mu _p},{\tau _1}, \ldots ,{\tau _\pi },\psi ,\) \(\beta \).
b. Find the conditional distributions of each parameter given all of the others. Hint: For all the parameters besides \(\beta \), the distributions should be almost identical to those given in Example 12.5.6. It wherever \({\beta _0}.\) appears, of course, something will have to change.
c. Use a prior distribution in which and \({\psi _0} = 170.\) Fit the model to the hot dog calorie data from Example 11.6.2. Compute the posterior means of the four \({\mu _i}'s\) and
\(1/{\tau _i}^\prime s.\)
Short Answer
(a) The product of the two functions uses parameters given in the exercise and the distribution of\(\beta .\)
(b) The conditional distribution of\(\beta .\)given all other parameters is gamma distribution.
(c) The estimated posterior means of\({\mu _i},i = 1,2,3,4\)are respectively,\(156.8,158.4,120.3,\)and\(160.1.\)
The estimated posterior means for the \(1/{\tau _i},i = 1,2,3,4\) are, respectively, \(494.9,609.4,545.6,\) and \(570.5.\)