Docsity

Bayesian Statistics - Practice Problems for Final Exam | 22S 138, Exams of Statistics

Toggle sidebar
bg1
Name: ______________________________________
Bayesian Statistics, 22S:138
Fall 2007, Instructor: Cowles
Final exam
PRACTICE PROBLEMS for 2008 FINAL EXAM
Show any computations that you carry out.
1. The Hum ane Society of the United States reports the following statistics regarding dog
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?
2. For each of the following cases, name the family of distributions (e.g. beta, binomial,
gamma, normal, poisson) that is most likely to be appropriate for the first stage of a
Bayesian 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.
3. Consider a model in which the likelihood is
y|β∼Exponential(β)
1
and the prior is
β∼Gamma(2,5)
(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 distributions
from the textbook.)
(b) Is the Gamma the conjugate prior family for the Exp onential 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.
4. A sample of size 20 was drawn from a population of adult men from a particular de-
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 125
mmHg, 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 to
test the hypotheses:
H0:µ >= 125
H1:µ < 125
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 H0= 0
ii. implies that the prior odds in favor of H0= 0.5
2
pf3

Partial preview of the text

Download Bayesian Statistics - Practice Problems for Final Exam | 22S 138 and more Exams Statistics in PDF only on Docsity!

Name: ______________________________________

Bayesian Statistics

, 22S:

Fall 2007, Instructor: Cowles

Final exam

PRACTICE PROBLEMS for 2008 FINAL EXAM

Show any computations that you carry out.

  1. The Humane Society of the United States reports the following statistics regarding dog

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?

  1. For each of the following cases, name the family of distributions (e.g.

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.

  1. Consider a model in which the likelihood is

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.

  1. A sample of size 20 was drawn from a population of adult men from a particular de-

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:

H

0

μ >

H

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

H

0

ii. implies that the prior odds in favor of

H

0

iii. implies that the prior odds in favor of

H

0

iv. contains no information about the prior odds in favor of

H

0

(b) Based on the WinBUGS output, what is the estimated posterior probability of

H

0

(numeric value)?

(c) What is the Bayes factor in favor of

H

0

vs.

H

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.