This page puts the vocabulary from The Language of Hypothesis Testing to work (DfE content area O Β· Statistical hypothesis testing). Every test here is a test for a proportion $p$, using a binomial model from The Binomial Distribution.
- Define $p$ in words, and write $H_0: p = p_0$ and $H_1$.
- State the null distribution: "Under $H_0$, $X \sim \mathrm{B}(n,\,p_0)$".
- Either find the p-value of the observed result, or find the critical region.
- Compare: p-value with $\alpha$ (or $\tfrac{\alpha}{2}$ for two tails); or check whether the observed value is in the critical region.
- Write the decision ("reject $H_0$" / "do not reject $H_0$") and a conclusion in context.
$\mathrm{P}(X \geqslant k) = 1 - \mathrm{P}(X \leqslant k - 1)$
The quickest way to carry out a test when you have the observed value: calculate the probability of that value or anything more extreme in the direction of $H_1$.
A coin is suspected of being biased towards heads. In $20$ throws it lands heads $15$ times. Test at the $5\%$ level.
A manufacturer claims that $60\%$ of patients recover within a week using its treatment. A doctor suspects the figure is lower. Of $25$ patients treated, $10$ recover within a week. Test at the $5\%$ level.
Historically $10\%$ of a firm's job applicants are invited to interview. After a change to the advert, $1$ of the next $50$ applicants is invited. Test at the $1\%$ level whether the proportion has fallen.
Questions often ask for the critical region before the data are known. You then compare the observed value with it.
- Decide which tail: $H_1: p < p_0$ uses small values of $X$; $H_1: p > p_0$ uses large values.
- Work out the cumulative probabilities near the edge of that tail.
- Choose the largest region whose probability is still $\leqslant \alpha$.
- Quote the probability just inside and just outside the boundary as evidence.
$X \sim \mathrm{B}(30,\,p)$. Find the critical region for a test of $H_0: p = 0.4$ against $H_1: p < 0.4$ at the $5\%$ level, and the actual significance level.
$35\%$ of households in a region own a dog. A vet thinks the proportion is higher in her town and plans to survey $25$ households. Find the critical region at the $5\%$ level.
$X \sim \mathrm{B}(20,\,p)$. Find the critical region for a test of $H_0: p = 0.4$ against $H_1: p \neq 0.4$ at the $5\%$ level, and the actual significance level.
To carry out a two-tailed test with a p-value, first decide which tail the observation is in by comparing it with the mean $np_0$, then compare the one-tail probability with $\tfrac{\alpha}{2}$.
A spinner is designed to land on blue with probability $0.25$. In $40$ spins it lands on blue $16$ times. Test, at (a) the $10\%$ level and (b) the $5\%$ level, whether the probability of blue is different from $0.25$.
Null distribution
$X \sim \mathrm{B}(n,\,p_0)$ under $H_0$.
Upper-tail p-value
$\mathrm{P}(X \geqslant x) = 1 - \mathrm{P}(X \leqslant x-1)$.
Lower-tail p-value
$\mathrm{P}(X \leqslant x)$ directly.
Decision
p-value $\leqslant \alpha$ (one tail) or $\leqslant \tfrac{\alpha}{2}$ (two tails) $\Rightarrow$ reject $H_0$.
Critical region
Largest tail with probability $\leqslant \alpha$; show values either side of the boundary.
Two-tailed region
$\tfrac{\alpha}{2}$ in each tail; actual level = sum of both tails.
Which tail?
Observed $> np_0$: upper; observed $< np_0$: lower.
Conclusion
Decision + "sufficient / insufficient evidence to suggestβ¦" in context.
Give probabilities to 4 decimal places. In every test, define $p$, state the hypotheses and the distribution, and conclude in context.
$X \sim \mathrm{B}(12,\,p)$. Test $H_0: p = 0.5$ against $H_1: p > 0.5$ at the $5\%$ level, given that $X = 10$.
βΆ Show solution
Under $H_0$, $X \sim \mathrm{B}(12,\,0.5)$.
$\mathrm{P}(X \geqslant 10) = 1 - \mathrm{P}(X \leqslant 9) = 1 - 0.9807 = 0.0193$.
$0.0193 < 0.05$: reject $H_0$. There is sufficient evidence at the $5\%$ level to suggest that $p > 0.5$.
A garage says $20\%$ of cars fail their safety check. A mechanic believes more fail. Of $15$ randomly chosen cars, $6$ fail. Test at the $5\%$ level.
βΆ Show solution
Let $p$ = P(a car fails). $H_0: p = 0.2$, $H_1: p > 0.2$. Under $H_0$, $X \sim \mathrm{B}(15,\,0.2)$.
$\mathrm{P}(X \geqslant 6) = 1 - \mathrm{P}(X \leqslant 5) = 1 - 0.9389 = 0.0611$.
$0.0611 > 0.05$: do not reject $H_0$. There is insufficient evidence at the $5\%$ level to suggest that more than $20\%$ of cars fail.
Historically $15\%$ of a company's parcels arrive late. After a change of courier, $1$ of $30$ parcels arrives late. Test at the $5\%$ level whether the proportion has decreased.
βΆ Show solution
Let $p$ = P(a parcel is late). $H_0: p = 0.15$, $H_1: p < 0.15$. Under $H_0$, $X \sim \mathrm{B}(30,\,0.15)$.
$\mathrm{P}(X \leqslant 1) = 0.0480$.
$0.0480 < 0.05$: reject $H_0$. There is sufficient evidence at the $5\%$ level to suggest that the proportion of late parcels has decreased.
Find the critical region for a test of $H_0: p = 0.2$ against $H_1: p > 0.2$ using a sample of $25$, at the $5\%$ level. State the actual significance level.
βΆ Show solution
Under $H_0$, $X \sim \mathrm{B}(25,\,0.2)$.
$\mathrm{P}(X \geqslant 8) = 1 - \mathrm{P}(X \leqslant 7) = 0.1091$ β
$\mathrm{P}(X \geqslant 9) = 1 - \mathrm{P}(X \leqslant 8) = 0.0468$ β
Critical region $X \geqslant 9$; actual significance level $4.68\%$.
Find the critical region for a test of $H_0: p = 0.6$ against $H_1: p < 0.6$ using a sample of $20$, at the $5\%$ level. State the actual significance level.
βΆ Show solution
Under $H_0$, $X \sim \mathrm{B}(20,\,0.6)$.
$\mathrm{P}(X \leqslant 7) = 0.0210$ β, $\mathrm{P}(X \leqslant 8) = 0.0565$ β
Critical region $X \leqslant 7$; actual significance level $2.10\%$.
Find the critical region for a test of $H_0: p = 0.2$ against $H_1: p \neq 0.2$ using a sample of $30$, at the $5\%$ level. State the actual significance level.
βΆ Show solution
Under $H_0$, $X \sim \mathrm{B}(30,\,0.2)$. Each tail $\leqslant 0.025$.
Lower: $\mathrm{P}(X \leqslant 1) = 0.0105$ β, $\mathrm{P}(X \leqslant 2) = 0.0442$ β $\Rightarrow X \leqslant 1$.
Upper: $\mathrm{P}(X \geqslant 12) = 1 - \mathrm{P}(X \leqslant 11) = 0.0095$ β, $\mathrm{P}(X \geqslant 11) = 0.0256$ β $\Rightarrow X \geqslant 12$.
Critical region: $X \leqslant 1$ or $X \geqslant 12$.
Actual significance level $= 0.0105 + 0.0095 = 0.0200 = 2.00\%$.
A coin is thrown $20$ times and shows $5$ heads. Test at the $5\%$ level whether the coin is biased.
βΆ Show solution
Let $p$ = P(heads). $H_0: p = 0.5$, $H_1: p \neq 0.5$. Under $H_0$, $X \sim \mathrm{B}(20,\,0.5)$; mean $10$.
$5 < 10$, so use the lower tail: $\mathrm{P}(X \leqslant 5) = 0.0207$.
$0.0207 < 0.025$: reject $H_0$. There is sufficient evidence at the $5\%$ level to suggest that the coin is biased.
Find the critical region for a test of $H_0: p = 0.3$ against $H_1: p \neq 0.3$ with $n = 50$, at the $5\%$ level, and the actual significance level.
βΆ Show solution
Under $H_0$, $X \sim \mathrm{B}(50,\,0.3)$; mean $15$. Each tail $\leqslant 0.025$.
Lower: $\mathrm{P}(X \leqslant 8) = 0.0183$ β, $\mathrm{P}(X \leqslant 9) = 0.0402$ β $\Rightarrow X \leqslant 8$.
Upper: $\mathrm{P}(X \geqslant 23) = 1 - \mathrm{P}(X \leqslant 22) = 0.0123$ β, $\mathrm{P}(X \geqslant 22) = 1 - \mathrm{P}(X \leqslant 21) = 0.0251$ β $\Rightarrow X \geqslant 23$.
Note that $0.0251$ is only just over $0.025$ β but it is over, so $22$ is not in the critical region.
Critical region: $X \leqslant 8$ or $X \geqslant 23$. Actual significance level $= 0.01825 + 0.01228 = 0.0305 = 3.05\%$ (adding the unrounded tail probabilities).
A politician claims that $40\%$ of voters support a policy. A journalist thinks support is lower and asks $25$ randomly chosen voters. (a) Find the critical region for a test at the $1\%$ level. (b) $5$ voters support the policy. Complete the test.
βΆ Show solution
(a) Let $p$ = P(a voter supports the policy). $H_0: p = 0.4$, $H_1: p < 0.4$. Under $H_0$, $X \sim \mathrm{B}(25,\,0.4)$.
$\mathrm{P}(X \leqslant 4) = 0.0095$ β, $\mathrm{P}(X \leqslant 5) = 0.0294$ β
Critical region $X \leqslant 4$.
(b) $5$ is not in the critical region, so do not reject $H_0$. There is insufficient evidence at the $1\%$ level to suggest that support for the policy is lower than $40\%$.
A seed packet states that $85\%$ of the seeds will germinate. Asha thinks that the germination rate of seeds stored in her shed is different. She plants $20$ of these seeds.
(a) State two assumptions needed for a binomial model of the number that germinate. (b) Write down hypotheses and find the critical region at the $10\%$ level. (c) State the actual significance level. (d) $14$ seeds germinate. Complete the test.
βΆ Show solution
(a) Seeds germinate independently of one another; each seed has the same probability of germinating. (A fixed number, $20$, is planted.)
(b) Let $p$ = P(a seed germinates). $H_0: p = 0.85$, $H_1: p \neq 0.85$. Under $H_0$, $X \sim \mathrm{B}(20,\,0.85)$; mean $17$. Each tail $\leqslant 0.05$.
Lower: $\mathrm{P}(X \leqslant 13) = 0.0219$ β, $\mathrm{P}(X \leqslant 14) = 0.0673$ β $\Rightarrow X \leqslant 13$.
Upper: $\mathrm{P}(X \geqslant 20) = 0.85^{20} = 0.0388$ β, $\mathrm{P}(X \geqslant 19) = 0.1756$ β $\Rightarrow X = 20$.
Critical region: $X \leqslant 13$ or $X = 20$.
(c) Actual significance level $= 0.0219 + 0.0388 = 0.0607 = 6.07\%$.
(d) $14$ is not in the critical region, so do not reject $H_0$. There is insufficient evidence at the $10\%$ level to suggest that the germination rate of Asha's seeds is different from $85\%$.