Skip to contentScholarGate
LibraryBookshelfDeskReview StudioAssistant
Sign in
On this page
IntuitionHow it worksWhen to use itStrengths & limitationsCommon pitfallsApplicationsFrequently asked🔒 Read the full methodSourcesRelated methods
Cite this pageSpotted an issue on this page? Report or suggest a fix →
Home›Statistics›Bayesian Negative Binomial Regression
Regression modelRegression / GLM

Bayesian Negative Binomial Regression

Also known as: Bayesian NB regression, Bayesian negbin model, Bayesian overdispersed count regression, Bayesian NB-2 model

Bayesian Negative Binomial Regression models non-negative integer count outcomes that exhibit overdispersion — where the variance exceeds the mean — by placing a negative binomial likelihood on the data and specifying prior distributions over the regression coefficients and the dispersion parameter. Posterior inference is typically performed via Markov chain Monte Carlo (MCMC) or variational methods, yielding full posterior distributions rather than point estimates.

ScholarGate
  1. Regression model
  2. v1
  3. 2 Sources
  4. PUBLISHED
Cite this page →
Tools & resources
Download slides
Learn & explore

Read the full method

Members only

Sign in with a free account to read this section.

Sign in

Method map

The neighbourhood of related methods — select a node to explore.

Bayesian Negative Binomial Regression
Bayesian Generalized Lin…Bayesian Poisson Regress…Bayesian Zero-inflated m…Negative Binomial Regres…Poisson RegressionZero-inflated model

When to use it

Use Bayesian Negative Binomial Regression when the outcome is a count, overdispersion is present (conditional variance exceeds the conditional mean, detectable via a dispersion test or by comparing Poisson and NB fits), and you want full uncertainty quantification over all parameters including dispersion. It is especially valuable with small-to-moderate samples where likelihood-based asymptotic intervals are unreliable, when incorporating prior information from previous studies, or when you need to propagate uncertainty into downstream decisions. Do not use it when the outcome is truly Poisson-distributed (no overdispersion), when counts are bounded and better suited to a binomial model, or when the computational cost of MCMC is prohibitive and a frequentist NB GLM suffices.

Strengths & limitations

Strengths
  • Handles overdispersed counts directly through a dispersion parameter, outperforming Poisson when variance exceeds the mean.
  • Provides full posterior distributions for all parameters, enabling exact finite-sample credible intervals rather than asymptotic approximations.
  • Prior distributions enable principled regularisation, improving stability in small samples or with sparse predictors.
  • Naturally propagates parameter uncertainty into predictions through the posterior predictive distribution.
  • Model comparison via LOO-CV or WAIC is straightforward within the Bayesian framework.
Limitations
  • MCMC sampling is computationally expensive for large datasets or complex hierarchical extensions.
  • Prior specification for the dispersion parameter phi requires care; vague priors can lead to poor mixing or unrealistic posteriors.
  • Results depend on prior choices, which may be difficult to justify or communicate to non-Bayesian audiences.
  • Convergence diagnostics add complexity compared to frequentist maximum likelihood fitting.
  • Not suitable when zero-inflation is substantial — a Bayesian zero-inflated negative binomial is then preferable.

Frequently asked

How do I tell whether my count data need a negative binomial rather than Poisson model?

Fit both models and compare them with LOO-CV (in the Bayesian framework) or a likelihood ratio test. Also inspect the ratio of residual deviance to degrees of freedom in the Poisson fit — a ratio well above 1 suggests overdispersion. A posterior predictive check that shows the Poisson model consistently under-predicts the tails is a clear visual signal.

What prior should I use for the dispersion parameter phi?

A Half-Normal(0, 1) or Exponential(1) prior on the reciprocal of phi (sometimes called the shape parameter) is a widely recommended weakly informative default. Avoid Uniform(0, large) priors as they can place implausible mass on extreme values and cause slow MCMC mixing.

Can I add random effects (hierarchical structure) to a Bayesian NB model?

Yes. Bayesian NB regression extends naturally to hierarchical models by placing further priors on group-level coefficients. This is straightforward in brms or Stan and is one of the main advantages of the Bayesian approach over frequentist alternatives.

How do I interpret the regression coefficients?

Exponentiating a posterior coefficient exp(beta_j) gives the incidence rate ratio: the multiplicative change in the expected count for a one-unit increase in predictor j, holding other predictors constant. A credible interval for exp(beta_j) that excludes 1 indicates a credibly non-null effect.

What if many counts are zero?

If zeros are more frequent than a negative binomial distribution predicts, a Bayesian zero-inflated negative binomial (ZINB) model is more appropriate. Check with a posterior predictive plot comparing observed versus predicted zero counts.

Sources

  1. Gelman, A., Carlin, J. B., Stern, H. S., Dunson, D. B., Vehtari, A., & Rubin, D. B. (2013). Bayesian Data Analysis (3rd ed.). CRC Press. ISBN: 978-1439840955
  2. Cameron, A. C., & Trivedi, P. K. (2013). Regression Analysis of Count Data (2nd ed.). Cambridge University Press. ISBN: 978-1107667273

How to cite this page

ScholarGate. (2026, June 3). Bayesian Negative Binomial Regression. ScholarGate. https://scholargate.app/en/statistics/bayesian-negative-binomial-regression

Related methods

Bayesian Generalized Linear ModelBayesian Poisson RegressionBayesian Zero-inflated modelNegative Binomial RegressionPoisson RegressionZero-inflated model

Which method?

Set this method beside its closest kin and read them side by side — the library lays the books on the table; the choice is yours.

  • Bayesian Generalized Linear ModelStatistics↔ compare
  • Bayesian Poisson RegressionStatistics↔ compare
  • Bayesian Zero-inflated modelStatistics↔ compare
  • Negative Binomial RegressionEconometrics↔ compare
  • Poisson RegressionEconometrics↔ compare
  • Zero-inflated modelStatistics↔ compare
Compare side by side →

Referenced by

Bayesian Generalized Linear ModelBayesian Poisson RegressionBayesian Zero-inflated model

Similar methods

Bayesian Poisson RegressionNegative Binomial RegressionBayesian Zero-inflated modelPoisson RegressionRobust Negative Binomial RegressionBayesian Generalized Linear ModelZero-Inflated Negative Binomial RegressionZero-inflated model

Related reference concepts

Hierarchical Bayesian ModelsMultilevel and Partial Pooling ModelsBayesian Model Comparison and SelectionHyperpriors and ShrinkageEmpirical Bayes MethodsPredictive Information Criteria

Spotted an issue on this page? Report or suggest a fix →

ScholarGate — Bayesian Negative Binomial Regression (Bayesian Negative Binomial Regression). Retrieved 2026-07-22 from https://scholargate.app/en/statistics/bayesian-negative-binomial-regression · Dataset: https://doi.org/10.5281/zenodo.20539026
Quick facts
Originator
Gelman, Carlin, Stern, Dunson, Vehtari & Rubin; Cameron & Trivedi
Year
1990s–2000s
Type
Bayesian GLM for overdispersed counts
DataType
Non-negative integer (count) outcome with overdispersion
Subfamily
Regression / GLM
Related methods
Bayesian Generalized Linear ModelBayesian Poisson RegressionBayesian Zero-inflated modelNegative Binomial RegressionPoisson RegressionZero-inflated model
ScholarGate

A content-first reference library for research methods — what each one is, how it works, and where it comes from.

Open data (CC-BY)

Explore

  • Library
  • Search the library…
  • Browse by field
  • Fields
  • Journey
  • Compare
  • Which method?

Reference

  • Subjects
  • Atlas
  • Glossary
  • Methodology
  • Philosophy

Your tools

  • Bookshelf
  • Desk
  • Chat

Company

  • About
  • Pricing
  • Contact
  • Suggest a method

Entries are compiled from published sources for reference. Verifying the accuracy and suitability of any information for your own use remains your responsibility.

© 2026 ScholarGate · A research-method reference library
  • Privacy
  • Cookies
  • Terms
  • Delete account