Gamma-Poisson Conjugacy
Let be an unknown Poisson rate and let be i.i.d. Poisson counts. The Gamma-Poisson conjugate pair is
which produces the closed-form posterior
The prior hyperparameters update by adding the total event count to the shape and the total exposure to the rate . The prior is interpretable as having previously observed events over units of exposure (shape/rate parametrization: mean , variance ).Exposure-weighted form. When observation has exposure (time, area, population) and , the posterior becomes . Total events over total exposure.
Posterior summaries:
- Posterior mean: — a weighted average of the prior mean and the MLE with weights and .
- Posterior mode (MAP): when ; equals the MLE under the improper prior .
- Posterior variance: ; shrinks like .
Common prior choices:
- (improper, flat on ): posterior is ; MAP equals MLE.
- (improper Jeffreys prior): from Fisher information.
- with small : weakly informative; mean , effective exposure .
Posterior predictive for a new count over unit exposure:
a Negative Binomial (also called Gamma-Poisson mixture) with variance strictly larger than the plug-in Poisson prediction. The extra variance is exactly the amount required to account for remaining uncertainty about , and is the Bayesian account of why raw Poisson models overstate confidence.
Prerequisites
- 3.1 Bayesian Framework — prior, likelihood, posterior, Bayes’ rule.
- 3.5 Conjugate Families — the general conjugacy pattern this note instantiates.
- 2.2b.9 Poisson Distribution — the likelihood.
- 2.2c.6 Gamma Distribution — the conjugate prior family.
Intuition
Count data from a Poisson process carries information about its rate only through the sum of counts and the total exposure. The Poisson likelihood, written as a function of , is proportional to — a kernel. The Gamma density has exactly that kernel (), so multiplying prior by likelihood adds exponents and stays Gamma. Mechanically, the prior contributes pseudo-events over pseudo-exposure; the data contribute real events over real units of exposure; the posterior just accumulates both.
The Negative Binomial posterior predictive reveals why Poisson regression models so often underfit dispersion. A frequentist plug-in predicts , which has variance equal to its mean. The Bayesian account, marginalizing over posterior uncertainty about , predicts with variance strictly greater than its mean — exactly the overdispersion that a practicing analyst sees in real count data (insurance claims, goals per soccer match, radioactive decay counts observed under rate uncertainty). Negative-Binomial regression is, at bottom, Bayesian Gamma-Poisson with the rate-uncertainty baked in.
Properties
(Posterior Mean as Shrinkage) The posterior mean is a convex combination of the prior mean and the MLE, weighted by effective sample sizes.
The prior’s effective exposure is , the data’s exposure is . When , the posterior sits near the prior mean; when , it sits at the MLE. This is the count-data analog of 3.5.2 Normal-Normal Model’s precision-weighted averaging.
(Posterior Predictive is Negative Binomial, Not Poisson) Predictive distribution inflates variance to account for rate uncertainty.
with mean and variance , which exceeds the mean. As and the posterior concentrates at , the Negative Binomial converges to and variance inflation vanishes.
(Sequential Updating) Gamma-Poisson updates are associative in the parametrization.
After seeing of size and then of size , the posterior is , identical to processing all observations at once. The same collapse holds for exposure-weighted counts. See 3.1 Bayesian Framework’s (Sequential Updating) property.
(Bernstein-von Mises) As , the posterior converges to the Gaussian around the MLE with variance equal to the inverse Fisher information.
The Gamma posterior has mean and variance . The Fisher information for a Poisson rate is , so the inverse-information variance is , matching the posterior variance. The Gamma shape grows linearly with , so the distribution tightens to Gaussian by the central-limit argument applied inside the Gamma family.
(Jeffreys Prior is Gamma) The improper prior is the Jeffreys (Fisher-information-induced) prior.
For a Poisson likelihood, , so the Jeffreys prior is improper Gamma with . The posterior is proper whenever at least one observation exceeds zero. This prior is reparametrization-invariant: the Jeffreys prior for yields the same inference as the Jeffreys prior for .
(Exposure Scales Linearly) When observation has known exposure and , posteriors accumulate both events and exposure.
This is the workhorse form in epidemiology (incidence rates per person-year), quality control (defects per item-hour), and particle-physics counting experiments (events per unit luminosity). The posterior mean is “total events over total exposure,” with priors as pseudo-events over pseudo-exposure.
(Sum of Counts is Sufficient) Only and (or ) matter for inference.
By the factorization criterion, is a sufficient statistic for . Two datasets with the same sum and same exposure yield identical posteriors regardless of the individual counts. This is the Poisson-family version of the sufficiency that made the Beta-Binomial collapse to .
Examples
Example 1: Storefront Traffic Rate
A retailer wants to estimate the hourly customer arrival rate at a new store. A prior elicited from an experienced operations manager is , which has prior mean customers per hour and prior standard deviation . Over one full day (8 hours), the store logs arrivals.
Posterior: .
Posterior mean: customers/hour.
Posterior std: .
95% equal-tail credible interval (Gamma quantiles): .The prior’s effective exposure is hours. After 8 hours of data, the posterior mean has shifted from the prior mean of 5.0 toward the observed rate of 48/8 = 6.0, landing at 5.8.
Posterior predictive for next hour’s count: , with mean and variance — larger than by exactly the factor .
Example 2: Defects per Unit (Exposure-Weighted)
A manufacturing line records defects per batch, where batches differ in size. Batches have sizes units and observed defect counts . Using a weakly informative prior (prior mean defects per unit with low confidence):
Total events: .
Total exposure: .
Posterior: .
Posterior mean: defects per unit.
MLE by comparison: .The prior’s effective exposure of 50 units nudges the posterior mean a hair toward the prior mean of 0.02, but the 565 units of real data dominate. A 95% credible interval on is approximately .
Example 3: Conjugate Prior as Pseudo-Data
A Bayesian analyst asserts prior without justification. Challenged to explain what this prior “means,” the analyst re-expresses it as: “Before seeing data, I behave as though I had previously seen events in units of exposure.”
Verification: If an improper flat prior were updated with imaginary data of events and exposure, the posterior would be — precisely the stated prior.
Hyperparameter elicitation consequence: if an expert is willing to say “my prior rate is around 3 events per hour, and I am about as confident as if I had watched 5 hours of data,” then and , giving and . This pseudo-data framing is often easier to elicit than a raw pair.
Derivation
Goal: derive the posterior.
The Gamma prior density is
The Poisson likelihood for i.i.d. observations is
Multiplying prior and likelihood:
the kernel of . The normalizing constant follows automatically. For exposure-weighted observations, the likelihood becomes , and the posterior hyperparameters become .
Posterior predictive: for new with unit exposure,
With , the integral is a Gamma-Poisson mixture, closed-form as in the standard stopping-time parametrization.
See Also
- 3.5 Conjugate Families — parent index.
- 3.5.1 Beta-Binomial Model — canonical conjugate-pair template.
- 3.5.2 Normal-Normal Model — continuous analog with precision addition.
- 3.5.4 Dirichlet-Multinomial Model — categorical extension of Beta-Binomial.
- 3.6 Hierarchical Models — Gamma-Poisson hierarchies are the natural model for count data across units with varying exposure (e.g., disease incidence across counties).
- 2.2b.9 Poisson Distribution — the likelihood.
- 2.2c.6 Gamma Distribution — the prior.