One group records 12 events and another records 3—is the first group’s event rate four times the second’s? Only when the two exposures are equal can that conclusion be read directly from the count ratio. If the first accumulates 100 units of exposure and the second 80, the rates are 0.12 and 0.0375 events per exposure unit, so the first is 3.2 times the second. Counts describe how many times something happened; rates also ask in how large an opportunity those events occurred.
Separate event counts from exposure first
Suppose the two independent counts follow X₁~Poisson(n₁λ₁) and X₂~Poisson(n₂λ₂). Here n₁ and n₂ are positive exposures and λ₁, λ₂ are event rates per unit exposure; both exposures must use the same unit. Observed counts are k₁ and k₂, with rate estimates k₁/n₁ and k₂/n₂. SciPy’s poisson_means_test takes exactly these two counts and the sizes of their measurement intervals to compare the rates.[1]
Exposure can be observation time, area, or person-time. For example, one person watched for 10 hours and two people watched for 5 hours each both contribute 10 person-hours; the event counts to compare are those accumulated during each group’s exposure. Keeping each group’s denominator both computes the rates and tells the test how many events each group is expected to produce under the same hypothesis. Saving only the two counts cannot recover this comparison.
What the E-test compares
This discussion uses a prechosen two-sided test: the null H₀ is λ₁−λ₂=0, and the alternative is that the two event rates differ. The E-test first uses the size of the rate difference relative to its estimated standard error as the statistic:[1]
T=(k₁/n₁−k₂/n₂)/√(k₁/n₁²+k₂/n₂²).
Next, the E-test does not simply look up a standard-normal tail. Under a null of equal rates, it first divides the total event count by total exposure to get a plug-in estimate of the common rate, λ̂=(k₁+k₂)/(n₁+n₂). It then builds a joint reference distribution for two independent Poisson counts with means n₁λ̂ and n₂λ̂. For every candidate count pair it computes the same statistic and sums the joint probabilities of those pairs whose absolute statistic is at least as large as the observed value, yielding the two-sided p-value.[1]
Reading results with constructed counts
Take the constructed data above: 12 events and 100 units of exposure in the first group, 3 events and 80 units in the second. The rate difference is 0.0825 events per exposure unit. Under the null the common-rate estimate is 15/180≈0.08333, so the reference means for the two counts are about 8.33 and 6.67. Note that even when the null says the rates are equal, unequal exposures still make the expected counts unequal.

Constructed event counts 12/3 with exposures 100/80; joint Poisson probabilities under the plug-in null and the E-test two-sided tail region are computed, with corresponding rates listed on the right. Not measured data, and not a conditional exact C-test or power comparison.
Feeding these four numbers into SciPy yields T≈2.0196 and two-sided E-test p≈0.04349.[1] At a prechosen significance level of 0.05, this result rejects equal rates. Reporting should also give both rates and their difference: the p-value says how common results at least as extreme as the statistic are under the null reference distribution; it is not the probability that the null is true, nor does it alone say how large or practically meaningful the difference is.
from scipy.stats import poisson_means_test
result = poisson_means_test(12, 100, 3, 80, diff=0,
alternative='two-sided')
print(result.statistic, result.pvalue)
# 2.0195672024949447 0.04349357994865282
Same data, different C-test p-value—why?
The conditional exact C-test uses another reference space. Under equal rates, first fix the total event count K; then the first group’s count follows a binomial distribution with parameters K and n₁/(n₁+n₂). In the example K=15 and the first-group probability is 100/180. A two-sided binomial test of the observed 12 yields p≈0.06939. That exceeds 0.05, so at the same prechosen level the null is not rejected.
The difference comes from how each test builds its null comparison: the C-test fixes the total count and conditions away the unknown common rate; the E-test plugs in the common-rate estimate and takes a tail probability in the joint distribution of the two counts. Research cited in the SciPy documentation evaluates the E-test’s power.[1] But a smaller p-value in this one example does not prove stronger power in every case; the testing method should be chosen before looking at the results.
Check the counting mechanism before use
This comparison depends on an independent Poisson counting model and exposure denominators matched to the events. If repeated events on the same subject are dependent, the data are clustered, or variability clearly exceeds what the model describes, the model needs reconsideration. Whatever test is used, interpretation should report event counts, exposures, rates, the rate difference, and the model together.
References
- [1] SciPy community. scipy.stats.poisson_means_test. SciPy Manual.