Poisson MLE, Dispersion Testing, and Normal Approximation for Counts
Statistics & ExperimentsModel answerLast updated
Given sample count data, derive the Poisson MLE and Wald CI, test for overdispersion, approximate a Poisson tail probability with continuity correction, and identify when the Normal approximation breaks down.
Count Data: Inference, Dispersion, and Tail Approximation
You have collected n = 200 independent per-minute event counts. The sample mean is x̄ = 14.5 and the sample variance is s² = 16.2.
Work through the four parts below. Show your reasoning at each step, including any approximations you rely on.
Part 1 — MLE and confidence interval
Assume the counts follow a Poisson(λ) distribution. Starting from the log-likelihood, derive the maximum likelihood estimator λ̂ and its asymptotic variance. Use these to construct a 95% Wald confidence interval for λ. Note any caveats about the validity of that standard error.
Part 2 — Testing equidispersion
The Poisson model requires that the mean and variance are equal. Specify a test of:
- H₀: the data are equidispersed (Poisson)
- H₁: the data are overdispersed
For your chosen test, write down the test statistic, state its reference distribution under H₀ (and what conditions are needed for that reference distribution to apply), and state your conclusion at α = 0.05 using the numbers above. Name every approximation your argument depends on.
Part 3 — Normal approximation with continuity correction
Consider a single count X ~ Poisson(λ = 120). Approximate P(100 ≤ X ≤ 140) using a Normal approximation with a continuity correction.
- Write out the exact Normal integral you are evaluating.
- Compute a numerical value.
- Explain what the continuity correction is doing and what error you would make by omitting it.
Part 4 — Validity of the approximation and alternatives
Give precise conditions under which the Normal approximation to a Poisson is reliable. Describe two regimes where it fails and explain why. If you observe s² ≫ x̄, what model would you reach for instead, and what single diagnostic would you check first?
Hints
Hint 1
For Part 1, the Poisson log-likelihood simplifies to a function of the sufficient statistic Σxᵢ. Take the derivative, set it to zero, and check the second derivative. The Fisher information for one Poisson observation is 1/λ — think about why, then check what happens when the Poisson variance assumption is wrong and how you'd correct the standard error.
Hint 2
For Part 2, the key identity is that under a Poisson model, Var(X) = E(X), so any test of equidispersion compares s² to x̄. The statistic (n−1)s²/x̄ is Fisher's index of dispersion. Under H₀ it follows a χ²₍ₙ₋₁₎ distribution asymptotically. With 199 degrees of freedom you'll want either a table or the Wilson–Hilferty Normal approximation to the chi-squared quantile. The test is one-sided because H…
Hint 3
For Part 3, remember that a discrete count k has its full probability mass spread across the interval [k−0.5, k+0.5] when you approximate it with a continuous density. So the event {100 ≤ X ≤ 140} maps to {99.5 ≤ Y ≤ 140.5} in the Normal. For Part 4, the key failure modes are small λ (skewness and non-negativity) and fat tails (the Poisson right tail decays slower than Gaussian). When s² ≫ x̄, the…
Model answer
Medium Try it yourself first — then compare your approach, complexity and edge cases.
Model Answer
Part 1 — MLE, asymptotic variance, and 95% Wald CI
Log-likelihood. For n i.i.d. counts x₁, …, xₙ ~ Poisson(λ):
ℓ(λ) = (Σxᵢ) log λ − nλ + constant
Score equation. Differentiating and setting to zero:
ℓ′(λ) = Σxᵢ / λ − n = 0 → λ̂ = x̄ = 14.5
The second derivative ℓ″(λ) = −Σxᵢ/λ² is negative everywhere, confirming this is a maximum.
Fisher information. For a single observation, I₁(λ) = E[X/λ²] = 1/λ. For n observations, Iₙ(λ) = n/λ, so the asymptotic variance of λ̂ is:
Var(λ̂) ≈ λ/n → plugging in λ̂: Var̂(λ̂) = 14.5/200 = 0.0725, SE ≈ 0.269
95% Wald CI: 14.5 ± 1.96 × 0.269 = (13.97, 15.03)
Important caveat. This SE assumes Var(X) = λ exactly. If the data are overdispersed, it understates uncertainty. A model-robust alternative uses the sandwich SE: √(s²/n) = √(16.2/200) ≈ 0.285, which gives a slightly wider interval. Reporting this alongside the Poisson SE shows the interviewer you understand the assumption embedded in the MLE variance.
Part 2 — Dispersion test
Test statistic — Fisher's index of dispersion:
D = (n − 1)s² / x̄ = 199 × (16.2 / 14.5) = 199 × 1.117 = 222.3
This equals the Poisson Pearson χ² statistic Σ(xᵢ − x̄)² / x̄.
Reference distribution. Under H₀, D ~ χ²₍ₙ₋₁₎ = χ²₁₉₉ asymptotically. This approximation is reliable when λ is not too small (rule of thumb: λ ≳ 5); with λ̂ = 14.5 it is comfortable.
Critical value. Using the Wilson–Hilferty approximation for χ²₁₉₉ at the 95th percentile: ≈ 232.9. Equivalently, for large df the statistic z = (D − 199)/√398 = 23.3/19.95 ≈ 1.17 is approximately standard Normal; the one-sided critical value is 1.645.
Decision. D = 222.3 < 232.9 (z = 1.17 < 1.645, p ≈ 0.12). Fail to reject H₀ at α = 0.05. The 12% excess variance is within what sampling noise can produce at n = 200.
Approximations used:
- χ² reference distribution for D — requires large n and λ not too small.
- Wilson–Hilferty / Normal approximation to the χ²₁₉₉ quantile.
- Independence of the minute-level counts — serial autocorrelation would invalidate this test entirely.
What not to say: failing to reject does not prove equidispersion. The test has limited power against mild overdispersion, and the observed dispersion ratio of 1.12 is the kind of signal that a power analysis would show is hard to detect at n = 200.
Part 3 — Normal approximation with continuity correction, λ = 120
Setup. X ~ Poisson(120) ≈ Y ~ N(120, 120), so σ = √120 ≈ 10.954.
Continuity correction. Each integer k contributes mass to the interval [k − 0.5, k + 0.5] in the continuous approximation. So {100 ≤ X ≤ 140} becomes {99.5 ≤ Y ≤ 140.5}.
Integral:
P(100 ≤ X ≤ 140) ≈ ∫₉₉.₅^{140.5} (1/√(240π)) exp(−(x−120)²/240) dx = Φ((140.5−120)/√120) − Φ((99.5−120)/√120)
Numerics:
- z = ±20.5 / 10.954 = ±1.871
- Φ(1.871) ≈ 0.9694
P ≈ 2 × 0.9694 − 1 ≈ 0.939
Effect of omitting the correction. Without it, z = ±20/10.954 = ±1.826, giving 2Φ(1.826) − 1 ≈ 0.932 — an absolute error of about 0.007. Each endpoint (k = 100 and k = 140) carries roughly 0.003–0.004 of the total probability; dropping the correction removes half of each endpoint mass. The correction matters most when σ is small relative to the unit spacing or the interval is narrow.
Quick verification in Python:
from scipy.stats import poisson, norm
import math
lam = 120
sd = math.sqrt(lam)
exact = poisson.cdf(140, lam) - poisson.cdf(99, lam)
approx_cc = norm.cdf(140.5, lam, sd) - norm.cdf(99.5, lam, sd)
approx_raw = norm.cdf(140, lam, sd) - norm.cdf(100, lam, sd)
print(f"exact={exact:.4f} with_cc={approx_cc:.4f} without_cc={approx_raw:.4f}")
# exact=0.9398 with_cc=0.9389 without_cc=0.9323
The continuity-corrected approximation is within 0.001 of the exact value.
Part 4 — When the approximation works, when it fails, and what to use instead
Reliable when:
- λ is large (commonly λ ≳ 10–20). Poisson(λ) is a sum of λ Poisson(1) variables, so the CLT applies; skewness = 1/√λ ≈ 0.09 at λ = 120.
- The probability of interest is in the central bulk (roughly within ±3σ of the mean).
- A continuity correction is applied for integer-event probabilities.
Fails in two regimes:
-
Small λ. At λ = 2, the distribution is heavily right-skewed and places substantial mass at zero (P(X=0) = e⁻² ≈ 0.135). The Normal puts mass on negative values and badly misrepresents both the mode and the right tail. Use exact Poisson probabilities here.
-
Far tails. Even at large λ, the Poisson right tail is heavier than a Gaussian of the same variance. For rare-event probabilities (say 10⁻⁵), the relative error of the Normal approximation is large. Better alternatives are exact Poisson tail sums, a Chernoff bound, a saddlepoint approximation, or Anscombe's variance-stabilizing transform 2√(X + 3/8) ~ N(2√λ, 1).
When s² ≫ x̄ — the Negative Binomial model.
The Negative Binomial (NB) arises as a Gamma–Poisson mixture: X | Λ ~ Poisson(Λ) with Λ ~ Gamma(k, μ/k). This gives E[X] = μ and Var[X] = μ + μ²/k. The parameter k controls the degree of overdispersion; k → ∞ recovers the Poisson.
Method-of-moments estimate of k from our data: k̂ = x̄² / (s² − x̄) = 210.25 / 1.7 ≈ 124 — a large value, consistent with the borderline result in Part 2. The NB can be fit in a GLM framework with family=NegativeBinomial in statsmodels or glm.nb in R.
A quasi-Poisson model (Var = φμ) is a lighter-weight alternative that inflates standard errors by √φ̂ without changing point estimates — useful when you only need corrected inference, not a full generative model.
First diagnostic to check: the Pearson χ²/df from a fitted Poisson GLM. A value substantially above 1 (rule of thumb: > 1.5) is the clearest signal to move to NB or quasi-Poisson. Supporting diagnostics include a mean–variance plot across subgroups (quadratic trend → NB) and a rootogram to detect zero inflation.
Common mistakes to avoid
- Using s² instead of x̄ as the Poisson variance in Part 1 — the whole point of the Poisson model is that these should be equal, and the MLE SE uses the model-implied variance, not the sample variance.
- Running a two-sided dispersion test when H₁ is specifically overdispersion — this halves your power.
- Using df = n instead of n − 1 in the dispersion statistic (one degree of freedom is spent estimating λ).
- Forgetting the continuity correction in Part 3 and not being able to quantify the resulting error.
- Claiming that failing to reject H₀ in Part 2 proves the data are Poisson — absence of evidence is not evidence of absence, especially with modest n.