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

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

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

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