Docsity

Practice Problems with Solution - Bayesian Statistics - Fall 2007 | 22S 138, Exams of Statistics

Toggle sidebar
bg1
Name:
Bayesian
Statistics,
22S:138
Fall
2lJ07,
Instructor:
Cowles
Final exam
PRACTICE
PROBLElIS
for 2008
FINAL
EXAM
Show any computations
that
you carry out.
I.
The
Humane
Society of
the
United
States
reports
the
following
statistics
regarding dog
ownership in the U.S.:
f'f"
("0)
~
.f
• Four in
ten
(or 40,000,000) honseholds own
at
least one dog.
• 63% of households
with
dogs have only one dog.
(I?
24%
of
households with dogs have two dogs.
~«"
g.
1>
~
.2-""
13% of households with dogs have
three
or
more dogs.
Pi"
3
....
I
C»
:;./3
(a)
What
is
the
probability
that
a household selected
at
random
from among all U.S.
households will own two or more dogs?
fr
()+-).,.
(Y-
[..2+
[1;)
fr
(t»
~
(;llf+.
Jj)(V)
r,
,l'
2.
For each
of
the
following cases,
name
the
family
of
distribntions (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
justi\)'
your
choice.
(a) A random sample of 100 households
in
Iowa is selected, and the variable
11le~ured
on each household
is
how many neople live in the household.
f~
-~~Iv~~~
~
4--V-
JIlA"n.~
_
...
r .
(b) A random sample
of
25 Illinois counties
is
selected,
a.nd
the variable
mea.')ured
on
each
county is what proportion
of
children under age
18
are covered
by
health insnrance.
r1.tiv
-
~
~~~IJ-~
~~~/
(c) A random sample of registered voters in Iowa is selected, and the survey question
-~""~~~
3.
Consider a model
inlrh
the
Iikel~
~~.
Y
16
-
Exponential
((3)
~J
~e.
f(JI~)~
-
~(3
,2-1
p e
~(~)oC
and the prior is
(3
~
Gamma(2,5)
(a)
Find
the
posterior
distribution
of
fJ
if
the
data
is
a single observation, y = 8. (Use
the
parameterization of the Exponential distribution
gi~n
in the table
of
distributions
from
the
textbook.)
~
g _
S""
C3
f((.~/J).l'
(3e-~
!:~e~
;
(3
e.
~l3J
/3)
(b) Is
the
Gamma
the
conjugate
prIOr famIly for
the
ExponentIal hkellhood? JustIfy , /
/.
~'''M''~'j"'~~
~~
1f)
VL-l
(c)
1!::u,e;:;;;;;;::::;o
the
Expone~
. I
I~Od
t::::at:::::::W:'Ch
it
is
proportional, and, i ossible, identify t
as
a member of a pa.rametric family.
~
~'
t...L'
£"~-r1j
-r;
((3)
eo
7s~
fAvL
J..._
~
()
c;:-
(3
&./J
:
~
.j
f
(3
~
-VI(/J -..l-
tJ.,).
t....,L
_J-
-1.
.
~
M {O
0'
~).-;.
(S2.
~
{,4J./~
;,.I
I.J
4.
~
sample of size 20 was
drawn
from a
population
of
adult
men from a
particular
d.,.
mographic group, and systolic blood pressure was
mea.')ured
011 each man
in
the sample.
Suppose it was known
that
the
typical systolic blood pressure for all
adult
males is 125
mmHg, and
t.he
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
hypot.heses:
H o:
II.
>=
125
HI:
J1.
< 125 . NI 0.5
~~)
See
the
WinBUGS code
and
output
on
the
last
two pages.
.W)
~
.J
(a)
The
prior specified
on
J1.
(circle one):
i.
implies that thc prior odds in favor
of
H 0 =0
ii. implies that the prior odds in favor
of
H o = 0.5
~~
2
~~
~
,S'.)
~~prY
1
r*'
~-7\
.b
-1
pf3

Partial preview of the text

Download Practice Problems with Solution - Bayesian Statistics - Fall 2007 | 22S 138 and more Exams Statistics in PDF only on Docsity!

Name:

Bayesian Statistics, 22S: Fall 2lJ07, Instructor: Cowles Final exam PRACTICE PROBLElIS for 2008 FINAL EXAM

Show any computations that you carry out.

I. The Humane Society of the United States reports the following statistics regarding dog ownership in the U.S.:

f'f" ("0) ~. f

  • Four in ten (or 40,000,000) honseholds own at least one dog.

• 63% of households with dogs have only one dog. (I?

24% of households with dogs have two dogs. ~«" g. 1> ~^ .2-""

13% of households with dogs have three or more dogs. Pi" 3 .... I^ C»^ :;./

(a) What is the probability that a household selected at random from among all U.S. households will own two or more dogs?

fr ()+-).,. (Y- [..2+ [1;) fr (t» ~ (;llf+.^ Jj)(V)^ r,^ ,l'

  1. For each of the following cases, name the family of distribntions (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 justi)' your choice.

(a) A random sample of 100 households in Iowa is selected, and the variable 11le~ured on each household is how many neople live in the household.

f~ -~~Iv~~~

~4--V- JIlA"n.~_ ... r.

(b) A random sample of 25 Illinois counties is selected, a.nd the variable mea.')ured on each county is what proportion of children under age 18 are covered by health insnrance.

r1.tiv - ~ ~~~IJ-~

(c) **A random sample of registered voters in Iowa is selected, and the survey question** ## 3. Consider a model inlrh the Iikel~ ~~. #### Y 16 - Exponential ((3) ~J ~e. ## f(JI~)~ - ~( **,2-** ## p ## e ## ~(~)oC **and the prior is** ##### (3 ~ Gamma(2,5) #### (a) Find the posterior distribution of fJ if the data is a single observation, y = 8. (Use the **parameterization of the Exponential distribution** gi~n **in the table of distributions** from the textbook.) ~ g _ S"" C ## f((.~/J).l' (3e-~ !:~e~ ## ; (3 e. ## ~l3J /3) (b) Is the Gamma the conjugate prIOr famIly for the ExponentIal hkellhood? JustIfy , / /. ## ~'''M''~'j"'~~~~ 1f) VL-l ## (c) 1!::u,e;:;;;;;;::::;o the Expone~. I I~Od t::::at:::::::W:'Ch ##### it is proportional, and, i ossible, identify t as a member of a pa.rametric family. ~ ~' _t...L'_ £"~-r1j -r; ((3) eo 7s~ **_fAvL_** **J..._** ~ () c;:- ( ## &./J : ~ .j f (3 ~ -VI(/J - ..l ### tJ.,). t....,L _J- -1.. ~ M {O 0' ~).-;. **_(S2._** ~ {,4J./~ _;,.I I.J_ 4. ~sample of size 20 was drawn from a population of adult men from a particular d.,. **mographic group, and systolic blood pressure was mea.')ured 011 each man in the sample.** Suppose it was known that the typical systolic blood pressure for all adult males is 125 **mmHg, and t.he 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 hypot.heses: ##### H o : II. >= 125 ##### HI: J1. < 125 ## . N I 0.5 ~~) ## See the WinBUGS code and output on the last two pages. .W) ~ .J (a) The prior specified on _J1._ (circle one): #### i. implies that thc prior odds in favor of H 0 = 0 ## ii. implies that the prior odds in favor of H o = 0.5 ~~ ## ~~ ~ ,S'.) ## ~~prY ## r*' ~-7\ **.b** 1 **iii. imulies that the prior odds in favor of** **_H._** ----^ ~rior **predictive** distribut~ ##### iv. contains no information about the prior odds in favor of Ho iv. a prior distribution ##### (b) Based ou the WiuBUGS outpnt, what is the estimated posterior probability of Ho v.^ none of the above ##### (numeric value)? ata values **_g_** **;rll** (i)~ **i. are treated as exchangeable** **_.A2ll_** (^) **ii. are not treated as exchangeable** (c) What is the Bayes factor in favor of _Ho_ vs. _HI_ (numeric value)? _(I_ -**. gl11) ::** (^) ~,'l~4- **iii.**^ **whether exchangeability was assumed cannot be determined from the informa. tion given** _L_ ##### (d) In a sampler iteration in which the value drawn for J1- was 123.8, the value of p. above .Ul '9t::';::':;:'iW'~U~' ""'00' ,- to~ _J:_ ##### ~circleone): ### C2:.JJ---I ##### ii. 0. iii. 0.8271 (^) v:...,~ ;.. - t:.- p,..., I!.~~.~. **iv. 1** v. **impossible to determine** ##### (e) Explain the meaning of the ,.... 950/,. posterior credibl ## u.:.J~ j ~~'"'. 0 ~tiL~ - • _-t1._ ~~ '%..A~/. L:.. J~. __ -VC;"'}_ ~ _L-_ f S-~ L.-o IA-.. **_(/11._**^ **_S"'_**^ **J**^ **_-:LtJ._**^ **_;ZS)._** ##### (f) The posterior .JI lvean^ U^ mu. y. new. Would this d~ m the WinBUGS 0. ##### how could it hap pen.? erence be expectedBriefly explain.. fr omutput the theoryIS slightly diff behi erent from that of f;!;!::!:!: JI% d-::1'"'J.. (,In,,Me",,,", '!~~ ~ i th /:'(mcleone)' ~ ##### .. ' e probabilit th. ##### u. the st andard deviation y at the of WiuBUGS th e posteriorsoftware has made an error dist 'b' **n utlOU of lll. a measure of the uncertainty in estimating the mean of the posterior distribution** ##### of J **iv. nOlle of the above** ##### (h) The valnes produced by WiuBUGS for the node y new over all sampler iterations **are draws froUl (circle one):** i. **a degenerate distribution ii. a posterior distribution** -~