Hypothesis Tests for a Poisson Mean

A2 · S2 · 15 min

Has a new road layout reduced the number of accidents? Did an advertising campaign increase the rate of calls to a help desk? When events happen at random at some average rate, the count in a fixed period has a Poisson distribution, and a single observed count can test a claim about the rate. This is one of the most common full questions on Paper 6. It combines everything from the Poisson unit (scaling the mean to the right interval, summing Poisson variables, approximating a binomial) with the logic of a hypothesis test, and it often continues into Type I and Type II errors.

The set-up

Events occur singly, independently and at random, at a constant average rate. The null hypothesis states a value for that rate. The test statistic is the number of events XX observed in a period of a stated length, and under H0H_0

X∼Po(λ0),X \sim \text{Po}(\lambda_0),

where λ0\lambda_0 is the mean number of events for the period actually observed. If the claimed rate is 1.21.2 per minute and calls are counted over 55 minutes, then λ0=6\lambda_0 = 6.

The hypotheses can be written for the rate in the question's units or for the mean over the observed period, as long as you are consistent and clear:

H0:λ=1.2 per minuteorH0:λ=6 (per 5 minutes).H_0: \lambda = 1.2 \text{ per minute} \quad\text{or}\quad H_0: \lambda = 6 \text{ (per 5 minutes)}.

Many students find it safest to write the hypotheses with the mean for the observed period, so that the same number appears in the distribution.

Large counts are evidence of a higher rate, and small counts of a lower rate. Everything else works as in binomial tests: compare a tail probability with the significance level, or find a critical region. There are no Poisson tables in the formula booklet, so every probability comes from

P(X=r)=e−λλrr!.P(X = r) = e^{-\lambda}\frac{\lambda^r}{r!}.
Poisson test
  1. Find the mean for the period observed, scaling the claimed rate in proportion to the length of the period.
  2. Define the parameter and state H0H_0 and H1H_1, using the wording of the question to choose the tail.
  3. State "under H0H_0, X∼Po(λ0)X \sim \text{Po}(\lambda_0)".
  4. For an increase, find P(X≥x)=1−P(X≤x−1)P(X \ge x) = 1 - P(X \le x - 1); for a decrease, find P(X≤x)P(X \le x). Write the sum out with e−λ0e^{-\lambda_0} factored out.
  5. Compare with the significance level (half of it, per tail, for a two-tailed test).
  6. Decide about H0H_0 and conclude in context, without certainty.
Routine: has the rate increased?

A help desk receives calls at random at an average rate of 1.21.2 per minute. After an advertising campaign, 1111 calls are received in a randomly chosen 55-minute period. Test at the 5%5\% significance level whether the rate of calls has increased.

Solution

For 55 minutes the mean under the old rate is 5×1.2=65 \times 1.2 = 6.

Let λ\lambda be the mean number of calls in 55 minutes. H0:λ=6H_0: \lambda = 6, H1:λ>6\quad H_1: \lambda > 6.

Under H0H_0, X∼Po(6)X \sim \text{Po}(6), where XX is the number of calls in 55 minutes.

P(X≥11)=1−P(X≤10)=1−e−6(1+6+622!+633!+⋯+61010!)=1−0.9574=0.0426P(X \ge 11) = 1 - P(X \le 10) = 1 - e^{-6}\left(1 + 6 + \frac{6^2}{2!} + \frac{6^3}{3!} + \cdots + \frac{6^{10}}{10!}\right) = 1 - 0.9574 = 0.0426

0.0426<0.050.0426 < 0.05, so reject H0H_0.

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

Critical regions and the actual significance level

Exactly as for the binomial, the counts are discrete, so the critical region is chosen to have probability as close as possible to, but not more than, the significance level.

Poisson critical regions
  • Upper tail (H1:λ>λ0H_1: \lambda > \lambda_0): the smallest cc with P(X≥c)≤αP(X \ge c) \le \alpha; critical region X≥cX \ge c.
  • Lower tail (H1:λ<λ0H_1: \lambda < \lambda_0): the largest cc with P(X≤c)≤αP(X \le c) \le \alpha; critical region X≤cX \le c.
  • Two-tailed: each tail has probability at most 12α\tfrac{1}{2}\alpha.
  • The actual significance level is the probability of the critical region under H0H_0.

The graph shows Po(6)\text{Po}(6) with the upper-tail critical region at the 5%5\% level, X≥11X \ge 11, shaded. Its probability is 0.04260.0426. Adding X=10X = 10 would raise it to 0.08390.0839, which is too large.

y = 6^floor(x + 0.5) exp(-6) / fact(floor(x + 0.5)) + 0*sqrt(x + 0.5) fill 10.5 17 y = 6^floor(x + 0.5) exp(-6) / fact(floor(x + 0.5))
A two-tailed critical region

The number of goals scored per match in a league has mean 22. A journalist wants to test whether the scoring rate has changed this season, using the total number of goals in 44 randomly chosen matches and a 10%10\% significance level.

(a) State the hypotheses and find the critical region.

(b) Find the actual significance level.

(c) In the 44 matches, 1313 goals were scored. State the conclusion of the test.

Solution

(a) Let λ\lambda be the mean number of goals in 44 matches. H0:λ=8H_0: \lambda = 8, H1:λ≠8\quad H_1: \lambda \ne 8. Under H0H_0, X∼Po(8)X \sim \text{Po}(8), and each tail can have probability at most 0.050.05.

Lower tail:

P(X≤3)=e−8(1+8+32+2563)=0.0424≤0.05,P(X≤4)=0.0996>0.05.P(X \le 3) = e^{-8}\left(1 + 8 + 32 + \frac{256}{3}\right) = 0.0424 \le 0.05, \qquad P(X \le 4) = 0.0996 > 0.05.

Upper tail:

P(X≥14)=1−P(X≤13)=0.0342≤0.05,P(X≥13)=0.0638>0.05.P(X \ge 14) = 1 - P(X \le 13) = 0.0342 \le 0.05, \qquad P(X \ge 13) = 0.0638 > 0.05.

The critical region is X≤3X \le 3 or X≥14X \ge 14.

(b) Actual significance level =0.0424+0.0342=0.0766= 0.0424 + 0.0342 = 0.0766.

(c) 1313 is not in the critical region. Do not reject H0H_0: there is insufficient evidence at the 10%10\% level that the scoring rate has changed.

Treating the total for 44 matches as Po(8)\text{Po}(8) assumes goals in different matches are independent, using the fact that a sum of independent Poisson variables is Poisson.

Combining periods and approximating a binomial

Two Poisson results feed directly into tests.

Combining several periods. If accidents are Po(4)\text{Po}(4) per month, the total over three months is Po(12)\text{Po}(12), provided months are independent. A test based on the total uses Po(12)\text{Po}(12). The same applies to two different kinds of event (cars and lorries, say): their total is Poisson with the sum of the means.

Approximating a binomial. If the test statistic is binomial with large nn and small pp, such as the number of defective items in a sample of 600600 when p=0.005p = 0.005, the Poisson approximation B(n,p)≈Po(np)B(n, p) \approx \text{Po}(np) is used (see approximating a binomial by a Poisson). The test then proceeds as a Poisson test, with the hypotheses still written for the proportion pp.

Combining months: has the rate decreased?

The number of accidents per month at a junction has had the distribution Po(4)\text{Po}(4). New warning signs are installed, and in the following 33 months there are 66 accidents in total. Test at the 5%5\% significance level whether the rate of accidents has decreased.

Solution

Over 33 months, the mean under the old rate is 3×4=123 \times 4 = 12.

Let λ\lambda be the mean number of accidents in 33 months. H0:λ=12H_0: \lambda = 12, H1:λ<12\quad H_1: \lambda < 12.

Under H0H_0, X∼Po(12)X \sim \text{Po}(12).

P(X≤6)=e−12(1+12+1222+1236+12424+125120+126720)=0.0458P(X \le 6) = e^{-12}\left(1 + 12 + \frac{12^2}{2} + \frac{12^3}{6} + \frac{12^4}{24} + \frac{12^5}{120} + \frac{12^6}{720}\right) = 0.0458

0.0458<0.050.0458 < 0.05, so reject H0H_0.

There is evidence at the 5%5\% level that the rate of accidents has decreased since the signs were installed.

A binomial test via the Poisson approximation

On a production line, 0.5%0.5\% of items are defective. After a machine is serviced, a random sample of 600600 items contains 77 defectives. Use a suitable approximation to test at the 5%5\% significance level whether the proportion of defective items has increased.

Solution

Let pp be the proportion of defective items. H0:p=0.005H_0: p = 0.005, H1:p>0.005\quad H_1: p > 0.005.

Under H0H_0, X∼B(600,0.005)X \sim B(600, 0.005). Since n=600>50n = 600 > 50 and np=3<5np = 3 < 5, use X≈Po(3)X \approx \text{Po}(3).

P(X≥7)=1−e−3(1+3+92+276+8124+243120+729720)=1−0.9665=0.0335P(X \ge 7) = 1 - e^{-3}\left(1 + 3 + \frac{9}{2} + \frac{27}{6} + \frac{81}{24} + \frac{243}{120} + \frac{729}{720}\right) = 1 - 0.9665 = 0.0335

0.0335<0.050.0335 < 0.05, so reject H0H_0.

There is evidence at the 5%5\% level that the proportion of defective items has increased.

Exam-hard: how long must the observation be?

Faults occur at random in a type of cable at an average rate of 0.30.3 per 100100 m. A new manufacturing process is introduced, and it is hoped that the fault rate has decreased. A length of LL metres of cable from the new process will be examined, and a test carried out at the 5%5\% significance level.

(a) Show that H0H_0 can be rejected only if LL is greater than about 10001000.

(b) A length of 15001500 m is examined. Find the critical region and the actual significance level.

(c) The 15001500 m length contains 11 fault. State the conclusion of the test.

Solution

(a) The most extreme possible result for "decreased" is no faults at all. In LL metres the mean is 0.3L100=0.003L\dfrac{0.3L}{100} = 0.003L, so we need

P(X=0)=e−0.003L≤0.05  ⇒  0.003L≥ln⁡20=2.9957  ⇒  L≥998.6.P(X = 0) = e^{-0.003L} \le 0.05 \;\Rightarrow\; 0.003L \ge \ln 20 = 2.9957 \;\Rightarrow\; L \ge 998.6.

For any shorter length, even zero faults would not be significant, so LL must be about 10001000 m or more.

(b) For 15001500 m, λ0=4.5\lambda_0 = 4.5. H0:λ=4.5H_0: \lambda = 4.5, H1:λ<4.5\quad H_1: \lambda < 4.5, and under H0H_0, X∼Po(4.5)X \sim \text{Po}(4.5).

P(X=0)=e−4.5=0.0111≤0.05,P(X≤1)=e−4.5(1+4.5)=0.0611>0.05.P(X = 0) = e^{-4.5} = 0.0111 \le 0.05, \qquad P(X \le 1) = e^{-4.5}(1 + 4.5) = 0.0611 > 0.05.

The critical region is X=0X = 0, and the actual significance level is 0.01110.0111, that is 1.11%1.11\%.

(c) 11 is not in the critical region. Do not reject H0H_0: there is insufficient evidence at the 5%5\% level that the fault rate has decreased.

Common mistakes
  • Not scaling the mean. A rate of 1.21.2 per minute tested on a 55-minute count needs Po(6)\text{Po}(6), not Po(1.2)\text{Po}(1.2). This is the most common error.
  • Off-by-one in the upper tail. P(X≥11)=1−P(X≤10)P(X \ge 11) = 1 - P(X \le 10). Using 1−P(X≤11)1 - P(X \le 11) throws away the observed value.
  • Dropping the r=0r = 0 term. P(X≤6)P(X \le 6) has seven terms, starting with e−λe^{-\lambda}.
  • Using P(X=x)P(X = x) instead of the tail probability.
  • Forgetting to halve the significance level in a two-tailed test.
  • Taking a critical region with probability just above α\alpha because it is "closer". The probability must not exceed α\alpha.
  • Writing hypotheses about the sample count, such as H0:X=11H_0: X = 11. Hypotheses are about the population mean λ\lambda (or the proportion pp if the underlying model is binomial).
Exam tip
  • Write the scaled mean explicitly: "mean for 55 minutes =5×1.2=6= 5 \times 1.2 = 6". It is often worth a mark and makes the rest of your work clear.
  • Use λ\lambda or μ\mu for the Poisson mean in hypotheses; both are accepted. State what it is the mean of.
  • Show the Poisson sum with e−λe^{-\lambda} factored out, even when you get the value from a calculator.
  • If a binomial is approximated by a Poisson, say so and justify it: "n>50n > 50 and np<5np < 5".
  • Many questions ask you to state an assumption, such as "accidents occur independently and at random" or "the rate is constant". Give one in context.
  • For critical region questions, show the probabilities on both sides of the boundary and state the region as an inequality in XX.
Summary
  • Test statistic: the count XX in the observed period; under H0H_0, X∼Po(λ0)X \sim \text{Po}(\lambda_0) with λ0\lambda_0 scaled to that period.
  • Increase: compare P(X≥x)P(X \ge x) with α\alpha. Decrease: compare P(X≤x)P(X \le x) with α\alpha. Two-tailed: compare the relevant tail with 12α\tfrac{1}{2}\alpha.
  • Critical regions have probability as close as possible to, but not above, α\alpha; the actual significance level is that probability.
  • Totals over several independent periods, or of independent event types, are Poisson with the sum of the means.
  • B(n,p)B(n, p) with large nn and small pp is tested via Po(np)\text{Po}(np).
  • If e−λ0>αe^{-\lambda_0} > \alpha, a lower-tail test can never reject H0H_0: the observation period is too short.
  • Conclude in context with "evidence" language.

Practice questions

Question
  1. A test of H0:λ=6H_0: \lambda = 6 against H1:λ>6H_1: \lambda > 6 is carried out at the 5%5\% significance level, using a single observation of X∼Po(λ)X \sim \text{Po}(\lambda). Find the critical region and the actual significance level.
  2. A person receives emails at random at an average rate of 55 per hour. On the first day back after a holiday, 1010 emails arrive in a randomly chosen hour. Test at the 5%5\% significance level whether the rate has increased.
  3. A shop sells a particular item at random at an average rate of 2.42.4 per day. After a price rise, the shop sells 33 of these items in 33 days. Test at the 5%5\% significance level whether the rate of sales has decreased.
  4. The number of breakdowns per week of a machine is Po(5)\text{Po}(5). After maintenance, there are 1111 breakdowns in one week. Test at the 5%5\% significance level whether the rate of breakdowns has changed.
  5. State two conditions needed for the number of calls in a period to be modelled by a Poisson distribution in a hypothesis test about the rate of calls.
  6. It is known that 2%2\% of plates made in a factory are faulty. After new equipment is installed, a random sample of 200200 plates contains no faulty plates. Use a suitable approximation to test at the 5%5\% significance level whether the proportion of faulty plates has decreased.
  7. Typing errors occur at random at an average rate of 0.50.5 per hour of typing. A trainer wants to test, at the 1%1\% significance level, whether a new keyboard reduces the error rate. Find the least whole number of hours of typing that must be observed for the test to be able to reject H0H_0.
  8. Cars pass a point on a road at random at an average rate of 33 per minute, and lorries pass independently at random at an average rate of 11 per minute. After a new bypass opens, 1515 vehicles pass the point in a randomly chosen 22-minute period. (a) Test at the 5%5\% significance level whether the total rate of vehicles has increased. (b) Find the critical region for the same test at the 1%1\% significance level, and state the conclusion at this level.
Answers
  1. Under H0H_0, X∼Po(6)X \sim \text{Po}(6). P(X≥11)=1−P(X≤10)=0.0426≤0.05P(X \ge 11) = 1 - P(X \le 10) = 0.0426 \le 0.05; P(X≥10)=0.0839>0.05P(X \ge 10) = 0.0839 > 0.05. Critical region X≥11X \ge 11; actual significance level 0.04260.0426.

  2. H0:λ=5H_0: \lambda = 5, H1:λ>5H_1: \lambda > 5 (per hour). Under H0H_0, X∼Po(5)X \sim \text{Po}(5). P(X≥10)=1−P(X≤9)=1−0.9682=0.0318P(X \ge 10) = 1 - P(X \le 9) = 1 - 0.9682 = 0.0318. 0.0318<0.050.0318 < 0.05: reject H0H_0. There is evidence at the 5%5\% level that the rate of emails has increased.

  3. Mean for 33 days =7.2= 7.2. H0:λ=7.2H_0: \lambda = 7.2, H1:λ<7.2H_1: \lambda < 7.2. Under H0H_0, X∼Po(7.2)X \sim \text{Po}(7.2). P(X≤3)=e−7.2(1+7.2+7.222+7.236)=0.00075+0.00538+0.01935+0.04644=0.0719P(X \le 3) = e^{-7.2}\left(1 + 7.2 + \tfrac{7.2^2}{2} + \tfrac{7.2^3}{6}\right) = 0.00075 + 0.00538 + 0.01935 + 0.04644 = 0.0719. 0.0719>0.050.0719 > 0.05: do not reject H0H_0. There is insufficient evidence at the 5%5\% level that sales have decreased.

  4. H0:λ=5H_0: \lambda = 5, H1:λ≠5H_1: \lambda \ne 5. Under H0H_0, X∼Po(5)X \sim \text{Po}(5). 11>511 > 5, so use the upper tail. P(X≥11)=1−P(X≤10)=1−0.9863=0.0137P(X \ge 11) = 1 - P(X \le 10) = 1 - 0.9863 = 0.0137. Two-tailed, so compare with 0.0250.025: 0.0137<0.0250.0137 < 0.025. Reject H0H_0: there is evidence at the 5%5\% level that the rate of breakdowns has changed.

  5. Any two of: calls occur independently of each other; calls occur at random; calls occur at a constant average rate; calls occur singly (two calls cannot arrive at exactly the same instant).

  6. H0:p=0.02H_0: p = 0.02, H1:p<0.02H_1: p < 0.02. Under H0H_0, X∼B(200,0.02)X \sim B(200, 0.02); n>50n > 50 and np=4<5np = 4 < 5, so use X≈Po(4)X \approx \text{Po}(4). P(X=0)=e−4=0.0183P(X = 0) = e^{-4} = 0.0183. 0.0183<0.050.0183 < 0.05: reject H0H_0. There is evidence at the 5%5\% level that the proportion of faulty plates has decreased.

  7. In tt hours, λ0=0.5t\lambda_0 = 0.5t. The most extreme result is 00 errors, so we need e−0.5t≤0.01e^{-0.5t} \le 0.01, giving 0.5t≥ln⁡100=4.6050.5t \ge \ln 100 = 4.605 and t≥9.21t \ge 9.21. The least whole number of hours is 1010. (Check: e−4.5=0.0111>0.01e^{-4.5} = 0.0111 > 0.01 for 99 hours; e−5=0.00674≤0.01e^{-5} = 0.00674 \le 0.01 for 1010 hours.)

  8. (a) The total number of vehicles per minute is Po(3+1)=Po(4)\text{Po}(3 + 1) = \text{Po}(4), so in 22 minutes it is Po(8)\text{Po}(8). H0:λ=8H_0: \lambda = 8, H1:λ>8H_1: \lambda > 8 (per 22 minutes). Under H0H_0, X∼Po(8)X \sim \text{Po}(8). P(X≥15)=1−P(X≤14)=0.0173<0.05P(X \ge 15) = 1 - P(X \le 14) = 0.0173 < 0.05. Reject H0H_0: there is evidence at the 5%5\% level that the rate of vehicles has increased. (b) P(X≥16)=0.0082≤0.01P(X \ge 16) = 0.0082 \le 0.01 and P(X≥15)=0.0173>0.01P(X \ge 15) = 0.0173 > 0.01, so the critical region is X≥16X \ge 16. 1515 is not in this region, so at the 1%1\% level H0H_0 is not rejected: there is insufficient evidence at the 1%1\% level that the rate has increased.

How well do you know this?

Builds on

Where this leads

Console

Search notes, courses and tools, or run an action