Bayesian Poisson Regression
The Bayesian Poisson regression model (also called log-linear model) is
The log-link forces . The likelihood is
Like logistic regression, the Poisson likelihood is not conjugate to any standard prior on ; inference uses the Laplace approximation or MCMC.MAP via Newton (IRLS analog). The log-posterior is concave in . The gradient and Hessian are
Newton’s method converges quadratically, giving the MAP and the Laplace-posterior covariance .Laplace approximation: . This Gaussian serves equally well as an approximate posterior summary or as a proposal distribution for Metropolis-Hastings when Laplace’s accuracy is insufficient — see 3.11.1 Metropolis-Hastings.
Posterior predictive for a new input : conditional on , ; marginally is a Poisson-lognormal mixture. A useful approximation uses a Gamma-Poisson (Gamma-Poisson) matching: moment-match to a Gamma distribution, yielding a Negative-Binomial predictive with explicit overdispersion.
Overdispersion caveat. Real count data typically have , violating the Poisson equidispersion assumption. Bayesian remedies: (a) add an observation-level random effect so that — the log-normal Poisson model; (b) replace Poisson with Negative Binomial (arising as a Gamma-Poisson mixture over ) at the likelihood level. Both remove the rigid mean-variance coupling.
Prerequisites
- 3.1 Bayesian Framework — Bayesian mechanics.
- 3.8 Bayesian Regression — parent.
- 3.9 Laplace Approximation — standard non-conjugate tool.
- 3.5.3 Gamma-Poisson Model — univariate conjugate baseline.
Intuition
Poisson regression models the log of the rate as a linear function of covariates: each unit increase in multiplies the rate by . The log link ensures positivity without constraint, at the cost of breaking conjugacy with Gaussian priors on . The log-posterior is the sum of a Poisson log-likelihood (strictly concave in ) and a Gaussian log-prior (quadratic), so the posterior is globally log-concave with a unique maximum — ideal for Laplace approximation.
The concavity makes Newton’s method converge quickly from any reasonable starting point. Each Newton step reweights observations by : observations with high predicted rate carry proportionally more weight, mirroring the Fisher information of a Poisson variate (whose variance equals its mean). The Bayesian addition is the regularization term , which guarantees invertibility of the Newton step even when the data are sparse or the design matrix is rank-deficient.
The overdispersion problem is the elephant in the Poisson room. Empirical count data almost always have variance-to-mean ratios well above 1, and fitting Poisson regression to them produces posterior intervals that are too narrow. The cleanest fix is a log-normal random effect per observation — which, integrated out, gives a log-normal-Poisson mixture with adjustable overdispersion. Bayesian software handles this naturally because the random effect fits into the hierarchical-model framework (3.6 Hierarchical Models) and the Laplace approximation extends straightforwardly.
Properties
(Log-Link Forces Positive Rates) for every .
This sidesteps any positivity constraint on the linear predictor but means that coefficients are interpreted multiplicatively: is the rate ratio for a unit increase in . A posterior credible interval for translates to a credible interval for the rate ratio via exponentiation.
(Log-Posterior is Strictly Concave) The MAP is unique and globally optimal.
The Hessian is positive definite (positive semi-definite first term, positive definite second term), so the log-posterior is strictly concave. Newton’s method converges quadratically to the MAP from any reasonable starting point. The prior-precision term is what rescues the non-informative case: the raw Poisson likelihood alone can have a non-strictly-concave posterior if the design has linear dependence.
(Laplace as MH Proposal) The Laplace Gaussian is a standard Metropolis-Hastings proposal distribution.
When full MH is required (e.g., with non-Gaussian priors or skewed posteriors), the proposal with (Roberts-Gelman-Gilks optimal scaling for random-walk MH targeting a Gaussian) gives high acceptance rates in practice. This combines Laplace’s locality with MH’s exactness: if the true posterior is nearly Gaussian, the proposal is near-perfect; if it deviates, MH corrects. See 3.11.1 Metropolis-Hastings.
(Offset Terms Handle Exposure) Known exposures enter as offsets in the linear predictor.
If observation is a count over exposure (time, area, population at risk), the model becomes . Equivalently, a fixed term is added to the linear predictor:
This offset carries no coefficient — its effect is fixed to 1. Bayesian and frequentist software support this as standard; the posterior structure on is unchanged.
(Overdispersion Diagnostic) A log-normal-Poisson or Negative-Binomial extension fixes equidispersion failures.
If Pearson residuals from the fitted Poisson model have variance , the data are overdispersed. Two Bayesian extensions:
- Log-normal Poisson: with . Integrating out gives a log-normal-Poisson marginal with unbounded dispersion; fit by Laplace or MCMC.
- Negative-Binomial: with , integrating to . Fit by MCMC; is a learned overdispersion parameter.
The log-normal version fits naturally into the hierarchical-models framework and is the default in Bayesian GLMM software.
(Evidence for Model Comparison) Laplace approximation gives closed-form log-marginal-likelihood.
This enables Bayes-factor-based model selection and evidence-tuned prior precisions; see 3.7 Marginal Likelihood. The asymptotic BIC surrogate drops the prior-density term and uses in place of the Hessian log-determinant.
(Sparse Counts Require Informative Priors) When most , flat priors lead to unstable estimates.
In sparse count data (e.g., rare disease incidence), the MLE can be extreme or undefined for covariate levels that appear only with . A weakly informative prior (e.g., on standardized covariates) stabilizes the MAP and preserves sensible credible intervals. This is the count-data analog of logistic regression’s separability problem.
Examples
Example 1: Single-Covariate Poisson Regression
Data with and (baseline rate , rate ratio ). Prior .
Newton iteration: converges in 4 iterations to .
Laplace posterior standard deviations: from diagonals, , .
95% CI for rate ratio : , bracketing the true 1.35.
Posterior predictive at : posterior mean rate ; predictive mean matches, but predictive distribution is Poisson-lognormal with inflated variance relative to .
Example 2: Exposure-Adjusted Disease Incidence
A public-health study tallies disease cases in counties over one year, with county populations (offset) and a single risk covariate (e.g., average pollutant concentration).
Model: . The offset is fixed; coefficient measures the log-rate increase per unit pollution.
Prior: (placing the baseline rate near per person-year), (weakly informative).
Posterior: Laplace approximation with Newton’s method.
Interpretation: if posterior mean with SD 0.05, the rate ratio for one unit of pollution is with 95% CI , a 16% per-unit increase significantly different from 1.
Model check: compare fitted variances to observed variance across counties. If Pearson residuals show large dispersion, add a county-level random effect to upgrade to a log-normal Poisson hierarchical model.
Example 3: Laplace Proposal for Metropolis-Hastings
Suppose the analyst prefers full MCMC over Laplace point estimates (perhaps for better tail summaries or for a non-Gaussian prior). Use the Laplace-approximate posterior as the MH proposal:
- Preprocess: Newton-iterate to MAP ; compute Laplace covariance .
- MH step : propose with (Roberts-Gelman-Gilks optimal scaling).
- Accept with probability — proposal is symmetric, so no proposal-density ratio is needed.
For the Poisson regression in Example 1, this typically achieves acceptance rates near the 23% optimum for and produces effective sample sizes comparable to conjugate Gibbs samplers. See 3.11.1 Metropolis-Hastings.
Derivation
Goal: derive the Laplace approximation and IRLS-analog Newton updates for Poisson regression.
The log-posterior (up to -free constants):
Differentiating once:
Differentiating twice:
which is negative definite. The MAP is the unique solution to , found by Newton’s method:
with . Defining the working response casts this as a weighted least-squares fit, the Poisson analog of IRLS.
At convergence, and the Laplace covariance is
Log-marginal-likelihood: substituting into the standard Laplace formula (3.9 Laplace Approximation),
See Also
- 3.8 Bayesian Regression — parent index.
- 3.9 Laplace Approximation — underlying approximation technique.
- 3.5.3 Gamma-Poisson Model — univariate conjugate baseline; also the basis of Negative-Binomial overdispersion extensions.
- 3.8.3 Bayesian Logistic Regression — non-conjugate binary-response counterpart with the same Laplace recipe.
- 3.11.1 Metropolis-Hastings — the Laplace Gaussian is a standard MH proposal in this setting.
- 3.11.2 Gibbs Sampling — hierarchical extensions fit into Gibbs via the log-normal random-effect formulation.
- 3.6 Hierarchical Models — overdispersion via observation-level random effects.
- 3.7 Marginal Likelihood — Laplace-approximate evidence for model comparison.