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

Other questions on the subject: Mathematics

image
Mathematics, 21.06.2019 14:20, darkmayem
James wants to promote his band on the internet. site a offers website hosting for $4.95 per month with a $49.95 startup fee. site b offers website hosting for $9.95 per month with no startup fee. for how many months would james need to keep the website for site a to be a better choice than site b? will mark the
Answers: 1
image
Mathematics, 21.06.2019 16:00, allieballey0727
Graph the equation by plotting point x=2
Answers: 1
image
Mathematics, 21.06.2019 18:30, issagirl05
Find the exact value of each of the following. in each case, show your work and explain the steps you take to find the value. (a) sin 17π/6 (b) tan 13π/4 (c) sec 11π/3
Answers: 2
image
Mathematics, 21.06.2019 23:30, tyresharichardson29
Ahighway between points a and b has been closed for repairs. an alternative route between there two locations is to travel between a and c and then from c to b what is the value of y and what is the total distance from a to c to b?
Answers: 1
You know the right answer?
Sample survey: Suppose we are going to sample 100 individuals from a county (of size much larger tha...

Questions in other subjects:

Konu
Mathematics, 07.04.2021 21:50