Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Bayesian Stats: Analyzing Hierarchical Model - Nuclear Plant Failures Practice - Midterm 2, Exams of Statistics

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

Pre 2010

Uploaded on 03/10/2009

koofers-user-sc9
koofers-user-sc9 🇺🇸

10 documents

1 / 1

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Name: -------------------------------------------
Bayesian Statistics, 22S:138
Practice Problems for Midterm 2, 2006
Midterm 2, 2005
We have studied a hierarchical model for counts of the number of times that pupmps in
10 nuclear power plants failed. The attached WinBUGS code and output are for the same
data. The mo del 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.
1. Which line(s) of the WinBUGS code specify the first stage of the hierarchical model?
(Copy it or them here.)
2. Which line(s) of the WinBUGS code specify the second stage of the hierarchical
model? (Copy it or them here.)
3. Which (if any) of the parameters had almost no autocorrelation in their sampler
output?
4. What are the numeric estimates of the mean and standard deviation of the posterior
marginal distribution of theta[10]?
5. What is the 95% equal-tail credible set for the mean of the distribution from which
the failure rates of individual pumps are drawn? (Numeric answer)
6. Interpret what this credible set means (one or two sentences).
1
7. A question of interest might be the variability betweenfailure rates in different pumps,
or in other words, the variance of the distribution from which the failure rates of
individual pumps are drawn. Let’s refer to this variance as σ2
θ. Is it possible to
estimate the posterior distribution of σ2
θby monitoring any quantity inthe WinBUGS
model as given? (yes/no)
8. If your answer to the previous question was “yes,” explain how you would do it.
If your answer to the previous question was “no,” write the line or lines of WinBUGS
code that you would need to add to the model in order to get samples from the
posterior distribution of σ2
θ.
9. 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.
10. Derive the full conditional distribution of the parameter alpha based on the mo del
specification in the attached WinBugs code.
2

Partial preview of the text

Download Bayesian Stats: Analyzing Hierarchical Model - Nuclear Plant Failures Practice - Midterm 2 and more Exams Statistics in PDF only on Docsity!

Name: -------------------------------------------

Bayesian Statistics

, 22S:

Practice Problems for Midterm 2, 2006

Midterm 2, 2005

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.

  1. Which line(s) of the WinBUGS code specify the first stage of the hierarchical model?

(Copy it or them here.)

  1. Which line(s) of the WinBUGS code specify the second stage of the hierarchical

model? (Copy it or them here.)

  1. Which (if any) of the parameters had almost no autocorrelation in their sampler

output?

  1. What are the numeric estimates of the mean and standard deviation of the posterior

marginal distribution of

theta[10]

  1. What is the 95% equal-tail credible set for the mean of the distribution from which

the failure rates of individual pumps are drawn? (Numeric answer)

  1. Interpret what this credible set means (one or two sentences).
  1. A question of interest might be the variability between failure rates in different pumps,

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

σ

  1. θ^

Is it possible to

estimate the posterior distribution of

σ

2 θ^

by monitoring any quantity in the WinBUGS

model as given? (yes/no)

  1. If your answer to the previous question was “yes,” explain how you would do it.

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

σ

  1. θ^

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.

  1. Derive the full conditional distribution of the parameter

alpha

based on the model

specification in the attached WinBugs code.