+4/9 points| Previous Answers My Notes Ask Your Teacher 0 we wish to determine t
ID: 3314709 • Letter: #
Question
+4/9 points| Previous Answers My Notes Ask Your Teacher 0 we wish to determine the unknown probability p, that a voter supports the controversial tulip proposal, we wish to estimate p, we take a random sample of n=3100 voters, x=1331 of these voters support the tulip proposal. Let p be the sample proportion of voters supporting the tulip proposal. Answer the following using R code a)As a function or p, what is the variance of p? (use R code) > Variance = (p"q)/n > Varian X b) As a function of p, what is the standard deviation of p? (use R code), d-sqrt Variance Sdn % c) Calculate p. 0.008890177 d) Let ptot be the random variable representing the total number of voters in the sample who support the tulip proposal. As a function of p, what is the standard deviation of ptot? e) what is the critical value for an approximate classical 93% confidence interval for p? 1.811911 f) Calculate a classical 93% confidence interval for p. ( 0.4132466 0.445463 g) what is the length of the above classical 93% confidence interval for p? 0.03221641 h) Assuming the same p value, what sample size would have made the 93% confidence interval for p have a length of .08 or less? 125.6829Explanation / Answer
> n=3100
> x=1331
> phat=x/n;phat # c)value of phat
[1] 0.4293548
> variance=(phat*(1-phat))/n # a)variance of phat
> variance
[1] 7.903525e-05
> sd=sqrt(variance);sd # b)standard deviation of phat
[1] 0.008890177
>
>
>ptot=1
> sd2=sqrt((ptot*(1-ptot))/n);sd2 # d) standard deviation of ptot
[1] 0
>
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.