2-sample Poisson rate test: compare two failure rates
The 2-sample Poisson rate test checks whether two processes produce events at different rates per unit of exposure: warranty claims per unit-month, defects per square meter, stops per 1,000 hours. Because the exposures can differ, it compares rates, not raw counts. The exact version conditions on the total number of events and uses the binomial distribution, so it works even with small counts.
When to use it
- Comparing field failure rates of two plants, two designs or two suppliers, where the units have been in service for different total times.
- Comparing defect rates per area or per length between two lines or two materials.
- Comparing breakdown rates of two machines with different operating hours.
- If each unit is simply good or defective, use the 2 proportions test. For more than two groups or to adjust for other factors, Poisson regression is the general tool.
How it works
Group 1 has x₁ events over exposure T₁, group 2 has x₂ events over T₂. The estimated rates are λ̂₁ = x₁/T₁ and λ̂₂ = x₂/T₂.
- H₀: λ₁ = λ₂ (equivalently, the rate ratio λ₁/λ₂ = 1).
- H₁: λ₁ ≠ λ₂, or λ₁ > λ₂, or λ₁ < λ₂.
Exact conditional test. If both counts are Poisson, then given the total N = x₁ + x₂, the count in group 1 is binomial with N trials and probability
π = λ₁T₁ / (λ₁T₁ + λ₂T₂)Under H₀ (equal rates), π reduces to π₀ = T₁/(T₁ + T₂), the share of the exposure that belongs to group 1. The test is then an exact binomial test of π = π₀:
p-value (H₁: λ₁ > λ₂) = P(X₁ ≥ x₁ | N, π₀)For a two-sided test, the method used here doubles the smaller tail (capped at 1).
Interval for the rate ratio. Take the exact (Clopper–Pearson) interval (π_L, π_U) for π from x₁ out of N, and convert each limit:
λ₁/λ₂ = [π / (1 − π)] · (T₂ / T₁)A normal approximation for the difference, z = (λ̂₁ − λ̂₂)/√(x₁/T₁² + x₂/T₂²), is also common when both counts are large.
Assumptions: within each group, events are independent and occur at a constant rate over the exposure.
Example
A maker of water pumps assembles the same model in two plants. The reliability engineer pulls warranty claims for units sold in the last year and sums the months each unit has been in service:
| Plant | Claims | Exposure (unit-months) | Rate per 1,000 unit-months |
|---|---|---|---|
| A | 34 | 38,500 | 0.883 |
| B | 19 | 41,200 | 0.461 |
Plant A's rate is 1.91 times Plant B's. Test H₀: λ_A = λ_B, two-sided, α = 0.05, measuring exposure in thousands of unit-months:
- Total claims: N = 34 + 19 = 53.
- Plant A's share of the exposure: π₀ = 38.5/(38.5 + 41.2) = 0.4831, so under H₀ Plant A should have about 53 × 0.4831 = 25.6 of the claims.
- Upper tail: P(X ≥ 34 | N = 53, π₀) = 0.0147.
- Two-sided exact p-value: 2 × 0.0147 = 0.029.
- Exact 95% interval for π: 0.498 to 0.769, which converts to a rate ratio interval of 1.06 to 3.55.
The normal approximation for the difference gives z = 2.28 and p = 0.022, close to the exact result because both counts are reasonably large.
How to read the results
- The p-value of 0.029 is below 0.05: Plant A's pumps fail in the field at a higher rate than Plant B's.
- The ratio interval says Plant A's rate is between about 1.06 and 3.55 times Plant B's. The lower end is close to 1, so the size of the gap is uncertain, but the direction is clear.
- Turn the rate into cost. At 0.42 extra claims per 1,000 unit-months, 10,000 pumps in service for 12 months mean about 50 extra claims a year from Plant A's build. That is the business case for finding the cause.
- Look for the reason. Break the claims down by failure mode (a Pareto chart or a tally) and by build month. A single failure mode concentrated in a few months points to a specific lot or process change.
Common mistakes
- Comparing raw counts. 34 against 19 looks like a big difference, but it matters only after dividing by exposure. Here the exposures are similar; often they are not.
- Ignoring the age of the units. Many products fail more often early or late in life. If one plant's units are much newer, their rates are not comparable without a reliability model, such as a warranty analysis.
- Treating repeat claims as independent. A unit that comes back three times for the same fault is not three independent events. Count first failures, or use a repairable systems analysis.
- Pooling different models. A mix of models with different rates in one plant is not a single Poisson process.
Frequently asked questions
Why condition on the total number of events?
Because the total carries no information about which group has the higher rate, only about the overall level. Conditioning removes the unknown overall rate and leaves an exact binomial problem with a known probability π₀.
Should I report the rate difference or the rate ratio?
Both are useful. The ratio is easier to compare across products and is what the exact interval gives directly. The difference translates more directly into extra failures and cost.
What if one group has zero events?
The exact test still works. The ratio's point estimate is 0 or infinite, but one limit of the interval stays finite and gives a usable bound.
Can I use this for defects per unit instead of per hour?
Yes. Exposure can be units inspected, square meters, meters of wire or any other measure of opportunity, as long as events can happen several times per unit of exposure.