

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


Name: ______________________________________
Bayesian Statistics
Fall 2007, Instructor: Cowles
Final exam
PRACTICE PROBLEMS for 2008 FINAL EXAM
Show any computations that you carry out.
ownership in the U.S.:
Four in ten (or 40,000,000) households own at least one dog.
63% of households with dogs have only one dog.
24% of households with dogs have two dogs.
13% of households with dogs have three or more dogs.
(a) What is the probability that a household selected at random from among all U.S.
households will own two or more dogs?
beta, binomial,
gamma, normal, poisson) that is most likely to be appropriate for the first stage of aBayesian model (if you do not transform the variable in any way).
Briefly justify your
choice.
(a) A random sample of 100 households in Iowa is selected, and the variable measured
on each household is how many people live in the household.
(b) A random sample of 25 Illinois counties is selected, and the variable measured on each
county is what proportion of children under age 18 are covered by health insurance.
(c) A random sample of registered voters in Iowa is selected, and the survey question
asked of each voter is whether or not he/she plans to attend his/her precinct caucus.
y
β
Exponential
β
and the prior is
β
Gamma
(a) Find the posterior distribution of
β
if the data is a single observation,
y
= 8. (Use the
parameterization of the Exponential distribution given in the table of distributionsfrom the textbook.)
(b) Is the Gamma the conjugate prior family for the Exponential likelihood?
Justify
your answer in one sentence.
(c) Find the Jeffreys prior for the Exponential likelihood. Write an expression to which
it is proportional, and, if possible, identify it as a member of a parametric family.
mographic group, and systolic blood pressure was measured on each man in the sample.Suppose it was known that the typical systolic blood pressure for all adult males is 125mmHg, and the researchers wish to determine whether the population mean for the par-ticular demographic group is above or below that value. That is, the researchers wish totest the hypotheses:
0
μ >
1
μ <
See the WinBUGS code and output on the last two pages.
(a) The prior specified on
μ
(circle one):
i. implies that the prior odds in favor of
0
ii. implies that the prior odds in favor of
0
iii. implies that the prior odds in favor of
0
iv. contains no information about the prior odds in favor of
0
(b) Based on the WinBUGS output, what is the estimated posterior probability of
0
(numeric value)?
(c) What is the Bayes factor in favor of
0
vs.
1
(numeric value)?
(d) In a sampler iteration in which the value drawn for
μ
was 123.8, the value of
p.above
would be (circle one):
i. 0 ii. 0. iii. 0.8271iv. 1
v. impossible to determine
(e) Explain the meaning of the 95% posterior credible set for
σ
(f) The posterior mean of
mu
in the WinBUGS output is slightly different from that of
y.new
. Would this difference be expected from the theory behind the model? If not,
how could it happen? Briefly explain.
(g) The MC error for
μ
is (circle one):
i. the probability that the WinBUGS software has made an error ii. the standard deviation of the posterior distribution of
μ
iii. a measure of the uncertainty in estimating the mean of the posterior distribution
of
μ
iv. none of the above
(h) The values produced by WinBUGS for the node
y.new
over all sampler iterations
are draws from (circle one):
i. a degenerate distribution ii. a posterior distribution
iii. a posterior predictive distributioniv. a prior distribution
v. none of the above
(i) In this model, the 20 data values
i. are treated as exchangeable ii. are not treated as exchangeable iii. whether exchangeability was assumed cannot be determined from the informa-
tion given
(j) Explain the meaning of the quantity
pD
at the end of the WinBUGS output.