document.write( "Question 1201383: The prime Minister of a small Caribbean Island stated that 95% of the population was vaccinated from the Covid-19 virus. The opposition believes that the Minister is overstating the proportion of vaccinated citizens. He randomly selects 300 citizens and found that 240 of them were fully vaccinated. \r
\n" ); document.write( "\n" ); document.write( "i. Calculate a 99% confidence interval for the true proportion of all citizens who were vaccinated.
\n" ); document.write( "ii. Interpret you answer in i).
\n" ); document.write( "iii. State the null and alternative hypothesis of this test.
\n" ); document.write( "
\n" ); document.write( "

Algebra.Com's Answer #835801 by math_tutor2020(3816)\"\" \"About 
You can put this solution on YOUR website!

\n" ); document.write( "Part (i)\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "p = population proportion of people who got vaccinated\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "n = sample size = 300
\n" ); document.write( "phat = sample proportion of people who got vaccinated = 240/300 = 0.80\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "At 99% confidence, the z critical value is roughly z = 2.576
\n" ); document.write( "Use a table like this
\n" ); document.write( "https://www.sjsu.edu/faculty/gerstman/StatPrimer/t-table.pdf
\n" ); document.write( "to get that value. Look at the bottom row labeled \"Z\" and above the 99% confidence level.
\n" ); document.write( "A stats calculator can also compute this value.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Compute the margin of error for the proportion.
\n" ); document.write( "E = z*sqrt(phat*(1-phat)/n)
\n" ); document.write( "E = 2.576*sqrt(0.80*(1-0.80)/300)
\n" ); document.write( "E = 0.0594901717373
\n" ); document.write( "E = 0.059490
\n" ); document.write( "This value is approximate.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Now we can compute the boundaries.
\n" ); document.write( "L = lower boundary of the confidence interval
\n" ); document.write( "L = phat - E
\n" ); document.write( "L = 0.80 - 0.059490
\n" ); document.write( "L = 0.74051
\n" ); document.write( "and
\n" ); document.write( "U = upper boundary of the confidence interval
\n" ); document.write( "U = phat + E
\n" ); document.write( "U = 0.80 + 0.059490
\n" ); document.write( "U = 0.85949
\n" ); document.write( "These values are approximate.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "The 99% confidence interval in the format (L, U) is approximately (0.74051, 0.85949)\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "The 99% confidence interval in the format L < p < U is approximately 0.74051 < p < 0.85949
\n" ); document.write( "This second format is a bit more descriptive in terms of which population parameter we're trying to measure. \r
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Side note:
\n" ); document.write( "An alternative confidence interval format is \"phat+%2B-+E\" which in this case is roughly \"0.80+%2B-+0.059490\"\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "============================================================\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Part (ii)\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "p = population proportion of people who got vaccinated\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "In the previous section we found 0.74051 < p < 0.85949\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "We are 99% confident the population proportion p is somewhere between 0.74051 and 0.85949\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Meaning we are 99% confident the true percentage of people who got vaccinated is somewhere between 74.051% and 85.949%
\n" ); document.write( "Each percentage is approximate.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "The percentage 95% is not in the interval between 74.051% and 85.949%, so it appears the opposition is correct in stating the true vaccination rate is below 95%.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "============================================================\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Part (iii)\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "p = population proportion of people who got vaccinated
\n" ); document.write( "Null: p = 0.95
\n" ); document.write( "Alternative: p < 0.95
\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "The prime minister's claim is in the null hypothesis.
\n" ); document.write( "The opposition's claim is in the alternative hypothesis.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "This is because the opposition believes the 95% vaccination rate is overstated (i.e. the value of p is lower).\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "This is a left-tailed test due to the \"less than\" sign in the alternative hypothesis.
\n" ); document.write( "If the test statistic is to the left of the critical value, then we reject the null.
\n" ); document.write( "
\n" ); document.write( "
\n" );