(Answered)-8.3 Hierarchical modeling: The files school1.dat through school8.dat give weekly hours spent on...

Description

Solution download


Question

8.3 Hierarchical modeling: The files school1.dat through school8.dat give weekly hours spent on homework for students sampled from eight different schools. Obtain posterior distributions for the true means for the eight different schools using a hierarchical normal model with the following prior parameters: µ0 = 7, ?2 0 = 5, t 2 0 = 10, ?0 = 2, s2 0 = 15, ?0 = 2 . a) Run a Gibbs sampling algorithm to approximate the posterior distribution of {?, s2 , µ, t 2}. Assess the convergence of the Markov chain, and find the effective sample size for {s 2 , µ, t 2}. Run the chain long enough so that the effective sample sizes are all above 1,000. b) Compute posterior means and 95% confidence regions for {s 2 , µ, t 2}. Also, compare the posterior densities to the prior densities, and discuss what was learned from the data. c) Plot the posterior density of R = t 2 s2+t 2 and compare it to a plot of the prior density of R. Describe the evidence for between-school variation. d) Obtain the posterior probability that ?7 is smaller than ?6, as well as the posterior probability that ?7 is the smallest of all the ?’s. e) Plot the sample averages ¯y1, . . . , y¯8 against the posterior expectations of ?1, . . . , ?8, and describe the relationship. Also compute the sample mean of all observations and compare it to the posterior mean of µ

 

Solution ID:10137832 | Question answered on 16-Oct-2016

Price : $14.649999999999999
SiteLock

Order New Solution. Quick Turnaround

Click on the button below in order to Order for a New, Original and High-Quality Essay Solutions. New orders are original solutions and precise to your writing instruction requirements. Place a New Order using the button below.

Order Now