Question
Q1. A poll ofnvoters is to be taken in an attempt to predict the outcome of a by-election in a certain riding. Specifically, you are
Q1. A poll ofnvoters is to be taken in an attempt to predict the outcome of a by-election in a certain riding. Specifically, you are interested in the proportion of voters that will vote for a certain candidate, Candidate A.n=423voters have been randomly chosen, each has indicated what candidate they will vote for. You are to count the number, out of 423, who say they will vote for Candidate A. This count is measured by the random variableX. You findX=189.
(a)Find a 98% confidence interval forp, the proportion of all voters who will vote for Candidate A. Use the Z distribution to make confidence interval. Use at least four decimal points for your lower and upper bounds. At avoid rounding errors you should use R-Studio and not Tables.
Lower Bound= ____
Upper Bound= ____
(b)Interpret the meaning of the interval you found in part(a).
The proportion of?
- all voters in the riding
- all voters
- all people
that will vote for Candidate A is?
- somewhere between
- outside of the interval
____% and____%. (Enter your answer to at least two decimals.
(c)Find a 98% confidence interval for forp, the proportion of all voters who will vote for Candidate A, by Bootstrapping 1000 samples. Use the seed 4498 to ensure that R-Studio "randomly" samples the same "random" samples as this question will expect.
You can make by including the code, you can copy it into your R-Studio to bootstrap your samples.
RNGkind(sample.kind = "Rejection");
set.seed(4498);
B=do(1000) * mean(resample(c(rep(1,189),rep(0,423-189)), 423));
Find a 98% confidence interval Use at least four decimal points for your lower and upper bounds.
Lower Bound= _____
Upper Bound= ____
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started