subject
Mathematics, 02.06.2021 20:20 maddiem5027

Sample survey: Suppose we are going to sample 100 individuals from a county (of size much larger than 100) and ask each sampled person whether they support policy Z or not. Let Y_i = 1 if person i in the sample supports the policy, and Y_i = 0 otherwise. a) Assume Y_1, ..., Y_100 are, conditional on theta, i. i.d. binary random variables with expectation theta. Write down the joint distribution of Pr(Y_1 = y_1, ..., Y_100 = y_100|theta) in a compact form. Also write down the form of Pr (sigma Y_i = y| theta).
b) For the moment, suppose you believed that theta elementof {0.0, 0.1, ..., 0.9, 1.0}. Given that the results of the survey were sigma^100 _i = 1 Y_i = 57, compute Pr (sigma Y_i = 57|theta) for each of these 11 values of theta and plot these probabilities as a function of theta.
c) Now suppose you originally had no prior information to believe one of these theta-values over another, and so Pr(theta = 0.0) = Pr(theta = 0.1) =... = Pr(theta = 0.9) = Pr(theta = 1.0). Use Bayes' rule to compute p{theta| sigma^n _i = 1 Y_i = 57) for each theta-value. Make a plot of this posterior distribution as a function of theta.
d) Now suppose you allow theta to be any value in the interval [0, 1]. Using the uniform prior density for theta, so that p(theta) = 1, plot the posterior density p(theta) times Pr(sigma^n _i = 1 Y_i = 57|theta) as a function of theta.
e) As discussed in this chapter, the posterior distribution of theta is beta(1 + 57, 1 + 100 - 57). Plot the posterior density as a function of theta. Discuss the relationships among all of the plots you have made for this exercise.

ansver
Answers: 1

Another question on Mathematics

question
Mathematics, 21.06.2019 18:00
In the polynomial below, what number should replace the question mark to produce a difference of squares? x2 + ? x - 36
Answers: 3
question
Mathematics, 21.06.2019 20:20
Recall that the owner of a local health food store recently started a new ad campaign to attract more business and wants to know if average daily sales have increased. historically average daily sales were approximately $2,700. the upper bound of the 95% range of likely sample means for this one-sided test is approximately $2,843.44. if the owner took a random sample of forty-five days and found that daily average sales were now $2,984, what can she conclude at the 95% confidence level?
Answers: 1
question
Mathematics, 21.06.2019 23:20
This graph shows which inequality? a ≤ –3 a > –3 a ≥ –3 a < –3
Answers: 1
question
Mathematics, 22.06.2019 04:00
Sarah needs 3 feet of fabric for a project she is working on, but the store only sells the fabric in meters. one meter of fabric costs $1.20. how much will the fabric cost?
Answers: 2
You know the right answer?
Sample survey: Suppose we are going to sample 100 individuals from a county (of size much larger tha...
Questions
question
Mathematics, 08.02.2022 01:00
question
Mathematics, 08.02.2022 01:00
question
Mathematics, 08.02.2022 01:00
Questions on the website: 13722367