Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advanced Engineering Mathematics

Authors: Erwin Kreyszig

10th edition

470458364, 470458365, 978-0470458365

More Books

Students also viewed these Mathematics questions

Question

In which of the following environments can sound travel fastest?

Answered: 1 week ago

Question

Which type of energy does an object have when it is in motion?

Answered: 1 week ago

Question

The working principle of a washing machine is?

Answered: 1 week ago

Question

Nuclear sizes are expressed in a unit named?

Answered: 1 week ago