document.write( "Question 1201407: a) 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. i. Calculate a 99% confidence interval for the true proportion of all citizens who were vaccinated. ii. Interpret you answer in i). iii. State the null and alternative hypothesis of this test. iv. Calculate the value of the test statistics. v. At the 5% level of significance, determine if the Politian overstated the proportion of vaccinated citizen. Use the classical approach. \n" ); document.write( "
Algebra.Com's Answer #835792 by math_tutor2020(3817)\"\" \"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.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "============================================================\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Part (iv)\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "p = 0.95 = hypothesized population proportion of people who got vaccinated
\n" ); document.write( "phat = sample proportion = 240/300 = 0.80
\n" ); document.write( "n = 300 = sample size\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "SE = standard error
\n" ); document.write( "SE = sqrt(p*(1-p)/n)
\n" ); document.write( "SE = sqrt(0.95*(1-0.95)/300)
\n" ); document.write( "SE = 0.01258305739211
\n" ); document.write( "This value is approximate.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Test statistic:
\n" ); document.write( "z = (phat - p)/SE
\n" ); document.write( "z = (0.80 - 0.95)/0.01258305739211
\n" ); document.write( "z = -11.9207912135929
\n" ); document.write( "z = -11.92\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Test statistic: z = -11.92 approximately\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "============================================================\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Part (v)\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "At the 5% level of significance, the left-tailed critical value is approximately z = -1.645 (use a table or stats calculator to determine this)
\n" ); document.write( "P(Z < -1.645) = 0.05 approximately
\n" ); document.write( "5% of the area under the standard normal Z curve is to the left of z = -1.645\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "We found that
\n" ); document.write( "test statistic = -11.92
\n" ); document.write( "critical value = -1.645
\n" ); document.write( "both of which are approximate\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "The test statistic is to the left of the critical value.
\n" ); document.write( "We're in the rejection region.
\n" ); document.write( "Therefore we reject the null and conclude p < 0.95 is the case.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Recall the confidence interval we found earlier was
\n" ); document.write( "0.74051 < p < 0.85949
\n" ); document.write( "meaning that the true vaccinated percentage is somewhere between 74.051% and 85.949% (we were 99% confident of this)
\n" ); document.write( "p = 0.95 is nowhere in the interval 0.74051 < p < 0.85949, so it is further evidence that the opposition may be onto something when stating the vaccination rate is below 95%\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Conclusion: it appears the prime minister has likely overstated the vaccination rate. It's likely less than 95%.
\n" ); document.write( "
\n" ); document.write( "
\n" );