Q6 In this example you have to use R In the solution include

Q6. In this example you have to use R. In the solution, include your code and print or write an output. The data set is based on voting preferences of 1000 people.

\"0\" represents Party X, \"1\" represents Party Y. Calculate 95% condence interval for the proportion of people

who are going to vote for Party Y.

Please mention both code and answers.

Data show below

Solution

We have 502 Ones out of 1000

CI = p ± Z a/2 Sqrt(p*(1-p)/n)))
x = Mean
n = Sample Size
a = 1 - (Confidence Level/100)
Za/2 = Z-table value
CI = Confidence Interval
\"1\" represents Party (Y) = 502
Sample Size(n)=1000
Sample proportion = Y/n =0.502
Confidence Interval = [ 0.502 ±Z a/2 ( Sqrt ( 0.502*0.498) /1000)]
= [ 0.502 - 1.96* Sqrt(0) , 0.502 + 1.96* Sqrt(0) ]
= [ 0.471,0.533]

Q6. In this example you have to use R. In the solution, include your code and print or write an output. The data set is based on voting preferences of 1000 peop

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site