x_1 <- 1500
x_2 <- 1600
k <- x_1 - x_2
sigma <- sqrt(x_1 + x_2)
(p_value <- 2 * pnorm(k, mean = 0, sd = sigma))[1] 0.07248609
December 6, 2024
We can construct an approximate, pragmatic statistical test. The test statistic \(k = x_2 - x_1\) follows approximately (asymptotically with growing \(\lambda_1\) and \(\lambda_2\)) a normal distribution with \(\mu = 0\) and \(\sigma = \sqrt{x_1 + x_2}\).
R offers an exact test.
It may be surprising – but measurement of two counts for different conditions can be enough in order to test for equality of event rates.