Hypothesis Tests Using Normal Approximations

A2 · S2 · 14 min

When the sample is large or the mean count is large, exact binomial and Poisson tests become impractical: testing 7272 successes out of 200200 needs P(X≥72)P(X \ge 72) for B(200,0.3)B(200, 0.3), a sum of 129129 terms. The syllabus allows you to replace the binomial or Poisson distribution by a normal distribution with the same mean and variance, provided you apply a continuity correction. The logic of the test does not change at all; only the way the probability is calculated does. These tests appear regularly on Paper 6, and the continuity correction is where most marks are lost.

The approximations

Both approximations come from earlier work: the normal approximation to the binomial from S1, and the normal approximation to the Poisson.

Normal approximations for tests

Under H0H_0:

Exact distributionApproximationCondition
X∼B(n,p0)X \sim B(n, p_0)N(np0, np0(1−p0))N\big(np_0,\ np_0(1 - p_0)\big)np0>5np_0 > 5 and n(1−p0)>5n(1 - p_0) > 5
X∼Po(λ0)X \sim \text{Po}(\lambda_0)N(λ0, λ0)N(\lambda_0,\ \lambda_0)λ0>15\lambda_0 > 15

Because XX is discrete and the normal is continuous, a continuity correction is always applied:

P(X≥x)≈P(Y>x−0.5),P(X≤x)≈P(Y<x+0.5).P(X \ge x) \approx P(Y > x - 0.5), \qquad P(X \le x) \approx P(Y < x + 0.5).

The conditions are checked with the parameter value in H0H_0, because the distribution is the one that holds if H0H_0 is true.

The continuity correction treats each integer xx as the interval from x−0.5x - 0.5 to x+0.5x + 0.5. "At least 7272" includes the whole bar at 7272, which starts at 71.571.5; "at most 2929" includes the whole bar at 2929, which ends at 29.529.5. The graph shows Po(40)\text{Po}(40) as bars with the curve of N(40,40)N(40, 40); the shaded area up to 29.529.5 approximates P(X≤29)P(X \le 29).

y = 40^floor(x + 0.5) exp(-40) / fact(floor(x + 0.5)) y = exp(-(x - 40)^2 / 80) / sqrt(80 pi) fill 20 29.5 y = exp(-(x - 40)^2 / 80) / sqrt(80 pi)

Carrying out the test

You can decide in either of two equivalent ways.

Compare a probability with the significance level. Calculate the approximate tail probability, with the continuity correction, and compare it with the significance level.

Compare a zz-value with a critical value. Standardise the continuity-corrected value and compare it with 1.6451.645, 1.961.96, 2.3262.326 or 2.5762.576 as appropriate. For an upper-tail test with observed value xx,

z=(x−0.5)−μσ,z = \frac{(x - 0.5) - \mu}{\sigma},

and for a lower-tail test,

z=(x+0.5)−μσ.z = \frac{(x + 0.5) - \mu}{\sigma}.

The hypotheses are still written for the binomial proportion pp or the Poisson mean λ\lambda. The normal distribution is only a tool for calculating the probability.

Test using a normal approximation
  1. Define the parameter and state H0H_0 and H1H_1.
  2. State the exact distribution under H0H_0, check the condition, and state the approximating normal distribution with its mean and variance.
  3. Apply the continuity correction in the direction of the tail you need.
  4. Standardise and find the probability (or compare zz with the critical value).
  5. Compare with the significance level, halved for each tail of a two-tailed test.
  6. Decide about H0H_0 and conclude in context.
Routine: a binomial proportion

In the past, 30%30\% of customers at a supermarket bought organic vegetables. After a promotion, a random sample of 200200 customers includes 7272 who buy organic vegetables. Test at the 5%5\% significance level whether the proportion has increased.

Solution

Let pp be the proportion of customers who buy organic vegetables.

H0:p=0.3H_0: p = 0.3, H1:p>0.3\quad H_1: p > 0.3.

Under H0H_0, X∼B(200,0.3)X \sim B(200, 0.3). Since np=60>5np = 60 > 5 and n(1−p)=140>5n(1 - p) = 140 > 5, use X≈Y∼N(60,42)X \approx Y \sim N(60, 42).

P(X≥72)≈P(Y>71.5)=P(Z>71.5−6042)=P(Z>1.774)=1−0.9620=0.0380P(X \ge 72) \approx P(Y > 71.5) = P\left(Z > \frac{71.5 - 60}{\sqrt{42}}\right) = P(Z > 1.774) = 1 - 0.9620 = 0.0380

0.0380<0.050.0380 < 0.05, so reject H0H_0.

There is evidence at the 5%5\% level that the proportion of customers who buy organic vegetables has increased.

A Poisson mean

A switchboard receives calls at random at an average rate of 4040 per day. After a website is redesigned, there are 2929 calls on a randomly chosen day. Test at the 5%5\% significance level whether the rate of calls has decreased.

Solution

Let λ\lambda be the mean number of calls per day. H0:λ=40H_0: \lambda = 40, H1:λ<40\quad H_1: \lambda < 40.

Under H0H_0, X∼Po(40)X \sim \text{Po}(40). Since 40>1540 > 15, use X≈Y∼N(40,40)X \approx Y \sim N(40, 40).

P(X≤29)≈P(Y<29.5)=P(Z<29.5−4040)=P(Z<−1.660)=1−0.9515=0.0485P(X \le 29) \approx P(Y < 29.5) = P\left(Z < \frac{29.5 - 40}{\sqrt{40}}\right) = P(Z < -1.660) = 1 - 0.9515 = 0.0485

0.0485<0.050.0485 < 0.05, so reject H0H_0.

There is evidence at the 5%5\% level that the rate of calls has decreased.

Using the zz-value instead: −1.660<−1.645-1.660 < -1.645, so the result is in the critical region. Same conclusion.

When the continuity correction changes the answer

Because a test is a yes-or-no decision, a small change in the probability can change the conclusion. The continuity correction is not a fine detail; it is part of the method, and leaving it out can give the wrong answer.

A two-tailed test where the correction matters

A coin is tossed 100100 times and shows 6060 heads. Test at the 5%5\% significance level whether the coin is biased.

Solution

Let pp be the probability of a head. H0:p=0.5H_0: p = 0.5, H1:p≠0.5\quad H_1: p \ne 0.5.

Under H0H_0, X∼B(100,0.5)X \sim B(100, 0.5). Since np=n(1−p)=50>5np = n(1 - p) = 50 > 5, use X≈Y∼N(50,25)X \approx Y \sim N(50, 25).

6060 is above the mean, so use the upper tail.

P(X≥60)≈P(Y>59.5)=P(Z>59.5−505)=P(Z>1.9)=1−0.9713=0.0287P(X \ge 60) \approx P(Y > 59.5) = P\left(Z > \frac{59.5 - 50}{5}\right) = P(Z > 1.9) = 1 - 0.9713 = 0.0287

The test is two-tailed, so compare with 0.0250.025: 0.0287>0.0250.0287 > 0.025. Do not reject H0H_0.

There is insufficient evidence at the 5%5\% level that the coin is biased.

Without the continuity correction, z=60−505=2z = \dfrac{60 - 50}{5} = 2 and P(Z>2)=0.0228<0.025P(Z > 2) = 0.0228 < 0.025, which would wrongly lead to rejecting H0H_0. (The exact binomial probability is 0.02840.0284, confirming the corrected value.)

Critical regions with a normal approximation

To find a critical region, set the continuity-corrected boundary equal to the critical value and solve for the count.

For an upper-tail test at level α\alpha with critical value zαz_\alpha, the critical region is X≥cX \ge c where cc is the smallest integer with

(c−0.5)−μσ≥zα.\frac{(c - 0.5) - \mu}{\sigma} \ge z_\alpha.

For a lower-tail test, it is X≤cX \le c where cc is the largest integer with

(c+0.5)−μσ≤−zα.\frac{(c + 0.5) - \mu}{\sigma} \le -z_\alpha.
Finding a critical region

A switchboard receives calls at random at an average rate of 4040 per day. Using a single day's count and the 1%1\% significance level, find the critical region for a test of whether the rate has increased.

Solution

H0:λ=40H_0: \lambda = 40, H1:λ>40\quad H_1: \lambda > 40. Under H0H_0, X∼Po(40)≈Y∼N(40,40)X \sim \text{Po}(40) \approx Y \sim N(40, 40).

We need the smallest integer cc with

c−0.5−4040≥2.326  ⇒  c≥40.5+2.32640=40.5+14.71=55.21.\frac{c - 0.5 - 40}{\sqrt{40}} \ge 2.326 \;\Rightarrow\; c \ge 40.5 + 2.326\sqrt{40} = 40.5 + 14.71 = 55.21.

So c=56c = 56, and the critical region is X≥56X \ge 56.

Round up for an upper-tail region: 5555 would give a zz-value below 2.3262.326.

Exam-hard: scaling, testing and a critical region

Emails arrive in an office at random at an average rate of 2.52.5 per hour. After the office joins a new mailing list, 3030 emails arrive during a randomly chosen 88-hour working day.

(a) Use a suitable approximation to test at the 2.5%2.5\% significance level whether the rate of emails has increased.

(b) Find the critical region for this test.

(c) Explain why a normal approximation is appropriate and why a continuity correction is needed.

Solution

(a) For 88 hours the mean under the old rate is 8×2.5=208 \times 2.5 = 20.

Let λ\lambda be the mean number of emails per 88-hour day. H0:λ=20H_0: \lambda = 20, H1:λ>20\quad H_1: \lambda > 20.

Under H0H_0, X∼Po(20)X \sim \text{Po}(20). Since 20>1520 > 15, use X≈Y∼N(20,20)X \approx Y \sim N(20, 20).

P(X≥30)≈P(Y>29.5)=P(Z>29.5−2020)=P(Z>2.124)=1−0.9832=0.0168P(X \ge 30) \approx P(Y > 29.5) = P\left(Z > \frac{29.5 - 20}{\sqrt{20}}\right) = P(Z > 2.124) = 1 - 0.9832 = 0.0168

0.0168<0.0250.0168 < 0.025, so reject H0H_0. There is evidence at the 2.5%2.5\% level that the rate of emails has increased.

(b) The one-tailed critical value at 2.5%2.5\% is 1.961.96.

c−0.5−2020≥1.96  ⇒  c≥20.5+1.9620=20.5+8.765=29.27\frac{c - 0.5 - 20}{\sqrt{20}} \ge 1.96 \;\Rightarrow\; c \ge 20.5 + 1.96\sqrt{20} = 20.5 + 8.765 = 29.27

The critical region is X≥30X \ge 30, which is consistent with rejecting H0H_0 in (a).

(c) The mean 2020 is greater than 1515, so Po(20)\text{Po}(20) is close enough to symmetrical for a normal approximation. A continuity correction is needed because the number of emails is a discrete variable and it is being approximated by a continuous one.

Common mistakes
  • Leaving out the continuity correction. It is part of the method, it earns a mark, and without it a borderline test can reach the wrong conclusion.
  • Correcting in the wrong direction. P(X≥72)P(X \ge 72) becomes P(Y>71.5)P(Y > 71.5); P(X≤29)P(X \le 29) becomes P(Y<29.5)P(Y < 29.5). Think about which bars must be included.
  • Using the variance as the standard deviation. N(40,40)N(40, 40) has standard deviation 40=6.325\sqrt{40} = 6.325, not 4040.
  • Using the sample proportion in the variance. For a test, the variance is np0(1−p0)np_0(1 - p_0) with the value from H0H_0. (Confidence intervals use psp_s; tests use p0p_0.)
  • Not checking the conditions. State np0>5np_0 > 5 and n(1−p0)>5n(1 - p_0) > 5, or λ0>15\lambda_0 > 15, with the numbers.
  • Rounding a critical value the wrong way. For an upper-tail region round cc up; for a lower-tail region round cc down.
  • Writing hypotheses about the normal variable. The hypotheses concern pp or λ\lambda, not YY or μ\mu of the approximating normal.
Exam tip
  • The marks usually go: hypotheses; correct normal distribution with mean and variance; continuity correction; standardising; comparison; conclusion in context.
  • Write the approximation explicitly, with the condition: "np=60>5np = 60 > 5 and nq=140>5nq = 140 > 5, so X≈N(60,42)X \approx N(60, 42)".
  • Show the corrected value in the zz-formula, such as 71.5−6042\dfrac{71.5 - 60}{\sqrt{42}}. Examiners look for the 0.50.5.
  • Keep zz to at least 3 decimal places; read Φ\Phi from the tables to 4 decimal places.
  • If you compare zz with a critical value, say which critical value and why: "1.774>1.6451.774 > 1.645, the critical value for a one-tailed test at 5%5\%".
  • Questions often say "use a suitable approximation". This is your cue to state which approximation and to justify it.
Summary
  • Use B(n,p0)≈N(np0,np0(1−p0))B(n, p_0) \approx N(np_0, np_0(1 - p_0)) when np0>5np_0 > 5 and n(1−p0)>5n(1 - p_0) > 5.
  • Use Po(λ0)≈N(λ0,λ0)\text{Po}(\lambda_0) \approx N(\lambda_0, \lambda_0) when λ0>15\lambda_0 > 15.
  • Always apply a continuity correction: X≥xX \ge x becomes Y>x−0.5Y > x - 0.5; X≤xX \le x becomes Y<x+0.5Y < x + 0.5.
  • Compare the approximate tail probability with the significance level, or the corrected zz with the critical value.
  • The variance uses the value in H0H_0, not a sample estimate.
  • Critical regions: solve the corrected inequality and round up (upper tail) or down (lower tail).
  • Hypotheses and conclusions refer to pp or λ\lambda, in context.

Practice questions

Question
  1. It is claimed that 40%40\% of students walk to school. In a random sample of 150150 students, 7272 walk to school. Use a suitable approximation to test at the 5%5\% significance level whether the proportion is greater than 40%40\%.
  2. The number of complaints received by a company per month has the distribution Po(25)\text{Po}(25). After a change in policy, 1616 complaints are received in a month. Use a suitable approximation to test at the 5%5\% significance level whether the rate of complaints has decreased.
  3. A coin is tossed 400400 times and shows 221221 heads. Test at the 5%5\% significance level whether the coin is biased.
  4. A test of H0:p=0.2H_0: p = 0.2 against H1:p<0.2H_1: p < 0.2 is carried out at the 5%5\% significance level using a random sample of 300300. Use a normal approximation to find the critical region.
  5. A machine breaks down at random at an average rate of 4.54.5 times per week. After a service, there are 1818 breakdowns in 66 weeks. Test at the 1%1\% significance level whether the rate of breakdowns has decreased.
  6. In a test using the approximation Po(30)≈N(30,30)\text{Po}(30) \approx N(30, 30), explain why the condition on λ\lambda is needed and why a continuity correction is used.
  7. A die is thrown 180180 times. Using a normal approximation, find the least number of sixes that would give evidence at the 5%5\% significance level that the die is biased towards six.
  8. The number of visitors to a website per hour has the distribution Po(50)\text{Po}(50). A two-tailed test at the 5%5\% significance level is to be carried out using the number of visitors in one hour. (a) Use a normal approximation to find the critical region. (b) In a particular hour there are 6464 visitors. State the conclusion of the test.
Answers
  1. H0:p=0.4H_0: p = 0.4, H1:p>0.4H_1: p > 0.4. Under H0H_0, X∼B(150,0.4)X \sim B(150, 0.4); np=60>5np = 60 > 5, nq=90>5nq = 90 > 5, so X≈N(60,36)X \approx N(60, 36). P(X≥72)≈P(Z>71.5−606)=P(Z>1.917)=1−0.9724=0.0276<0.05P(X \ge 72) \approx P\left(Z > \dfrac{71.5 - 60}{6}\right) = P(Z > 1.917) = 1 - 0.9724 = 0.0276 < 0.05. Reject H0H_0: there is evidence at the 5%5\% level that more than 40%40\% of students walk to school.

  2. H0:λ=25H_0: \lambda = 25, H1:λ<25H_1: \lambda < 25. 25>1525 > 15, so X≈N(25,25)X \approx N(25, 25). P(X≤16)≈P(Z<16.5−255)=P(Z<−1.7)=1−0.9554=0.0446<0.05P(X \le 16) \approx P\left(Z < \dfrac{16.5 - 25}{5}\right) = P(Z < -1.7) = 1 - 0.9554 = 0.0446 < 0.05. Reject H0H_0: there is evidence at the 5%5\% level that the rate of complaints has decreased.

  3. H0:p=0.5H_0: p = 0.5, H1:p≠0.5H_1: p \ne 0.5. X∼B(400,0.5)≈N(200,100)X \sim B(400, 0.5) \approx N(200, 100). P(X≥221)≈P(Z>220.5−20010)=P(Z>2.05)=1−0.9798=0.0202P(X \ge 221) \approx P\left(Z > \dfrac{220.5 - 200}{10}\right) = P(Z > 2.05) = 1 - 0.9798 = 0.0202. Two-tailed: 0.0202<0.0250.0202 < 0.025. Reject H0H_0: there is evidence at the 5%5\% level that the coin is biased.

  4. X∼B(300,0.2)≈N(60,48)X \sim B(300, 0.2) \approx N(60, 48). Need the largest cc with c+0.5−6048≤−1.645\dfrac{c + 0.5 - 60}{\sqrt{48}} \le -1.645, so c≤59.5−1.64548=59.5−11.40=48.10c \le 59.5 - 1.645\sqrt{48} = 59.5 - 11.40 = 48.10. So c=48c = 48 and the critical region is X≤48X \le 48.

  5. Mean for 66 weeks =27= 27. H0:λ=27H_0: \lambda = 27, H1:λ<27H_1: \lambda < 27. 27>1527 > 15, so X≈N(27,27)X \approx N(27, 27). P(X≤18)≈P(Z<18.5−2727)=P(Z<−1.636)=1−0.9491=0.0509>0.01P(X \le 18) \approx P\left(Z < \dfrac{18.5 - 27}{\sqrt{27}}\right) = P(Z < -1.636) = 1 - 0.9491 = 0.0509 > 0.01. Do not reject H0H_0: there is insufficient evidence at the 1%1\% level that the rate has decreased.

  6. A Poisson distribution is skewed for small λ\lambda; when λ\lambda is large (greater than 1515) it is close enough to symmetrical and bell-shaped to be approximated by a normal distribution. The continuity correction is needed because a discrete distribution (whole-number counts) is being approximated by a continuous one, so each integer is represented by the interval from 0.50.5 below it to 0.50.5 above it.

  7. H0:p=16H_0: p = \tfrac{1}{6}, H1:p>16H_1: p > \tfrac{1}{6}. X∼B(180,16)≈N(30,25)X \sim B\left(180, \tfrac{1}{6}\right) \approx N(30, 25). Need x−0.5−305≥1.645\dfrac{x - 0.5 - 30}{5} \ge 1.645, so x≥30.5+8.225=38.725x \ge 30.5 + 8.225 = 38.725. The least number of sixes is 3939.

  8. (a) X∼Po(50)≈N(50,50)X \sim \text{Po}(50) \approx N(50, 50). Each tail has 2.5%2.5\%, critical values ±1.96\pm 1.96. Lower: c+0.5−5050≤−1.96⇒c≤49.5−13.86=35.64\dfrac{c + 0.5 - 50}{\sqrt{50}} \le -1.96 \Rightarrow c \le 49.5 - 13.86 = 35.64, so X≤35X \le 35. Upper: c−0.5−5050≥1.96⇒c≥50.5+13.86=64.36\dfrac{c - 0.5 - 50}{\sqrt{50}} \ge 1.96 \Rightarrow c \ge 50.5 + 13.86 = 64.36, so X≥65X \ge 65. The critical region is X≤35X \le 35 or X≥65X \ge 65. (b) 6464 is not in the critical region. Do not reject H0H_0: there is insufficient evidence at the 5%5\% level that the mean number of visitors per hour has changed.

How well do you know this?

Builds on

Where this leads

Console

Search notes, courses and tools, or run an action