12.07.2015 Views

Course Notes - Department of Mathematics and Statistics

Course Notes - Department of Mathematics and Statistics

Course Notes - Department of Mathematics and Statistics

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Fred for MayorFred has decided to throw his h<strong>and</strong> in the ring for mayor in the upcomingelection. Fred thinks he needs about 45% <strong>of</strong> the vote to win. Aftertalking with his 10 friends he found that 8 <strong>of</strong> them would vote for him,how confident should Fred be based on this polling?This question requires us to build a confidence interval for a proportion,the formula for this isp ± 1.96 ×So if we substitute our values in, we get0.8 ± 1.96 ×Which gives us the confidence interval√p(1−p)n√0.8(0.2)10(0.5521, 1.0479)We can see that this confidence interval is entirely above 0.45 thereforethere is evidence that Fred will get the 45% he requires for victory. Wecan also see though that the width <strong>of</strong> the confidence interval is 0.4958,so almost 50% which is very large indicating that the sample size is toosmall.Fred thought that perhaps he should poll some more people since hisfriends might be biased, but polling is expensive, he wanted to knowwhat is the smallest number <strong>of</strong> people he can poll to be sure <strong>of</strong> theresult within 3%.This problem causes a lot <strong>of</strong> issues for people, but with practise itbecomes less daunting. The first thing to do is to look at the formulafor the 95% confidence interval.p ± 1.96 ×√p(1−p)nIt is clear the actual width <strong>of</strong> the confidence interval is dictated bythe expression on the right side <strong>of</strong> the ±, so this is what we need tomanipulate in order to find the desired sample size.115

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!