A-level Mathematics

14.1 The language of hypothesis testing — Practise with help

Attempt each question closed book first. Write H0H_0, H1H_1 and the significance level down before any calculation.

Warm-up: remember

  1. X∼B(20,0.25)X \sim \mathrm{B}(20, 0.25). Find P(X=0)P(X = 0) and P(X=1)P(X = 1).
  2. A sample of 200 adults contains 30 who cycle to work. Write down the sample proportion as a decimal.
  3. Write 0.050.05 as a fraction in its simplest form.
Answers
  1. P(X=0)=0.7520=0.0032P(X = 0) = 0.75^{20} = 0.0032 and P(X=1)=(201)(0.25)(0.75)19=0.0211P(X = 1) = \binom{20}{1}(0.25)(0.75)^{19} = 0.0211, each to 4 decimal places.
  2. 30200=0.15\dfrac{30}{200} = 0.15.
  3. 0.05=5100=1200.05 = \dfrac{5}{100} = \dfrac{1}{20}.

If question 1 was hard, revise the binomial probability formula before you start.

Practise with help

1. A quality inspector claims that 5% of the bolts from a machine are faulty. A sample of 40 bolts contains 5 faulty bolts. The inspector suspects that the machine now produces faults at a higher rate than the claim. Write H0H_0 and H1H_1, and name the tail.

Hint

The claim supplies the value inside H0H_0. The suspicion supplies the direction of H1H_1.

Next step

Write H0:p=0.05H_0: p = 0.05. Ask which direction worries the inspector, then choose << or >> for H1H_1.

Full working

The claim is that the fault rate is 5%, so

H0:p=0.05.H_0: p = 0.05.

The inspector suspects a higher rate, so

H1:p>0.05.H_1: p > 0.05.

This is a one-tailed test on the upper tail. Under H0H_0 the number of faulty bolts in 40, written XX, has the model X∼B(40,0.05)X \sim \mathrm{B}(40, 0.05).

2. For each situation, state whether a one-tailed or a two-tailed test is appropriate, and give the direction of any one tail. (a) A tester suspects a die shows six too often. (b) A manager checks whether a machine has drifted away from its target in either direction. (c) A customer suspects that deliveries arrive on time less often than the company claims.

Hint

Ask whether one direction is the only concern, or whether both directions would matter.

Next step

For part (a), the words "too often" name one direction. For part (b), the words "either direction" name two.

Full working

(a) One-tailed, upper tail, because the suspicion points to too many sixes and too few is not the concern.

(b) Two-tailed, because a drift up and a drift down are both problems.

(c) One-tailed, lower tail, because the customer suspects fewer on-time deliveries than the claim.

3. X∼B(20,0.25)X \sim \mathrm{B}(20, 0.25). Work out P(X≤2)P(X \le 2). Decide the test at the 5% level and again at the 1% level.

Hint

The lower tail is the sum of the probabilities for X=0X = 0, X=1X = 1 and X=2X = 2.

Next step

Use the binomial formula for each of the three values, then add the three probabilities. Compare the total with 0.050.05 and with 0.010.01 in turn.

Full working P(X≤2)=P(0)+P(1)+P(2)=0.0032+0.0211+0.0670=0.0913P(X \le 2) = P(0) + P(1) + P(2) = 0.0032 + 0.0211 + 0.0670 = 0.0913

to 4 decimal places. At the 5% level, 0.0913>0.050.0913 > 0.05, so the test retains H0H_0. At the 1% level, 0.0913>0.010.0913 > 0.01, so the test also retains H0H_0. The same data can retain the claim at both levels, because the evidence is not strong at either one.

4. A test gives a p-value of 0.0320.032. State the decision at the 5% level and at the 1% level, and explain why the two decisions differ.

Hint

Compare the p-value with each significance level separately.

Next step

Notice that 0.0320.032 is below 0.050.05 but above 0.010.01. Write one comparison for each level.

Full working

At the 5% level, 0.032<0.050.032 < 0.05, so the test rejects H0H_0. At the 1% level, 0.032>0.010.032 > 0.01, so the test retains H0H_0.

The decisions differ because a smaller significance level demands stronger evidence. The 1% level accepts a smaller risk of wrongly rejecting a true H0H_0, so the result must be more extreme before it counts.

5. A coin is tossed 24 times and shows 7 heads. Test at the 5% level whether the coin is fair. You are given P(X≤7)=0.0320P(X \le 7) = 0.0320 for X∼B(24,0.5)X \sim \mathrm{B}(24, 0.5).

Hint

A fair coin has p=0.5p = 0.5, so the hypotheses use ≠\ne for H1H_1. The test has two tails.

Next step

Use symmetry: with p=0.5p = 0.5, P(X≥17)P(X \ge 17) equals P(X≤7)P(X \le 7). Double the smaller tail before comparing with 0.050.05.

Full working

The hypotheses are

H0:p=0.5,H1:p≠0.5.H_0: p = 0.5, \qquad H_1: p \ne 0.5.

The value 7 is below the centre of the distribution, so the smaller tail is the lower one:

P(X≤7)=0.0320.P(X \le 7) = 0.0320.

The two-tailed p-value is

2×0.0320=0.0640.2 \times 0.0320 = 0.0640.

Since 0.0640>0.050.0640 > 0.05, the test retains H0H_0. There is not sufficient evidence at the 5% level to suggest the coin is not fair.

6. A test of the claim p=0.4p = 0.4 gives a p-value of 0.210.21. Write the conclusion in the context of the claim, and state one thing the conclusion does not mean.

Hint

A p-value above the significance level retains the claim. Then think about what the evidence can and cannot show.

Next step

Decide the test first. Then write a sentence that starts "There is not sufficient evidence…" for the context.

Full working

Since 0.21>0.050.21 > 0.05, the test retains H0H_0 at the 5% level. There is not sufficient evidence to suggest that the proportion differs from 0.40.4.

The conclusion does not mean that the proportion is exactly 0.40.4. It means that this sample did not provide strong enough evidence against 0.40.4. A larger sample might give a different verdict.

Settings

Colour scheme

Applies to every book you read here.

Reading theme

Applies to every book you read here.