Overdispersed count data are common in many applications, where the variance exceeds the mean, and the Poisson model is inadequate. The two-parameter negative binomial (NB2) model addresses this limitation through a dispersion parameter and provides a standard framework for modeling overdispersed counts. In this paper, we evaluated Bayesian credible intervals for the NB2 mean and Bayesian posterior predictive intervals for a single future count and for the mean of a future sample in a controlled one-sample, intercept-only setting. Posterior inference was obtained using weakly informative priors and Hamiltonian Monte Carlo with the No-U-Turn Sampler. The Bayesian intervals were assessed through simulation using operational coverage probability and expected width, and were compared with Wald, MLE-based normal, and parametric bootstrap confidence and prediction intervals. Prior-family sensitivity was examined using calibrated lognormal, Gamma, and log-Student-$t$ priors. Robustness was also evaluated under zero-inflated NB2, structured-zero, and Poisson-lognormal data-generating mechanisms while fitting the NB2 model. Two real-data examples, involving Quine school-absence counts and epilepsy baseline seizure counts, illustrated the practical implementation of the methods.
Citation: Md Mahadi Hasan, Md Monzur Murshed, Md Nahid Hasan. Bayesian credible and prediction intervals for the two-parameter negative binomial (NB2) model[J]. Electronic Research Archive, 2026, 34(9): 6957-6998. doi: 10.3934/era.2026302
Overdispersed count data are common in many applications, where the variance exceeds the mean, and the Poisson model is inadequate. The two-parameter negative binomial (NB2) model addresses this limitation through a dispersion parameter and provides a standard framework for modeling overdispersed counts. In this paper, we evaluated Bayesian credible intervals for the NB2 mean and Bayesian posterior predictive intervals for a single future count and for the mean of a future sample in a controlled one-sample, intercept-only setting. Posterior inference was obtained using weakly informative priors and Hamiltonian Monte Carlo with the No-U-Turn Sampler. The Bayesian intervals were assessed through simulation using operational coverage probability and expected width, and were compared with Wald, MLE-based normal, and parametric bootstrap confidence and prediction intervals. Prior-family sensitivity was examined using calibrated lognormal, Gamma, and log-Student-$t$ priors. Robustness was also evaluated under zero-inflated NB2, structured-zero, and Poisson-lognormal data-generating mechanisms while fitting the NB2 model. Two real-data examples, involving Quine school-absence counts and epilepsy baseline seizure counts, illustrated the practical implementation of the methods.
| [1] |
F. J. Anscombe, The statistical analysis of insect counts based on the negative binomial distribution, Biometrics, 5 (1949), 165–173. https://doi.org/10.2307/3001918 doi: 10.2307/3001918
|
| [2] |
G. J. S. Ross, D. A. Preece, The negative binomial distribution, Statistician, 34 (1985), 323–336. https://doi.org/10.2307/2987659 doi: 10.2307/2987659
|
| [3] |
J. F. Lawless, Negative binomial and mixed Poisson regression, Can. J. Stat., 15 (1987), 209–225. https://doi.org/10.2307/3314912 doi: 10.2307/3314912
|
| [4] |
B. J. Park, D. Lord, Adjustment for maximum likelihood estimate of negative binomial dispersion parameter, Transp. Res. Rec., 2061 (2008), 9–19. https://doi.org/10.3141/2061-02 doi: 10.3141/2061-02
|
| [5] |
G. R. Wood, Confidence and prediction intervals for generalised linear accident models, Accid. Anal. Prev., 37 (2005), 267–273. https://doi.org/10.1016/j.aap.2004.10.005 doi: 10.1016/j.aap.2004.10.005
|
| [6] | J. Sanchez, Y. He, Internet data analysis for the undergraduate statistics curriculum, J. Stat. Educ., 13 (2005). https://doi.org/10.1080/10691898.2005.11910568 |
| [7] |
M. P. Sormani, L. Bonzano, L. Roccatagliata, G. R. Cutter, G. L. Mancardi, P. Bruzzi, Magnetic resonance imaging as a potential surrogate for relapses in multiple sclerosis: A meta-analytic approach, Ann. Neurol., 65 (2009), 268–275. https://doi.org/10.1002/ana.21606 doi: 10.1002/ana.21606
|
| [8] |
M. M. Hasan, K. Krishnamoorthy, Confidence intervals and prediction intervals for two-parameter negative binomial distributions, J. Appl. Stat., 51 (2024), 2420–2435. https://doi.org/10.1080/02664763.2023.2297157 doi: 10.1080/02664763.2023.2297157
|
| [9] |
E. C. K. Pagui, A. Salvan, N. Sartori, Improved estimation in negative binomial regression, Stat. Med., 41 (2022), 2403–2416. https://doi.org/10.1002/sim.9361 doi: 10.1002/sim.9361
|
| [10] |
L. J. Willson, J. L. Folks, J. H. Young, Complete sufficiency and maximum likelihood estimation for the two-parameter negative binomial distribution, Metrika, 33 (1986), 349–362. https://doi.org/10.1007/BF01894768 doi: 10.1007/BF01894768
|
| [11] |
J. Aragón, D. Eberly, S. Eberly, Existence and uniqueness of the maximum likelihood estimator for the two-parameter negative binomial distribution, Stat. Probab. Lett., 15 (1992), 375–379. https://doi.org/10.1016/0167-7152(92)90157-Z doi: 10.1016/0167-7152(92)90157-Z
|
| [12] |
B. A. Dang, K. Krishnamoorthy, Confidence intervals, prediction intervals and tolerance intervals for negative binomial distributions, Stat. Pap., 63 (2022), 795–820. https://doi.org/10.1007/s00362-021-01255-y doi: 10.1007/s00362-021-01255-y
|
| [13] |
W. W. Piegorsch, Maximum likelihood estimation for the negative binomial dispersion parameter, Biometrics, 46 (1990), 863–867. https://doi.org/10.2307/2532104 doi: 10.2307/2532104
|
| [14] |
U. Bandara, R. Gill, R. Mitra, On computing maximum likelihood estimates for the negative binomial distribution, Stat. Probab. Lett., 148 (2019), 54–58. https://doi.org/10.1016/j.spl.2019.01.009 doi: 10.1016/j.spl.2019.01.009
|
| [15] | D. Shilane, S. Evans, A. Hubbard, Confidence intervals for negative binomial random variable of high dispersion, Int. J. Biostat., 6 (2010), 28 |
| [16] |
K. Krishnamoorthy, M. M. Hasan, Inference on the difference and ratio of means of two-parameter negative binomial distributions, J. Stat. Comput. Simul., 96 (2026), 1417–1438. https://doi.org/10.1080/00949655.2025.2592084 doi: 10.1080/00949655.2025.2592084
|
| [17] |
J. Y. Dauxois, P. Druilhet, D. Pommeret, A Bayesian choice between Poisson, binomial and negative binomial models, Test, 15 (2006), 423–432. https://doi.org/10.1007/BF02607060 doi: 10.1007/BF02607060
|
| [18] |
S. Fu, A hierarchical Bayesian approach to negative binomial regression, Methods Appl. Anal., 22 (2015), 409–428. https://dx.doi.org/10.4310/MAA.2015.v22.n4.a4 doi: 10.4310/MAA.2015.v22.n4.a4
|
| [19] |
Q. He, H. H. Huang, A framework of zero-inflated Bayesian negative binomial regression models for spatiotemporal data, J. Stat. Plann. Inference, 229 (2024), 106098. https://doi.org/10.1016/j.jspi.2023.106098 doi: 10.1016/j.jspi.2023.106098
|
| [20] |
Y. Hamura, K. Irie, S. Sugasawa, Robust Bayesian modeling of counts with zero inflation and outliers: Theoretical robustness and efficient computation, J. Am. Stat. Assoc., 120 (2025), 1545–1557. https://doi.org/10.1080/01621459.2024.2447111 doi: 10.1080/01621459.2024.2447111
|
| [21] |
Y. Hamura, T. Kubokawa, Bayesian predictive distribution for a negative binomial model, Math. Methods Stat., 28 (2019), 1–17. https://doi.org/10.3103/S1066530719010010 doi: 10.3103/S1066530719010010
|
| [22] | H. H. Huang, Y. H. Chen, M. Scott, Bayesian deep count regression and anomaly detection: Evidence from GDELT event panels, preprint, arXiv: 2603.25970. |
| [23] |
A. Gelman, A. Jakulin, M. G. Pittau, Y. Su, A weakly informative default prior distribution for logistic and other regression models, Ann. Appl. Stat., 2 (2008), 1360–1383. https://doi.org/10.1214/08-AOAS191 doi: 10.1214/08-AOAS191
|
| [24] | A. Gelman, J. B. Carlin, H. S. Stern, D. B. Dunson, A. Vehtari, D. B. Rubin, Bayesian Data Analysis, 3rd edition, Chapman and Hall/CRC, Boca Raton, 2013. https://doi.org/10.1201/b16018 |
| [25] | Stan Development Team, Prior Choice Recommendations, 2026. Available from: https://github.com/stan-dev/stan/wiki/Prior-Choice-Recommendations. |
| [26] |
J. Gabry, D. Simpson, A. Vehtari, M. Betancourt, A. Gelman, Visualization in Bayesian workflow, J. R. Stat. Soc. A, 182 (2019), 389–402. https://doi.org/10.1111/rssa.12378 doi: 10.1111/rssa.12378
|
| [27] | M. D. Hoffman, A. Gelman, The No-U-Turn Sampler: Adaptively setting path lengths in Hamiltonian Monte Carlo, J. Mach. Learn. Res., 15 (2014), 1593–1623. Available from: https://jmlr.org/papers/v15/hoffman14a.html. |
| [28] |
A. Gelman, D. B. Rubin, Inference from iterative simulation using multiple sequences, Stat. Sci., 7 (1992), 457–472. https://doi.org/10.1214/ss/1177011136 doi: 10.1214/ss/1177011136
|
| [29] |
A. Vehtari, A. Gelman, D. Simpson, B. Carpenter, P. C. Bürkner, Rank-normalization, folding, and localization: An improved $\widehat{R}$ for assessing convergence of MCMC, Bayesian Anal., 16 (2021), 667–718. https://doi.org/10.1214/20-BA1221 doi: 10.1214/20-BA1221
|
| [30] |
K. Fan, S. Subedi, G. Yang, X. Lu, J. Ren, C. Wu, Is seeing believing? A practitioner's perspective on high-dimensional statistical inference in cancer genomics studies, Entropy, 26 (2024), 794. https://doi.org/10.3390/e26090794 doi: 10.3390/e26090794
|
| [31] |
K. Fan, S. Subedi, V. Dissanayake, C. Wu, Robust Bayesian high-dimensional variable selection and inference with the horseshoe family of priors, Comput. Stat. Data Anal., 219 (2026), 108358. https://doi.org/10.1016/j.csda.2026.108358 doi: 10.1016/j.csda.2026.108358
|
| [32] |
A. Wald, Tests of statistical hypotheses concerning several parameters when the number of observations is large, Trans. Am. Math. Soc., 54 (1943), 426–482. https://doi.org/10.2307/1990256 doi: 10.2307/1990256
|
| [33] | B. Efron, R. J. Tibshirani, An Introduction to the Bootstrap, Chapman and Hall/CRC, 1994. https://doi.org/10.1201/9780429246593 |
| [34] | W. N. Venables, B. D. Ripley, Modern Applied Statistics with S, Springer, New York, 2002. https://doi.org/10.1007/978-0-387-21706-2 |
| [35] | B. Ripley, B. Venables, D. M. Bates, K. Hornik, A. Gebhardt, D. Firth, MASS: Support Functions and Datasets for Venables and Ripley's Modern Applied Statistics with S, R package, 2013. |
| [36] |
M. Aitkin, The analysis of unbalanced cross-classifications, J. R. Stat. Soc. A, 141 (1978), 195–223. https://doi.org/10.2307/2344453 doi: 10.2307/2344453
|
| [37] |
P. F. Thall, S. C. Vail, Some covariance models for longitudinal count data with overdispersion, Biometrics, 46 (1990), 657–671. https://doi.org/10.2307/2532086 doi: 10.2307/2532086
|