
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
Practice problems for midterm 2 in bayesian statistics, focusing on the analysis of a hierarchical model for the number of times pumps in nuclear power plants failed. Winbugs code, output, and plots to answer questions related to the first and second stage of the hierarchical model, autocorrelation of sampler output, estimates of the mean and standard deviation of the posterior marginal distribution of theta[10], the 95% equal-tail credible set for the mean of the distribution of failure rates, and the estimation of the variance of the distribution of failure rates. Students are also asked to identify true statements in a given list.
Typology: Exams
1 / 1
This page cannot be seen from the preview
Don't miss anything!
Name: -------------------------------------------
We have studied a hierarchical model for counts of the number of times that pupmps in10 nuclear power plants failed. The attached WinBUGS code and output are for the samedata. The model is exactly the same as the one we studied
except
for the prior on
alpha
Three samplers were run using different sets of initial values. WinBUGS history plots, auto-correlation plots, and BGR diagnostic plots, and density plots are given for the parameters α
,^ β
θ^1
,^ θ
10
, and
thetamean
. (The plots for the remaining
θ
’s are similar.) is shown. Use
the attached code, plots, and table of node statistics to answer the following questions.
(Copy it or them here.)
model? (Copy it or them here.)
output?
marginal distribution of
theta[10]
the failure rates of individual pumps are drawn? (Numeric answer)
or in other words, the variance of the distribution from which the failure rates ofindividual pumps are drawn.
Let’s refer to this variance as
σ
Is it possible to
estimate the posterior distribution of
σ
2 θ^
by monitoring any quantity in the WinBUGS
model as given? (yes/no)
If your answer to the previous question was “no,” write the line or lines of WinBUGScode that you would need to add to the model in order to get samples from theposterior distribution of
σ
Circle
all of the
true
statements in the following list:
(a) The numbers in the “MC error” column help us assess the accuracy of the esti-
mated posterior means. (b) In order to use the Gelman-Rubin convergence diagnostic, one must run more
than one chain. (c) In choosing initial values for an MCMC sampler, one must not look at the current
dataset being analyzed. (d) In this hierarchical model, the data from pumps numbered 2 to 10 play a role in
estimating
theta[1]
(e) High autocorrelation in MCMC sampler output causes the Markov chain to con-
verge slowly to its stationary distribution. (f) The Gelman Rubin diagnostic plot for
alpha
shows failure to converge because
not all of the lines are on top of each other.
alpha
based on the model
specification in the attached WinBugs code.