A-level Mathematics14.1 The language of hypothesis testing

All books

14.1 The language of hypothesis testing — Practise

Work through these on your own. For each test, write H0H_0, H1H_1 and the significance level before you calculate.

The questions and the answers below come from a set that is checked by computer every time the book is built.

  1. A packet contains a voucher with probability 0.250.25. A sample of 20 packets is checked. Find P(X≤1)P(X \le 1), where XX is the number of vouchers, to 4 decimal places.
  2. A company claims that 1 packet in 4 contains a voucher. A customer buys 20 packets and finds 1 voucher. Test the claim at the 5% level against the alternative that fewer packets contain a voucher.
  3. Use the same claim and sample of 20 packets, but suppose the customer finds 2 vouchers. Test the claim at the 5% level against the alternative that fewer packets contain a voucher.
  4. A coin is tossed 20 times. Find P(X≥15)P(X \ge 15) for the number of heads XX when the coin is fair, to 4 decimal places.
  5. A coin is tossed 20 times and shows 15 heads. Test at the 5% level whether the coin is fair, using a two-tailed test.
  6. A coin is tossed 20 times and shows 5 heads. Test at the 5% level whether the coin is fair, using a two-tailed test.
  7. A test gives a p-value of 0.0320.032. State, with a symbol, how this p-value compares with the 5% significance level.
  8. The same test gives a p-value of 0.0320.032. State, with a symbol, how this p-value compares with the 1% significance level.
  9. A test uses the 1% significance level. Write down the probability of incorrectly rejecting H0H_0 when H0H_0 is true.
  10. A two-tailed test uses the 5% significance level. Find the probability placed in each tail.
  11. A company claims that 30% of students walk to school. In a sample of 25 students, 12 walk. Find P(X≥12)P(X \ge 12) under the claim, to 4 decimal places.
  12. Test the claim that 30% of students walk to school at the 5% level, against the alternative that the proportion is higher. Use the sample of 25 students in which 12 walk.

Answers and concise solutions

1. Show the answer

1. The lower tail probability

Answer: P(X≤1)=P(0)+P(1)=0.0032+0.0211=0.0243P(X \le 1) = P(0) + P(1) = 0.0032 + 0.0211 = 0.0243 to 4 decimal places.

2. Show the answer

2. The p-value and the decision

Answer: H0:p=0.25H_0: p = 0.25 and H1:p<0.25H_1: p \lt 0.25. Under H0H_0, X∼B(20,0.25)X \sim \mathrm{B}(20, 0.25). The p-value is P(X≤1)=0.0243<0.05P(X \le 1) = 0.0243 \lt 0.05, so reject H0H_0. There is sufficient evidence at the 5% level that fewer than 1 packet in 4 contains a voucher.

3. Show the answer

3. The p-value and the decision

Answer: The p-value is P(X≤2)=0.0913>0.05P(X \le 2) = 0.0913 > 0.05, so retain H0H_0. Two vouchers is below the expected 5, but a result this low is not unusual when p=0.25p = 0.25.

4. Show the answer

4. The upper tail probability

Answer: P(X≥15)=0.0207P(X \ge 15) = 0.0207 to 4 decimal places. Only about 2% of fair-coin runs of 20 give 15 or more heads.

5. Show the answer

5. The two-tailed p-value and the decision

Answer: H0:p=0.5H_0: p = 0.5 and H1:p≠0.5H_1: p \ne 0.5. The two-tailed p-value is 2×0.0207=0.0414<0.052 \times 0.0207 = 0.0414 \lt 0.05, so reject H0H_0. There is sufficient evidence that the coin is not fair.

6. Show the answer

6. The two-tailed p-value and the decision

Answer: The smaller tail is P(X≤5)=0.0207P(X \le 5) = 0.0207, so the two-tailed p-value is 0.0414<0.050.0414 \lt 0.05 and the test rejects H0H_0. By symmetry, 5 heads is as unlikely as 15 heads.

7. Show the answer

7. The comparison

Answer: 0.032<0.050.032 \lt 0.05, so the test rejects H0H_0 at the 5% level.

8. Show the answer

8. The comparison

Answer: 0.032>0.010.032 > 0.01, so the test retains H0H_0 at the 1% level. The smaller level demands stronger evidence.

9. Show the answer

9. The probability

Answer: The significance level is that probability, so it is 0.010.01.

10. Show the answer

10. The probability in each tail

Answer: The 5% is shared equally, so each tail holds 0.052=0.025\dfrac{0.05}{2} = 0.025.

11. Show the answer

11. The upper tail probability

Answer: P(X≥12)=0.0442P(X \ge 12) = 0.0442 to 4 decimal places.

12. Show the answer

12. The p-value and the decision

Answer: H0:p=0.3H_0: p = 0.3 and H1:p>0.3H_1: p > 0.3. The p-value is 0.0442<0.050.0442 \lt 0.05, so reject H0H_0. There is sufficient evidence at the 5% level that more than 30% of students walk to school.

Settings

Colour scheme

Light or dark pages. Your colour and layout stay the same.

Colour

The paper, ink and lettering. Your layout stays the same.

Quiet colours
Bold colours
Layout

How pages are arranged. Your colours stay the same.

Reading offline

Keep this book on this device and read it offline.