# 贝塔负二项分布

贝塔负二项分布（BNB）是一种离散概率分布，当负二项分布中的成功概率本身是随机的、且服从贝塔分布时，就会出现这种分布。它是非负整数上的三参数计数分布，推广了负二项分布，并能产生更重的右尾，因此适用于包含极端观测的计数数据。<sup>[1](https://docs.scipy.org/doc/scipy/tutorial/stats/discrete_betanbinom.html)</sup><sup> • </sup><sup>[2](https://rss.onlinelibrary.wiley.com/doi/full/10.1111/rssb.12394)</sup>

| 关键事实 | 详情 |
|---|---|
| 构造 | 一种负二项分布，其成功概率P服从形状参数为α和β的贝塔分布；计数的边缘分布为BNB<sup>[2](https://rss.onlinelibrary.wiley.com/doi/full/10.1111/rssb.12394)</sup> |
| 概率质量函数 | 对 \( k \in \{0, 1, \ldots\} \)，\( f(k; n, a, b) = \binom{n + k - 1}{k} \frac{B(a + n, b + k)}{B(a, b)} \)，其中 \( B(\cdot, \cdot) \) 是贝塔函数<sup>[1](https://docs.scipy.org/doc/scipy/tutorial/stats/discrete_betanbinom.html)</sup> |
| 特例 | 当 \( n = 1 \) 时，分布退化为贝塔几何分布<sup>[1](https://docs.scipy.org/doc/scipy/tutorial/stats/discrete_betanbinom.html)</sup> |
| 尾部行为 | 参数α控制右尾的重度；α越小，尾部越重，且第m阶条件矩仅当α > m时有限<sup>[2](https://rss.onlinelibrary.wiley.com/doi/full/10.1111/rssb.12394)</sup> |
| 极限情形 | 当α → ∞时，BNB收敛于负二项分布；当另外r → ∞时，它收敛于均值为λ的泊松分布<sup>[2](https://rss.onlinelibrary.wiley.com/doi/full/10.1111/rssb.12394)</sup> |
| 软件 | 在SciPy中实现为`scipy.stats.betanbinom`<sup>[1](https://docs.scipy.org/doc/scipy/tutorial/stats/discrete_betanbinom.html)</sup> |

## 定义与构造

该分布是负二项分布的贝塔混合。设给定P时，Y服从离散参数为r、成功概率为P的负二项分布，并设P服从形状参数为α和β的贝塔分布。对P积分得到Y的边缘BNB分布，其概率质量函数为<sup>[2](https://rss.onlinelibrary.wiley.com/doi/full/10.1111/rssb.12394)</sup>

\[ \mathbb{P}(Y = y) = \frac{\Gamma(y + r)}{\Gamma(y + 1)\,\Gamma(r)} \, \frac{B(\alpha + r, \beta + y)}{B(\alpha, \beta)}, \quad y \in \mathbb{N}, \]

其中Γ(·)是伽马函数，B(·, ·)是贝塔函数。<sup>[2](https://rss.onlinelibrary.wiley.com/doi/full/10.1111/rssb.12394)</sup> SciPy以参数n、a和b的等价形式表述同一分布，定义域为 \( k \geq 0 \)。<sup>[1](https://docs.scipy.org/doc/scipy/tutorial/stats/discrete_betanbinom.html)</sup>

一种常见的参数化以均值表述。令 \( \beta = (\alpha - 1)\lambda / r \)，只要均值有限（这要求α > 1），参数λ就表示BNB分布的均值。<sup>[2](https://rss.onlinelibrary.wiley.com/doi/full/10.1111/rssb.12394)</sup>

## 尾部行为与极限情形

参数α是尾部参数：α越小，右尾越重。<sup>[2](https://rss.onlinelibrary.wiley.com/doi/full/10.1111/rssb.12394)</sup> 正是这一性质使BNB区别于它所推广的负二项分布。在下面描述的自回归情形中，BNB过程的第m阶条件矩有限当且仅当α > m，因此估计出的α约为5意味着条件分布是重尾的，只有前四阶或前五阶矩有限。<sup>[2](https://rss.onlinelibrary.wiley.com/doi/full/10.1111/rssb.12394)</sup>

BNB将熟悉的计数分布作为极限情形嵌套其中。当尾部参数发散，α → ∞时，BNB分布 \( \mathcal{BNB}(\lambda, r, \alpha) \) 收敛于离散参数为r、成功概率为 \( \lambda / (r + \lambda) \) 的负二项分布。当离散参数也发散，r → ∞时，BNB收敛于均值为λ的泊松分布。<sup>[2](https://rss.onlinelibrary.wiley.com/doi/full/10.1111/rssb.12394)</sup> 在该族的另一端，\( n = 1 \) 的情形将分布退化为贝塔几何分布，其质量函数为 \( f(k; a, b) = B(a + 1, b + k) / B(a, b) \)。<sup>[1](https://docs.scipy.org/doc/scipy/tutorial/stats/discrete_betanbinom.html)</sup>

## 在时间序列模型中的应用

**整数值自回归。** 当时在格罗宁根大学（University of Groningen）工作的计量经济学家保罗·戈尔吉（Paolo Gorgi）为一类整数值时间序列引入了一类观测驱动的自回归模型，其条件分布为BNB，从而将极端观测描述为尾部事件。<sup>[2](https://rss.onlinelibrary.wiley.com/doi/full/10.1111/rssb.12394)</sup> 条件均值遵循随机递推方程，并研究了两种设定：线性自回归，以及广义自回归得分（GAS）框架下的得分驱动设定。得分驱动版本给出一种稳健滤波，减弱离群值对条件期望的影响；得分新息被常数界定，\( |s_t| \leq \alpha + r + 1 \)，因此它不会随观测值增大而无界增长。<sup>[2](https://rss.onlinelibrary.wiley.com/doi/full/10.1111/rssb.12394)</sup> 最大似然估计很直接，因为似然函数有闭式形式；并且在一般条件下推导出了估计量的强相合性和渐近正态性。<sup>[2](https://rss.onlinelibrary.wiley.com/doi/full/10.1111/rssb.12394)</sup>

两个实证应用说明了该方法。对于澳大利亚（Australia）悉尼（Sydney）1995年1月至2016年12月每月关于毒品贩运的警方报告数，样本均值和方差分别为8.4和79.5，2000年8月、2008年3月和2015年5月的计数异常高；估计的尾部参数约为5，标准误约为0.8，并且BNB模型在赤池信息准则和贝叶斯信息准则下给出更好的样本内拟合，在对数得分准则下给出更准确的概率质量函数预测。<sup>[2](https://rss.onlinelibrary.wiley.com/doi/full/10.1111/rssb.12394)</sup> 对于欧元兑英镑汇率的报价变动次数，样本均值为13.2，样本方差为224.2，BNB模型同样在样本内拟合更好，并给出更准确的概率质量函数预测，而各模型的点预测精度相近。<sup>[2](https://rss.onlinelibrary.wiley.com/doi/full/10.1111/rssb.12394)</sup> 在两个应用中，BNB的优势在于将极端观测描述为尾部事件，而不在于改进点预测。<sup>[2](https://rss.onlinelibrary.wiley.com/doi/full/10.1111/rssb.12394)</sup>

## 其他应用

**疫情计数。** 在日本（Japan）COVID-19病例数的时空建模中，贝塔负二项分布被用作负二项分布的重尾推广，同时保持解析可处理性。采用BNB分布的模型恰当地覆盖了极端观测，数据的重尾特征解释了BNB相对于负二项分布拟合更好的原因。<sup>[3](https://pmc.ncbi.nlm.nih.gov/articles/PMC10184601/)</sup>

**贝叶斯非参数。** 相关的贝塔负二项过程——一种计数服从BNB型律的整数值随机过程——已被用于构建非参数贝叶斯主题模型，对分组数据进行混合成员建模，并用可交换划分概率函数描述数据点如何聚类为随机数量的共享划分。<sup>[4](https://arxiv.org/abs/1410.7812)</sup>

## 与其他计数分布的关系

BNB位于计数模型的一个层级之中。负二项分布本身是伽马-泊松混合，用于处理方差超过均值的过度离散。<sup>[5](https://pmc.ncbi.nlm.nih.gov/articles/PMC4692373/)</sup> 在成功概率上增加一层贝塔分布便产生BNB，它可以通过其极限情形任意好地逼近负二项分布和泊松分布，同时又能容纳更重的尾部。<sup>[2](https://rss.onlinelibrary.wiley.com/doi/full/10.1111/rssb.12394)</sup> 在应用场景中，贝塔二项和负二项混合是处理过度离散的计数和比例数据的标准工具，例如用于建模物质使用天数和植被丰度。<sup>[5](https://pmc.ncbi.nlm.nih.gov/articles/PMC4692373/)</sup><sup> • </sup><sup>[6](https://www.sciencedirect.com/science/article/pii/S0304380007004826)</sup> 由于α⁻¹ = 0是参数空间的边界点，BNB与负二项模型之间的正式检验不能由标准渐近理论得出，模型选择通常借助赤池信息准则（AIC）和贝叶斯信息准则（BIC）等信息准则或验证样本完成。<sup>[2](https://rss.onlinelibrary.wiley.com/doi/full/10.1111/rssb.12394)</sup>

## References

1. [Beta-Negative Binomial Distribution, SciPy v1.18.0 Manual](https://docs.scipy.org/doc/scipy/tutorial/stats/discrete_betanbinom.html)
2. [Gorgi, P. (2020). Beta–negative binomial auto-regressions for modelling integer-valued time series with extreme observations. Journal of the Royal Statistical Society: Series B, 82(5), 1325–1347.](https://rss.onlinelibrary.wiley.com/doi/full/10.1111/rssb.12394)
3. [Beta-negative binomial nonlinear spatio-temporal random effects modeling of COVID-19 case counts in Japan, PMC](https://pmc.ncbi.nlm.nih.gov/articles/PMC10184601/)
4. [Zhou, M. and colleagues. Beta-Negative Binomial Process and Exchangeable Random Partitions for Mixed-Membership Modeling. arXiv:1410.7812.](https://arxiv.org/abs/1410.7812)
5. [The importance of distribution-choice in modeling substance use data: a comparison of negative binomial, beta binomial, and zero-inflated distributions, PMC](https://pmc.ncbi.nlm.nih.gov/articles/PMC4692373/)
6. [Frequency distribution models for spatial patterns of vegetation abundance, Ecological Modelling](https://www.sciencedirect.com/science/article/pii/S0304380007004826)

---
*Initially written Sep 17, 2026 · Reviewed: Sep 30, 2026; Oct 15, 2026 · Edited: Sep 30, 2026; Oct 15, 2026 · Last review: Oct 15, 2026*

Topic: 物质世界与数学 › 数学与统计学 › 统计学与概率论 › Probability theory › Probability distributions › Compound, infinitely divisible, and convolved distributions › Compound distributions

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/beta-negative-binomial-distribution

English original: https://www.edgepedia.org/beta-negative-binomial-distribution
