# 贝塔二项分布

**贝塔二项分布**是一种离散概率分布，描述在固定次数的二项试验中，当成功概率本身是随机的、且服从贝塔分布时，成功次数的分布。对于变异性超出单一二项分布所允许范围的二项计数数据，它是标准模型，这种性质称为过度离散。<sup>[1](https://docs.scipy.org/doc/scipy/tutorial/stats/discrete_betabinom.html)</sup>

| 关键事实 | 详情 |
|---|---|
| 定义 | 成功概率 p 服从贝塔分布的二项分布<sup>[1](https://docs.scipy.org/doc/scipy/tutorial/stats/discrete_betabinom.html)</sup> |
| 取值域 | x = 0, 1, 2, ..., n，形状参数 alpha、beta > 0<sup>[2](https://www.itl.nist.gov/div898/software/dataplot/refman2/auxillar/bbnpdf.htm)</sup> |
| 概率质量函数 | p(x, alpha, beta, n) = B(alpha + n − x, x + beta) / [(n + 1) B(n − x + 1, x + 1) B(alpha, beta)]，其中 B 为完全贝塔函数<sup>[2](https://www.itl.nist.gov/div898/software/dataplot/refman2/auxillar/bbnpdf.htm)</sup> |
| 起源 | 由 J. G. 斯凯拉姆（J. G. Skellam）于 1948 年将二项成功概率视为在各组试验之间可变而导出<sup>[3](https://ecommons.cornell.edu/bitstream/handle/1813/8678/TR000795.pdf?sequence=1)</sup> |
| 实践中的关键参数 | 两个可估参数：总体平均比例，以及组内相关系数，后者度量同一组内试验之间的聚集性<sup>[4](https://academic.oup.com/jaoac/article/106/6/1629/7224238)</sup> |
| 典型用途 | 微生物组相对丰度建模、二值分析方法的验证研究，以及稀有事件荟萃分析<sup>[5](https://pmc.ncbi.nlm.nih.gov/articles/PMC7514055/)</sup><sup> • </sup><sup>[4](https://academic.oup.com/jaoac/article/106/6/1629/7224238)</sup><sup> • </sup><sup>[6](https://onlinelibrary.wiley.com/doi/full/10.1002/jrsm.1662)</sup> |
| 软件 | 在 SciPy 中以 `betabinom` 提供，定义于 0 ≤ k ≤ n<sup>[1](https://docs.scipy.org/doc/scipy/tutorial/stats/discrete_betabinom.html)</sup> |

## 分布的由来

其构造是一个两阶段随机化过程。首先，从贝塔分布中抽取一个成功概率 p；贝塔分布是定义在 0 到 1 区间上的连续分布，具有两个形状参数，通常记作 alpha 和 beta，其密度涉及贝塔函数 B(alpha, beta) = ∫₀¹ t^(alpha−1)(1−t)^(beta−1) dt。<sup>[7](https://www.itl.nist.gov/div898/handbook/eda/section3/eda366h.htm)</sup> 其次，在给定 p 的条件下，n 次试验中的成功次数服从普通二项分布。将二项分布对 p 的贝塔分布取平均，便得到贝塔二项分布。<sup>[1](https://docs.scipy.org/doc/scipy/tutorial/stats/discrete_betabinom.html)</sup>

所得的质量函数用贝塔函数而非二项系数来表达：<sup>[2](https://www.itl.nist.gov/div898/software/dataplot/refman2/auxillar/bbnpdf.htm)</sup>

\[ p(x, \alpha, \beta, n) = \frac{B(\alpha + n - x,\; x + \beta)}{(n+1)\, B(n - x + 1,\; x + 1)\, B(\alpha, \beta)}, \qquad x = 0, 1, \ldots, n, \quad \alpha, \beta > 0. \]

当贝塔形状参数较大时，p 集中在其均值附近，贝塔二项分布趋近于普通二项分布。当它们较小时，p 在各组试验之间变化很大，计数变得比二项分布所允许的更为分散。这种额外的分散正是该模型所要捕捉的。

## 历史

该分布与统计学家 J. G. 斯凯拉姆（J. G. Skellam）相关联，其 1948 年论文《A Probability Distribution Derived from the Binomial Distribution by Regarding the Probability of Success as Variable Between the Sets of Trials》导出了当 p 在各组试验之间变化时计数分布的表达式。<sup>[3](https://ecommons.cornell.edu/bitstream/handle/1813/8678/TR000795.pdf?sequence=1)</sup> 后来的综述指出，斯凯拉姆并非考虑该模型的第一人，此后数十年间积累了关于贝塔二项模型及其扩展的大量文献，包括比例数据的贝塔二项分析中组内相关系数的推断工作。<sup>[8](https://www.researchgate.net/publication/238874723_A_Markov_Chain_Model_of_Extrabinomial_Variation)</sup><sup> • </sup><sup>[9](https://journals.sagepub.com/doi/10.3102/10769986006001003)</sup>

## 过度离散与组内相关系数

贝塔二项分布额外参数的实际意义，通过组内相关系数（ICC）——即同一组内两个个体二值观测之间的相关性——体现得最为清楚。在用于稀有事件荟萃分析的贝塔二项参数化中，每项研究中的计数服从 Betabin(n, mu, psi)，相应的相关参数 rho 具有这种组内解释。<sup>[6](https://onlinelibrary.wiley.com/doi/full/10.1002/jrsm.1662)</sup>

在二值响应的分析方法验证研究中，贝塔二项分布被描述为该族模型中最简单、最常用的模型。每个协作方的真实成功比例（真实检出概率）被假定为从贝塔分布中随机抽取，该协作方各份试料的检测结果随后服从二项分布。该模型只有两个可估参数：各协作方之间“1”的总体平均比例，称为 LPOD，以及共同的组内相关系数。若 ICC 估计值超过规定的性能标准，则研究结果缺乏再现性，无法推广到其他协作方组。<sup>[4](https://academic.oup.com/jaoac/article/106/6/1629/7224238)</sup>

## 应用

**微生物组数据。** 高通量测序产生微生物类群的计数数据，其变异性超出二项分布的预期，贝塔二项回归已被专门提出用于建模相对丰度和菌群失调。该模型不仅支持检验条件间相对丰度的差异，还支持检验变异性的差异。<sup>[5](https://pmc.ncbi.nlm.nih.gov/articles/PMC7514055/)</sup><sup> • </sup><sup>[10](https://arxiv.org/abs/1902.02776)</sup> 这一工作路线构成了 CORNCOB 等方法的基础，后者是使用贝塔二项分布对相关观测进行计数回归，用于带协变量调整和重复测量的差异丰度分析。<sup>[11](https://doi.org/10.1038/s41592-023-02092-7)</sup> 其扩展直接处理测序数据的特征，包括用于微生物组计数数据的零膨胀贝塔二项模型。<sup>[12](https://pmc.ncbi.nlm.nih.gov/articles/PMC6124506/)</sup>

**稀有事件荟萃分析。** 当合并所关注结局不常见的研究时，从少量研究中估计合并效应是困难的。在贝叶斯贝塔二项方法中，每项研究的事件计数服从贝塔二项分布，与针对稀有事件的其他随机效应荟萃分析方法相比，通过最大似然估计的模型表现良好。<sup>[6](https://onlinelibrary.wiley.com/doi/full/10.1002/jrsm.1662)</sup>

**方法验证。** 在定性分析方法的多实验室验证研究中，贝塔二项分布作为参考分布模型，其中 LPOD 加 ICC 的两参数结构直接对应研究设计所要估计的量。<sup>[4](https://academic.oup.com/jaoac/article/106/6/1629/7224238)</sup>

## 相关模型

贝塔二项分布属于处理二项外变异的一族模型。贝塔负二项分布，也称广义沃林分布，是一种相关的离散分布，可由同一传统下的统计软件计算。<sup>[2](https://www.itl.nist.gov/div898/software/dataplot/refman2/auxillar/bbnpdf.htm)</sup> 对于微生物组组成数据，贝塔二项回归的替代方法包括分别捕捉零膨胀和偏度的两部贝塔回归模型，以及在成对比较中以部分贝塔二项结构换取计算速度的基于比值的成对方法。<sup>[13](https://pubmed.ncbi.nlm.nih.gov/30036363/)</sup><sup> • </sup><sup>[14](https://pmc.ncbi.nlm.nih.gov/articles/PMC9853100/)</sup>

## References

1. [Beta-Binomial Distribution, SciPy v1.18.0 Manual](https://docs.scipy.org/doc/scipy/tutorial/stats/discrete_betabinom.html)
2. [Beta-Binomial Probability Mass Function, NIST/SEMATECH e-Handcase Dataplot reference](https://www.itl.nist.gov/div898/software/dataplot/refman2/auxillar/bbnpdf.htm)
3. [Skellam, J. G. (1948). A Probability Distribution Derived from the Binomial Distribution by Regarding the Probability of Success as Variable Between the Sets of Trials](https://ecommons.cornell.edu/bitstream/handle/1813/8678/TR000795.pdf?sequence=1)
4. [Beta-Binomial Statistical Model for Validation Studies of Analytes with a Binary Response, Journal of AOAC INTERNATIONAL](https://academic.oup.com/jaoac/article/106/6/1629/7224238)
5. [Modeling Microbial Abundances and Dysbiosis with Beta-Binomial Regression, PMC](https://pmc.ncbi.nlm.nih.gov/articles/PMC7514055/)
6. [Jansen et al. (2023). Rare events meta-analysis using the Bayesian beta-binomial model, Research Synthesis Methods](https://onlinelibrary.wiley.com/doi/full/10.1002/jrsm.1662)
7. [1.3.6.6.17. Beta Distribution, NIST/SEMATECH e-Handbook of Statistical Methods](https://www.itl.nist.gov/div898/handbook/eda/section3/eda366h.htm)
8. [A Markov Chain Model of Extrabinomial Variation](https://www.researchgate.net/publication/238874723_A_Markov_Chain_Model_of_Extrabinomial_Variation)
9. [Wilcox, R. R. (1981). A Review of the Beta-Binomial Model and its Extensions, Journal of Educational Statistics](https://journals.sagepub.com/doi/10.3102/10769986006001003)
10. [Modeling microbial abundances and dysbiosis with beta-binomial regression, arXiv](https://arxiv.org/abs/1902.02776)
11. [Multigroup analysis of compositions of microbiomes with covariate adjustments and repeated measures, Nature Methods](https://doi.org/10.1038/s41592-023-02092-7)
12. [A Zero-inflated Beta-binomial Model for Microbiome Data Analysis, PMC](https://pmc.ncbi.nlm.nih.gov/articles/PMC6124506/)
13. [A marginalized two-part Beta regression model for microbiome compositional data, PubMed](https://pubmed.ncbi.nlm.nih.gov/30036363/)
14. [Pairwise ratio-based differential abundance analysis of infant microbiome 16S sequencing data, PMC](https://pmc.ncbi.nlm.nih.gov/articles/PMC9853100/)

---
*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-binomial-distribution

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