5. After a single dose of a vaccine, 78% of people produce an immune response. A new vaccine claims that their vaccine is better.
20 patients are selected at random and given the new vaccine. Of these, 19 produced the desired immune response.
Carry out a hypothesis test at the 1% significance level to investigate whether the new vaccine is better.
$\mathrm{H}_0: p = 0.78$ and $\mathrm{H}_1: p > 0.25$ where $p$ is the probability a patient produces an immune response.
$X \sim B(20,0.78)$, $\mathrm{P}(X \leqslant 18) = 0.954$ and $\mathrm{P}(X \geqslant 19) = 0.046$
This is greater than $0.01$, so reject $\mathrm{H}_1$
There is insufficient evidence to suggest the new vaccine is better.