
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 StatisticsFall 2003, Homework 3 Due: Mon. 9/221. Comment on whether your results in part 4 of last week’s homework are robustto prior specifications.2. (problem from Johnson and Albert) In 1986, the St.
Louis Post Dispatch
was interested in measuring public support for the construction of an indoorstadium.^ The newspaper conducted a survey in which they interviewed 301registered voters. In ths sample, 135 voters opposed the construction of a newstadium. Let^ p^ denote the proportion of all registered voters in the St. Louisvoting district opposed to the stadium.Suppose a city councilman wants to increase the city sales tax to pay for theconstruction of the new stadium. She claims that under half of the registeredvoters are opposed to stadium construction. She would like to use the samplesurvey data of the newspaper to test the two hypotheses:
H:^ p^ ≥^.^50 H:^ p^ <^.^5 a^ (a) A frequentist method of testing these hypotheses is based on the p-value.The p-value is the probability of observing the sample result obtained, orsomething more extreme, if indeed exactly half of the registered votersin St. Louis were opposed to construction; that is,
p^ −^ value^ =^ P r(y
≤^135 |p^ =^ .5) where^ y^ is a binomial random variable with sample size
n^ = 301 and
success probability
p^ = 0.5. Compute the p-value for this example (use of an S+ function will make this easy). If this probability is small, thenone concludes that there is significant evidence in support of hypothesis H:^ p^ <^ .5.a^ (b) Now consider a Bayesian approach to testing these hypotheses. Supposethat a uniform prior is assigned to
p. Find the posterior distribution of p^ and use it to compute the posterior probabilities of
Hand^ H.^0
p, and that from a random sample of 301 voters, 135 oppose construction of a new stadium.
Also suppose that the newspaper plans on taking a new survey of 20 voters.
∗^ Let ydenote the number in this new sample who oppose construction.(a) Find the posterior predictive probability that
∗^ y= 8. (Use one of the S+ functions that I wrote and that were introduced in lab.)
(b) Find the 90% prediction interval for
∗ y. Do this by finding the predictive
probabilities for each of the possible values of
∗^ yand ordering them from largest probability to smallest.
Then keep adding the most probable ∗^ values yinto the probability set until the total probability exceeds .90for the first time.4. (REQUIRED for stats and biostats grad students; OPTIONAL for undergradsand students in other majors.)
Referring to the previous problem, suppose more generally that the newspaper plans on taking a new survey of
∗^ nvoters.
Find the formula for the posterior predictive probability of
∗^ ysuccesses in a ∗sample of size n (still conditioning on the uniform prior and the results of the first survey). [Hint: You will need to compute the integral of the kernelof a beta density. Look at the expression for the normalized beta density, andrecall that it has to integrate to 1. The predictive probability that you needcan be expressed as a ratio involving some functions.]