Docsity

Homework 10 - Bayesian Statistics | 22S 138, Assignments of Statistics

Toggle sidebar
bg1
22S:138, Bayesian Statistics
Fall 2003, Homework 1
Due: Mon., 9/8 in class
1. Refer to section 1.4 (pp. 9-11) in Gelman 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 θ= 0
(not carrier)
•two different sets of likelihood probabilities
Using the notation from the section, for the ith son born to the woman,
yi= 0 indicates the son is not affected by hemophilia; yi= 1 indicates
that he is affected. For each model, you will need:
P r(yi= 0|model)
and
P r(yi= 1|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 on
her carrier status. The 3 outcomes are (this is different from in the textbook
example):
y1= 0
y2= 1
y3= 0
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 required
calculations by hand. Make a table with columns for model, prior, likelihood,
product, and posterior. Turn in printouts of your R output, or handwritten
tables.
(c) Also answer the following questions:
•What was the posterior probability that the woman was a carrier after
the first son’s status became known?
•Did the posterior probability change based on the data from the second
son? Why or why not?
•Did the posterior probability change based on the data from the third
son? Why or why not?
1
2. (Question taken from Berry.) Suppose the following statements are true for Iowa
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.
3. Do question 6 on p. 31 of Gelman et al. Note: if you do not know what “fraternal”
and “identical” twins are, look it up or ask someone.
4. Consider event B: The current population of the state of South Carolina is greater
than the current population of Monaco. Draft someone and use the “balls in an
urn” calibration experiment (as was done in class on 8/23) to help that person
assess his or her P(B). Report this probability to the nearest 1
8, for example, by
concluding that 3
8≤P(B)≤1
2. 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 the
room during the process and — you suspect — consulted an encyclopedia.
Note: If your partner is another student in the class, then one of you should use
event Bas above and the other instead should consider event C: The average
weight of adult male emperor penguins is greater than 60 pounds.
5. This problem is REQUIRED for Statistics and Biostatistics grad students. It is
OPTIONAL for undergrads and students in other majors.
Do question 7 on p. 31 of Gelman et al.
2

Partial preview of the text

Download Homework 10 - Bayesian Statistics | 22S 138 and more Assignments Statistics in PDF only on Docsity!

22S:138, Bayesian Statistics

Fall 2003, Homework 1

Due: Mon., 9/8 in class

  1. Refer to section 1.4 (pp. 9-11) in Gelman

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?

  1. (Question taken from Berry.) Suppose the following statements are true for Iowa

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.

  1. Do question 6 on p. 31 of Gelman

et al.

Note: if you do not know what “fraternal”

and “identical” twins are, look it up or ask someone.

  1. Consider event

B

: 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

P

B

). Report this probability to the nearest

18

, for example, by

concluding that

38

P

B

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

B

as above and the other instead should consider event

C

: The average

weight of adult male emperor penguins is greater than 60 pounds.

  1. This problem is REQUIRED for Statistics and Biostatistics grad students. It is

OPTIONAL for undergrads and students in other majors.Do question 7 on p. 31 of Gelman

et al.