Question: Let X1, . . . , Xn be i.i.d. with the normal distribution having mean μ and precision Ï . Gibbs sampling allows one to
a. Show that Table 12.8 specifies the appropriate conditional distribution for each parameter given the other.
b. Use the New Mexico nursing home data (Examples 12.5.2 and 12.5.3). Let the prior hyper parameters be α0 = 2, β0 = 6300, μ0 = 200, and γ0 = 6.35 à 104. Implement a Gibbs sampler to find the posterior distribution of (μ, Ï ). In particular, calculate an interval containing 95 percent of the posterior distribution of μ.
Table 12.8 Parameters and conditional distributions for Exercise 12
.png)
Paramete Prior times likelihood looks like the p.d.f. of this distribution gamma distribution with parameters Cto 0.5n2 normal distribution with mean (m) + ntr) /(r0+ nt) and precision
Step by Step Solution
3.32 Rating (164 Votes )
There are 3 Steps involved in it
0 should be the precision rather than the variance of the prior distribution of a T... View full answer
Get step-by-step solutions from verified subject matter experts
Document Format (1 attachment)
602-M-S-S-M (854).docx
120 KBs Word File
