Hypothesis Tests for a Poisson Mean
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 observed in a period of a stated length, and under
where is the mean number of events for the period actually observed. If the claimed rate is per minute and calls are counted over minutes, then .
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:
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
- Find the mean for the period observed, scaling the claimed rate in proportion to the length of the period.
- Define the parameter and state and , using the wording of the question to choose the tail.
- State "under , ".
- For an increase, find ; for a decrease, find . Write the sum out with factored out.
- Compare with the significance level (half of it, per tail, for a two-tailed test).
- Decide about and conclude in context, without certainty.
A help desk receives calls at random at an average rate of per minute. After an advertising campaign, calls are received in a randomly chosen -minute period. Test at the significance level whether the rate of calls has increased.
Solution
For minutes the mean under the old rate is .
Let be the mean number of calls in minutes. , .
Under , , where is the number of calls in minutes.
, so reject .
There is evidence at the 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.
- Upper tail (): the smallest with ; critical region .
- Lower tail (): the largest with ; critical region .
- Two-tailed: each tail has probability at most .
- The actual significance level is the probability of the critical region under .
The graph shows with the upper-tail critical region at the level, , shaded. Its probability is . Adding would raise it to , which is too large.
The number of goals scored per match in a league has mean . A journalist wants to test whether the scoring rate has changed this season, using the total number of goals in randomly chosen matches and a significance level.
(a) State the hypotheses and find the critical region.
(b) Find the actual significance level.
(c) In the matches, goals were scored. State the conclusion of the test.
Solution
(a) Let be the mean number of goals in matches. , . Under , , and each tail can have probability at most .
Lower tail:
Upper tail:
The critical region is or .
(b) Actual significance level .
(c) is not in the critical region. Do not reject : there is insufficient evidence at the level that the scoring rate has changed.
Treating the total for matches as 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 per month, the total over three months is , provided months are independent. A test based on the total uses . 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 and small , such as the number of defective items in a sample of when , the Poisson approximation 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 .
The number of accidents per month at a junction has had the distribution . New warning signs are installed, and in the following months there are accidents in total. Test at the significance level whether the rate of accidents has decreased.
Solution
Over months, the mean under the old rate is .
Let be the mean number of accidents in months. , .
Under , .
, so reject .
There is evidence at the level that the rate of accidents has decreased since the signs were installed.
On a production line, of items are defective. After a machine is serviced, a random sample of items contains defectives. Use a suitable approximation to test at the significance level whether the proportion of defective items has increased.
Solution
Let be the proportion of defective items. , .
Under , . Since and , use .
, so reject .
There is evidence at the level that the proportion of defective items has increased.
Faults occur at random in a type of cable at an average rate of per m. A new manufacturing process is introduced, and it is hoped that the fault rate has decreased. A length of metres of cable from the new process will be examined, and a test carried out at the significance level.
(a) Show that can be rejected only if is greater than about .
(b) A length of m is examined. Find the critical region and the actual significance level.
(c) The m length contains fault. State the conclusion of the test.
Solution
(a) The most extreme possible result for "decreased" is no faults at all. In metres the mean is , so we need
For any shorter length, even zero faults would not be significant, so must be about m or more.
(b) For m, . , , and under , .
The critical region is , and the actual significance level is , that is .
(c) is not in the critical region. Do not reject : there is insufficient evidence at the level that the fault rate has decreased.
- Not scaling the mean. A rate of per minute tested on a -minute count needs , not . This is the most common error.
- Off-by-one in the upper tail. . Using throws away the observed value.
- Dropping the term. has seven terms, starting with .
- Using instead of the tail probability.
- Forgetting to halve the significance level in a two-tailed test.
- Taking a critical region with probability just above because it is "closer". The probability must not exceed .
- Writing hypotheses about the sample count, such as . Hypotheses are about the population mean (or the proportion if the underlying model is binomial).
- Write the scaled mean explicitly: "mean for minutes ". It is often worth a mark and makes the rest of your work clear.
- Use or for the Poisson mean in hypotheses; both are accepted. State what it is the mean of.
- Show the Poisson sum with factored out, even when you get the value from a calculator.
- If a binomial is approximated by a Poisson, say so and justify it: " and ".
- 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 .
- Test statistic: the count in the observed period; under , with scaled to that period.
- Increase: compare with . Decrease: compare with . Two-tailed: compare the relevant tail with .
- Critical regions have probability as close as possible to, but not above, ; 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.
- with large and small is tested via .
- If , a lower-tail test can never reject : the observation period is too short.
- Conclude in context with "evidence" language.
Practice questions
- A test of against is carried out at the significance level, using a single observation of . Find the critical region and the actual significance level.
- A person receives emails at random at an average rate of per hour. On the first day back after a holiday, emails arrive in a randomly chosen hour. Test at the significance level whether the rate has increased.
- A shop sells a particular item at random at an average rate of per day. After a price rise, the shop sells of these items in days. Test at the significance level whether the rate of sales has decreased.
- The number of breakdowns per week of a machine is . After maintenance, there are breakdowns in one week. Test at the significance level whether the rate of breakdowns has changed.
- 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.
- It is known that of plates made in a factory are faulty. After new equipment is installed, a random sample of plates contains no faulty plates. Use a suitable approximation to test at the significance level whether the proportion of faulty plates has decreased.
- Typing errors occur at random at an average rate of per hour of typing. A trainer wants to test, at the 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 .
- Cars pass a point on a road at random at an average rate of per minute, and lorries pass independently at random at an average rate of per minute. After a new bypass opens, vehicles pass the point in a randomly chosen -minute period. (a) Test at the significance level whether the total rate of vehicles has increased. (b) Find the critical region for the same test at the significance level, and state the conclusion at this level.
Answers
-
Under , . ; . Critical region ; actual significance level .
-
, (per hour). Under , . . : reject . There is evidence at the level that the rate of emails has increased.
-
Mean for days . , . Under , . . : do not reject . There is insufficient evidence at the level that sales have decreased.
-
, . Under , . , so use the upper tail. . Two-tailed, so compare with : . Reject : there is evidence at the level that the rate of breakdowns has changed.
-
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).
-
, . Under , ; and , so use . . : reject . There is evidence at the level that the proportion of faulty plates has decreased.
-
In hours, . The most extreme result is errors, so we need , giving and . The least whole number of hours is . (Check: for hours; for hours.)
-
(a) The total number of vehicles per minute is , so in minutes it is . , (per minutes). Under , . . Reject : there is evidence at the level that the rate of vehicles has increased. (b) and , so the critical region is . is not in this region, so at the level is not rejected: there is insufficient evidence at the level that the rate has increased.