Use R and include your code and print or write an output ele

Use R and include your code and print or write an output.

election text file contains:

In this example you have to use R. I the solution, included your code and print or write an output. Download data set election.txt. The data set is based on voting preferences of 1000 people. \"0\" represents Party X 1 represents Party Y. Calculate 95% confidence interval for the proportion of people who are going to vote for Party Y

Solution

Confidence Interval For Proportion
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
No. of People who vote for Y = 502
No. of People who vote for X = 498
Sample Size(n)=1000
Sample proportion = x/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]

Use R and include your code and print or write an output. election text file contains: In this example you have to use R. I the solution, included your code and

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site