# 二项分布

二项分布是一种离散概率分布，它给出在 n 次独立试验中恰好观察到 x 次成功的概率；这里每次试验只有两种可能结果，且每次试验中成功的概率 p 都相同。<sup>[1](https://itl.nist.gov/div898/handbook/eda/section3/eda366i.htm)</sup> 美国国家标准与技术研究院（NIST）的网络安全术语表以更形式化的方式表达了同一思想：若一个随机变量计数的是 n 次独立伯努利试验中的成功次数，则它服从二项分布；其中伯努利试验只有两种可能结果。<sup>[2](https://csrc.nist.gov/glossary/term/Binomial_Distribution)</sup> 这两种结果习惯上分别称为“成功”和“失败”。<sup>[1](https://itl.nist.gov/div898/handbook/eda/section3/eda366i.htm)</sup>

| 关键事实 | 详情 |
|---|---|
| 参数 | n，固定的试验次数；p，单次试验成功的概率，假定在各次试验间保持不变<sup>[1](https://itl.nist.gov/div898/handbook/eda/section3/eda366i.htm)</sup> |
| 概率质量函数 | 对 \(x=0,1,2,\cdots,n\)，\(P(x;p,n)=\binom{n}{x}p^{x}(1-p)^{n-x}\)，其中 \(\binom{n}{x}=\frac{n!}{x!(n-x)!}\)<sup>[1](https://itl.nist.gov/div898/handbook/eda/section3/eda366i.htm)</sup> |
| 均值与标准差 | 均值 \(np\)；标准差 \(\sqrt{np(1-p)}\)；取值范围 0 到 n<sup>[1](https://itl.nist.gov/div898/handbook/eda/section3/eda366i.htm)</sup> |
| 估计 | 固定 n 时，p 的最大似然估计量为 \(\tilde{p}=x/n\)<sup>[1](https://itl.nist.gov/div898/handbook/eda/section3/eda366i.htm)</sup> |
| 泊松近似 | 按经验法则，当 \(n\ge20\) 且 \(p\le0.05\) 时已足够；当 \(n\ge100\) 且 \(np\le10\) 时则非常出色<sup>[3](https://www.itl.nist.gov/div898/handbook/pmc/section3/pmc331.htm)</sup> |
| 正态近似 | 棣莫弗（de Moivre）于 1733 年针对二项分布建立，后由拉普拉斯（Laplace）推广，故称棣莫弗–拉普拉斯定理<sup>[4](https://www.maths.dur.ac.uk/users/clare.wallace/Prob1/09-limits.html)</sup> |
| 历史起源 | 一般概率情形下的二项分布见于雅各布·伯努利（Jacob Bernoulli）的《推测术》（*Ars Conjectandi*，1713）第一部分，可能完成于 1685 至 1689 年间<sup>[5](https://rss.onlinelibrary.wiley.com/doi/full/10.1111/j.1740-9713.2013.00666.x)</sup> |

## 概率质量与累积分布

概率质量函数结合了两个计数事实。由于各次试验相互独立，任一特定的、由 x 次成功和 \(n-x\) 次失败组成的序列，其概率为 \(p^{x}(1-p)^{n-x}\)；而二项系数 \(\binom{n}{x}\) 计数这种序列可以以多少种次序出现。<sup>[1](https://itl.nist.gov/div898/handbook/eda/section3/eda366i.htm)</sup> 一本入门教材用骰子说明这一逻辑：将一枚均匀骰子掷三次，恰好出现一次六点的概率为 \(\binom{3}{1}(1/6)^{1}(5/6)^{2}=0.3472\)。<sup>[6](https://openbooks.macewan.ca/introstats/chapter/4-5-binomial-distribution/)</sup>

累积分布函数将不超过 x 的所有结果对应的概率质量函数值相加：

\[ F(x;p,n) = \sum_{i=0}^{x} \binom{n}{i} p^{i}(1-p)^{n-i} \]

由于该分布是离散的，仅对整数 x 有定义，其百分位点函数（即其逆函数）并不光滑，也不存在简单的闭式形式；它通过数值方法计算。<sup>[1](https://itl.nist.gov/div898/handbook/eda/section3/eda366i.htm)</sup> NIST 的一篇期刊文章指出，二项累积分布函数是关于 x 的阶梯函数，因此没有真正的逆函数；软件转而返回使累积函数等于或超过所选置信水平的最小非负整数。<sup>[7](https://nvlpubs.nist.gov/nistpubs/jres/114/3/v114.n03.a05.pdf)</sup>

## 形状与汇总统计

对于 n=100，NIST 绘制了 p=0.1、0.25、0.50 和 0.75 时的概率质量函数；概率质量集中在 np 附近，分别大致位于 10、25、50 和 75。<sup>[1](https://itl.nist.gov/div898/handbook/eda/section3/eda366i.htm)</sup> 该分布的偏度为 \((1-2p)/\sqrt{np(1-p)}\)，因此仅当 p=0.5 时对称；当 p 趋近 0 或 1 时，分布越来越偏斜。<sup>[1](https://itl.nist.gov/div898/handbook/eda/section3/eda366i.htm)</sup> NIST 手册评论说，二项分布大概是使用最广泛的离散分布。<sup>[1](https://itl.nist.gov/div898/handbook/eda/section3/eda366i.htm)</sup>

## 使用条件

四项检查可确定一个随机变量服从二项分布：每次试验只有两种可能结果；各次试验相互独立；每次试验成功的概率相同；试验次数事先固定。<sup>[6](https://openbooks.macewan.ca/introstats/chapter/4-5-binomial-distribution/)</sup> 同一来源展示了这些条件不成立的情形。从 10 名学生（其中 6 名女生）中无放回抽取 5 名学生，并不服从二项分布，因为成功概率会随每次抽取而变化；从 10,000 名学生中抽取 5 名也并不严格服从二项分布，但当样本低于总体的 10% 时，各次概率几乎恒定，因此二项分布是合理模型。<sup>[6](https://openbooks.macewan.ca/introstats/chapter/4-5-binomial-distribution/)</sup> 计数直到达到固定成功次数所需试验次数的变量也不服从二项分布，因为试验次数是随机的，而不是固定的。<sup>[6](https://openbooks.macewan.ca/introstats/chapter/4-5-binomial-distribution/)</sup>

**抽样设计很重要。** 二项分布建模的是有放回抽样，此时各次试验保持独立；从有限总体中进行无放回抽样则服从超几何分布。<sup>[8](https://stat.ethz.ch/~kuensch/papers/hypergeom.pdf)</sup> 当样本相对于总体较小时，两者很接近：对于在 N 个球中有 K 个白球的瓮，超几何分布与参数 \(p=K/N\) 的二项分布之间的总变差距离，在 \(npq\ge1\) 时上界为 \((n-1)/(N-1)\)，其中 \(q=1-p\)。<sup>[8](https://stat.ethz.ch/~kuensch/papers/hypergeom.pdf)</sup>

## 近似

**泊松。** 当成功事件稀少时，泊松分布可近似二项分布。NIST 的经验法则要求 \(n\ge20\) 且 \(p\le0.05\)，并称当 \(n\ge100\) 且 \(np\le10\) 时该近似非常出色。<sup>[3](https://www.itl.nist.gov/div898/handbook/pmc/section3/pmc331.htm)</sup> 一个取 n=200、p=0.025 的算例比较显示，恰好 3 次成功的二项概率为 0.1399995，而泊松值为 0.1403739，相差约 0.0004。<sup>[3](https://www.itl.nist.gov/div898/handbook/pmc/section3/pmc331.htm)</sup>

**正态。** 二项分布的正态近似最早由亚伯拉罕·棣莫弗（Abraham de Moivre）于 1733 年建立，作为后来成为中心极限定理的一个特例，并由拉普拉斯推广；棣莫弗–拉普拉斯定理这一名称反映了这段历史。<sup>[4](https://www.maths.dur.ac.uk/users/clare.wallace/Prob1/09-limits.html)</sup> 历史记述称，棣莫弗 1733 年的拉丁文论文《二项式项和近似》（*Approximatio ad Summam Terminorum Binomii*）是正态曲线的首次出现，而拉普拉斯在其 1812 年《概率分析理论》（*Théorie analytique des probabilités*）中推广了这一结果。<sup>[9](https://mathematicsvisualized.com/stories/de-moivres-approximation-of-the-binomial-distribution/)</sup> 同一收敛性的物理演示是高尔顿板：在三角形排列的钉阵上重复进行伯努利试验，会产生近似正态分布。<sup>[10](https://eprints.whiterose.ac.uk/id/eprint/245153/)</sup>

## 历史

该分布的早期历史与雅各布·伯努利（1654–1705）紧密相关；他在 1684 至 1690 年间完成了其关于不确定性数学的大部分研究。<sup>[11](https://www.sciencedirect.com/science/article/pii/S0315086014000482)</sup> 他的《推测术》（*Ars Conjectandi*）于 1713 年、即他去世八年后印行，其中包含概率论的第一个极限定理——大数定律；其证明依赖于研究二项概率如何随偏离最可能值而减小。<sup>[11](https://www.sciencedirect.com/science/article/pii/S0315086014000482)</sup><sup> • </sup><sup>[12](https://encyclopediaofmath.org/wiki/Bernoulli_theorem)</sup> 该书第一部分包含一般概率情形下的二项分布；这一分布以伯努利命名，并常被归功于他。历史学家 A. W. F. 爱德华兹（A. W. F. Edwards）在《显著性》（*Significance*）上撰文指出，这一归属或许是公正的，因为伯努利很可能在 1685 至 1689 年间发现了该结果，但其实际首次发表是由亚伯拉罕·棣莫弗在《论抽签的度量》（*De mensura sortis*）中完成的，随后是蒙莫尔（Montmort）1713 年的第二版。<sup>[5](https://rss.onlinelibrary.wiley.com/doi/full/10.1111/j.1740-9713.2013.00666.x)</sup> 伯努利认识到，二项展开可以计算 n 次试验中至少 m 次成功的概率。<sup>[13](https://www.hlevkin.com/hlevkin/90MathPhysBioBooks/mathHistory/Cooke_The%20History%20of%20Mathematics.pdf)</sup>

## 统计用途

二项分布是比例推断的基础。二项检验将 n 次试验中观察到的成功次数 r 与零假设值进行比较；R 的 `binom()` 函数来自《应用非参数统计方法》（第 5 版），可执行该检验并计算二项置信区间，默认采用精确计算。<sup>[14](https://search.r-project.org/CRAN/refmans/ANSM5/html/binom.html)</sup> 二项比例的精确置信限可通过求解如下形式的方程得到：上限满足 \(\mathrm{BINCDF}(x; p_u, n)=\alpha/2\)，下限满足 \(\mathrm{BINCDF}(x-1; p_l, n)=1-\alpha/2\)；NIST 的 Dataplot 文档指出，当失败次数或样本量较小时，常用的对称正态近似限 \(\hat{p} \pm z_{\alpha/2}\sqrt{\hat{p}(1-\hat{p})/n}\) 可能不够准确。<sup>[15](https://www.itl.nist.gov/div898/software/dataplot/refman2/auxillar/exacbino.htm)</sup>

**当模型过于僵化时。** 真实计数数据往往比二项分布预测的更具变异性，这一现象称为过度离散。在比例荟萃分析中，贝塔-二项模型在每项研究内保持二项分布，但允许成功概率在不同研究间按贝塔分布变化；其方差变为 \(n_{i}\mu_{B-B}(1-\mu_{B-B})\gamma\)，其中 \(\gamma=1/(\alpha+\beta+1)\) 度量过度离散。<sup>[16](https://pmc.ncbi.nlm.nih.gov/articles/PMC5010877/)</sup> 在行为研究中，模拟研究发现广义线性混合模型和贝塔-二项回归能很好地处理聚类二元结果，而将泊松回归用于比例数据时可能因模型设定错误而严重受损。<sup>[17](https://arxiv.org/abs/1605.01592)</sup>

## 软件

大多数通用统计软件都支持二项概率函数。<sup>[1](https://itl.nist.gov/div898/handbook/eda/section3/eda366i.htm)</sup> R 的 stats 包提供 `dbinom`（概率质量函数）、`pbinom`（累积函数）、`qbinom`（分位数）和 `rbinom`（随机生成）；`dbinom` 使用凯瑟琳·洛德（Catherine Loader）的鞍点展开以实现快速而准确的计算，`pbinom` 则通过贝塔分布函数 `pbeta` 计算。<sup>[18](https://web.mit.edu/r/current/lib/R/library/stats/html/Binomial.html)</sup> 电子表格用户可用 `BINOMDIST(a, n, p, FALSE)` 获得相同的概率质量；对于抛 100 次硬币，恰好出现 50 次正面的概率约为 8%。<sup>[19](https://openstax.org/books/contemporary-mathematics/pages/7-10-the-binomial-distribution)</sup>

## References

1. [1.3.6.6.18. Binomial Distribution, NIST/SEMATECH e-Handbook of Statistical Methods](https://itl.nist.gov/div898/handbook/eda/section3/eda366i.htm)
2. [Binomial Distribution, NIST Computer Security Resource Center Glossary](https://csrc.nist.gov/glossary/term/Binomial_Distribution)
3. [6.3.3.1. Counts Control Charts, NIST/SEMATECH e-Handbook of Statistical Methods](https://www.itl.nist.gov/div898/handbook/pmc/section3/pmc331.htm)
4. [9. Limit theorems, Probability 1 lecture notes, Durham University](https://www.maths.dur.ac.uk/users/clare.wallace/Prob1/09-limits.html)
5. [A. W. F. Edwards (2013). Ars conjectandi three hundred years on. Significance.](https://rss.onlinelibrary.wiley.com/doi/full/10.1111/j.1740-9713.2013.00666.x)
6. [4.5 Binomial Distribution, Introduction to Applied Statistics, MacEwan Open Books](https://openbooks.macewan.ca/introstats/chapter/4-5-binomial-distribution/)
7. [NIST Journal of Research, Volume 114, Number 3, May-June 2009](https://nvlpubs.nist.gov/nistpubs/jres/114/3/v114.n03.a05.pdf)
8. [H. R. Künsch (1998). The difference between the hypergeometric and the binomial distribution. ETH Zurich.](https://stat.ethz.ch/~kuensch/papers/hypergeom.pdf)
9. [De Moivre's Approximation of the Binomial Distribution, Mathematics Visualized](https://mathematicsvisualized.com/stories/de-moivres-approximation-of-the-binomial-distribution/)
10. [Mardia, K. V., Goodall, C., Rubbo, J. A Cylindrical Galton Board at the Galton Board's 150th Anniversary, JRSS-A (in press)](https://eprints.whiterose.ac.uk/id/eprint/245153/)
11. [M. Mattmüller (2014). The difficult birth of stochastics: Jacob Bernoulli's Ars Conjectandi (1713). Historia Mathematica 41(3).](https://www.sciencedirect.com/science/article/pii/S0315086014000482)
12. [Bernoulli theorem, Encyclopedia of Mathematics](https://encyclopediaofmath.org/wiki/Bernoulli_theorem)
13. [R. Cooke, The History of Mathematics, chapter on the Ars Conjectandi of James Bernoulli](https://www.hlevkin.com/hlevkin/90MathPhysBioBooks/mathHistory/Cooke_The%20History%20of%20Mathematics.pdf)
14. [binom: Perform Binomial test, R Documentation, ANSM5 package](https://search.r-project.org/CRAN/refmans/ANSM5/html/binom.html)
15. [EXACT BINOMIAL, NIST Dataplot Reference Manual](https://www.itl.nist.gov/div898/software/dataplot/refman2/auxillar/exacbino.htm)
16. [Meta-analysis of Proportions of Rare Events, PMC](https://pmc.ncbi.nlm.nih.gov/articles/PMC5010877/)
17. [A. Ferrari, M. Comelli (2016). A comparison of methods for the analysis of binomial proportion data in behavioral research. arXiv.](https://arxiv.org/abs/1605.01592)
18. [The Binomial Distribution, R stats package documentation](https://web.mit.edu/r/current/lib/R/library/stats/html/Binomial.html)
19. [7.10 The Binomial Distribution, Contemporary Mathematics, OpenStax](https://openstax.org/books/contemporary-mathematics/pages/7-10-the-binomial-distribution)

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

Topic: 物质世界与数学 › 数学与统计学 › 统计学与概率论 › Probability theory › Probability distributions › Distribution families and classification › Discrete distribution families

Copyright 2026 Edgepedia

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

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

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