Question
Suppose that the fraction of a population that will vote for Candidate A is 52%. 300 potential voters are polled. Let 1 indicate that Candidate
Suppose that the fraction of a population that will vote for Candidate A is 52%. 300 potential voters are polled. Let 1 indicate that Candidate A gets the vote, and let 0 indicate otherwise. Simulate the polling as an experiment. Each trial of the experiment should have 300 samples. Simulate 5,000 trials, each with its own sample proportion. Please freeze the 5,000 sample proportions (by copying and pasting by value)
a)For each of the 5,000 trials, determine the 95% confidence interval for the population proportion.
b) Report the fraction of the 5,000 trials in which the population proportion falls within the confidence interval.
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