
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!

22S:138, Bayesian Statistics
Fall 2003, Homework 1
Due: Mon., 9/8 in class
et al.
. The question of interest is whether
or not the woman is a carrier of the hemophilia gene.
(a) Use the information given in the section to determine
prior probabilities for the 2 possible “models”:
θ
= 1 (carrier) and
θ
(not carrier)
two different sets of likelihood probabilitiesUsing the notation from the section, for the
i
th son born to the woman,
y
i
= 0 indicates the son is not affected by hemophilia;
y
i
= 1 indicates
that he is affected. For each model, you will need:
P r
y
i
model
and
P r
y
i
model
(b) Suppose the woman has 3 sons.
None of them are identical twins, and we
will consider their hemophilia outcomes to be independent conditional onher carrier status. The 3 outcomes are (this is different from in the textbookexample):
y
1
y
2
y
3
Do a sequential Bayesian analysis in which you compute the posterior proba-bility that the woman is a carrier using the data from each son one-at-a-time.Either use the “bayes” function that we used in lab, or write out the requiredcalculations by hand. Make a table with columns for model, prior, likelihood,product, and posterior. Turn in printouts of your R output, or handwrittentables.
(c) Also answer the following questions:
What was the posterior probability that the woman was a carrier afterthe first son’s status became known?
Did the posterior probability change based on the data from the secondson? Why or why not?
Did the posterior probability change based on the data from the thirdson? Why or why not?
City:
(a) The probability that it rains both today and tomorrow is 0.2.(b) The probability that it rains today but not tomorrow is 0.1.
(c) The probability that it rains tomorrow but not today is 0.1. (d) The probability that it rains neither today nor tomorrow is 0.6.
Find the probability that:
(a) It will rain today.(b) It will rain at some time during today and tomorrow.
(c) It will rain tomorrow. (d) It rains tomorrow, given that it rains today.
et al.
Note: if you do not know what “fraternal”
and “identical” twins are, look it up or ask someone.
: The current population of the state of South Carolina is greater
than the current population of Monaco. Draft someone and use the “balls in anurn” calibration experiment (as was done in class on 8/23) to help that personassess his or her
). Report this probability to the nearest
18
, for example, by
concluding that
38
12
. Report who the person is. Give all your questions
and his or her answers.
If there are extenuating circumstances that affect your
answer, then please describe them. For example, the person might have left theroom during the process and — you suspect — consulted an encyclopedia.Note: If your partner is another student in the class, then one of you should useevent
as above and the other instead should consider event
: The average
weight of adult male emperor penguins is greater than 60 pounds.
OPTIONAL for undergrads and students in other majors.Do question 7 on p. 31 of Gelman
et al.