Question: Problem 5. (15 points, 2 parts) Hypothetical Simulation Experiment: Suppose that the fraction of a population that will vote for Candidate A is 52%. 300




Problem 5. (15 points, 2 parts) Hypothetical Simulation Experiment: 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). {You will use these same 5,000 trials for Problem 6.) a) For each of the 5,000 trials. determine the 95% condence interval for the population proportion. in) Report the fraction of the 5.000 trials in which the population proportion falls within the condence interval. Problem 6. (15 points, 3 parts) Consider the exact same setup as the previous problem. The candidate's manager hopes that the poll provides evidence that Candidate A will win the election. Therefore, the manager sets the null hypothesis as Ho:
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
