# 伯努利试验

**伯努利试验**（Bernoulli trial）是一种只有两种可能结果的随机试验，习惯上把这两种结果分别称为“成功”和“失败”，其中成功的概率是一个固定值 p。这一名称是为了纪念雅各布·伯努利（Jacob Bernoulli，1655–1705），他身后出版的《猜度术》（*Ars Conjectandi*，1713）为分析这类试验奠定了数学基础<sup>[1](https://amsi.org.au/ESA_Senior_Years/SeniorTopic4/4d/4d_2content_1.html)</sup><sup> • </sup><sup>[2](https://rss.onlinelibrary.wiley.com/doi/full/10.1111/j.1740-9713.2013.00666.x)</sup>。一串成功概率同为 p 的独立试验称为伯努利试验过程，它是反复掷硬币这一行为的数学抽象<sup>[3](https://stats.libretexts.org/Bookshelves/Probability_Theory/Probability_Mathematical_Statistics_and_Stochastic_Processes_(Siegrist)/11:_Bernoulli_Trials/11.01:_Introduction_to_Bernoulli_Trials)</sup>。

| 关键事实 | 细节 |
|---|---|
| 定义 | 一次试验，两种结果：成功概率为 p，失败概率为 1 − p，其中 p ∈ [0, 1]<sup>[3](https://stats.libretexts.org/Bookshelves/Probability_Theory/Probability_Mathematical_Statistics_and_Stochastic_Processes_(Siegrist)/11:_Bernoulli_Trials/11.01:_Introduction_to_Bernoulli_Trials)</sup> |
| 过程假设 | 各次试验相互独立，且 p 在各次试验中保持不变<sup>[3](https://stats.libretexts.org/Bookshelves/Probability_Theory/Probability_Mathematical_Statistics_and_Stochastic_Processes_(Siegrist)/11:_Bernoulli_Trials/11.01:_Introduction_to_Bernoulli_Trials)</sup> |
| 均值与方差 | 对单次试验的指示变量，E(X) = p，var(X) = p(1 − p)<sup>[1](https://amsi.org.au/ESA_Senior_Years/SeniorTopic4/4d/4d_2content_1.html)</sup> |
| 试验之和 | n 次独立伯努利试验中成功的次数服从参数为 n 和 p 的二项分布<sup>[4](https://www.itl.nist.gov/div898/handbook/eda/section3/eda366i.htm)</sup> |
| 历史来源 | 雅各布·伯努利的《猜度术》，1713 年于巴塞尔出版，距他去世已八年<sup>[2](https://rss.onlinelibrary.wiley.com/doi/full/10.1111/j.1740-9713.2013.00666.x)</sup> |
| 黄金定理 | 伯努利的“theorema aureum”（黄金定理），后来被泊松命名为大数定律，它为用重复独立试验中的相对频率估计未知概率提供了依据<sup>[5](https://encyclopediaofmath.org/index.php?title=Bernoulli%2C_Jakob)</sup> |

## 定义与假设

伯努利试验过程建立在三条假设之上：每次试验都有两种可能结果，称为成功与失败；各次试验相互独立，因此一次试验的结果不会影响另一次；每次试验的成功概率都是 p，失败概率为 1 − p<sup>[3](https://stats.libretexts.org/Bookshelves/Probability_Theory/Probability_Mathematical_Statistics_and_Stochastic_Processes_(Siegrist)/11:_Bernoulli_Trials/11.01:_Introduction_to_Bernoulli_Trials)</sup>。整个过程的特征由单一参数 p 刻画<sup>[3](https://stats.libretexts.org/Bookshelves/Probability_Theory/Probability_Mathematical_Statistics_and_Stochastic_Processes_(Siegrist)/11:_Bernoulli_Trials/11.01:_Introduction_to_Bernoulli_Trials)</sup>。

在数学上，每次试验用一个指示随机变量 X 记录，成功取值为 1，失败取值为 0，且 P(X = 1) = p，P(X = 0) = 1 − p。这种单次试验的分布就是伯努利分布<sup>[3](https://stats.libretexts.org/Bookshelves/Probability_Theory/Probability_Mathematical_Statistics_and_Stochastic_Processes_(Siegrist)/11:_Bernoulli_Trials/11.01:_Introduction_to_Bernoulli_Trials)</sup>。由于取值只有 0 和 1，X 的任何正数次幂都等于 X 本身，这使得各阶矩的计算十分简便<sup>[3](https://stats.libretexts.org/Bookshelves/Probability_Theory/Probability_Mathematical_Statistics_and_Stochastic_Processes_(Siegrist)/11:_Bernoulli_Trials/11.01:_Introduction_to_Bernoulli_Trials)</sup>。

这两个标签是任意的。掷硬币时，成功可以指正面朝上；罚点球时，成功可以指进球；出生记录中，成功可以指孩子是女孩<sup>[2](https://rss.onlinelibrary.wiley.com/doi/full/10.1111/j.1740-9713.2013.00666.x)</sup>。关键在于结果落在两类之一，并且 p 在各次试验之间保持不变。

## 单次试验的矩

伯努利随机变量的均值就是它的成功概率，E(X) = p，由两个可能取值按各自概率加权求和得到<sup>[1](https://amsi.org.au/ESA_Senior_Years/SeniorTopic4/4d/4d_2content_1.html)</sup>。方差为

\[ \mathrm{var}(X) = (0 - p)^{2}(1 - p) + (1 - p)^{2}p = p(1 - p). \]

作为 p 的函数，方差是一条开口向下的抛物线：当 p = 1/2 时达到最大值 1/4，而在 p = 0 或 p = 1 时降为 0，此时试验变成确定性的，总是失败或总是成功<sup>[3](https://stats.libretexts.org/Bookshelves/Probability_Theory/Probability_Mathematical_Statistics_and_Stochastic_Processes_(Siegrist)/11:_Bernoulli_Trials/11.01:_Introduction_to_Bernoulli_Trials)</sup>。这个量度量的是单次试验所携带的不确定性；一个近乎必然的事件，无论其对立面多么罕见，所带来的方差都很小。

## 试验之和与二项分布

大多数应用关心的是多次试验中成功的总次数，而非单次结果。若 X₁, X₂, …, Xₙ 是参数同为 p 的独立伯努利随机变量，则它们的和

\[ Y = \sum_{i=1}^{n} X_{i} \]

统计成功次数，服从参数为 n 和 p 的二项分布<sup>[6](https://pubs.wsb.wisc.edu/academics/ActSci101-ProbDist/bernoulli-distribution.html)</sup>。二项概率质量函数为

\[ P(Y = x) = \binom{n}{x} p^{x} (1 - p)^{n - x}, \qquad x = 0, 1, \ldots, n, \]

其中二项系数给出的是 x 次成功在 n 次试验中的放置方式数<sup>[4](https://www.itl.nist.gov/div898/handbook/eda/section3/eda366i.htm)</sup>。Y 的均值为 np，方差为 np(1 − p)<sup>[7](https://www.itl.nist.gov/div898/handbook/pmc/section3/pmc332.htm)</sup>。伯努利分布是 n = 1 的特例<sup>[6](https://pubs.wsb.wisc.edu/academics/ActSci101-ProbDist/bernoulli-distribution.html)</sup>。

伯努利本人在《猜度术》中推导出了这一计数规则：若成功的可能数为 a，失败的可能数为 b，则在 a + b 个等可能试验中，n 次试验里出现 r 次成功的概率等于二项系数表达式与总数之比<sup>[8](https://www.math.mcgill.ca/darmon/courses/history/katz.pdf)</sup>。

当假设不成立时，二项模型也就失效了。如果成功概率在各次试验之间不恒定，或者各次试验不独立，成功次数就不再服从精确的二项分布<sup>[9](https://online.stat.psu.edu/stat504/Lesson01)</sup>。从有限总体中不放回抽样是标准例子：每次抽取都会改变剩余部分的构成，因此各次抽取相互依赖，应当改用超几何分布。当总体相对于样本很大时，这种依赖性可以忽略，伯努利试验模型是很好的近似<sup>[3](https://stats.libretexts.org/Bookshelves/Probability_Theory/Probability_Mathematical_Statistics_and_Stochastic_Processes_(Siegrist)/11:_Bernoulli_Trials/11.01:_Introduction_to_Bernoulli_Trials)</sup>。

## 例子与应用

**日常例子。** 掷一枚均匀硬币是最简单的情形，p = 1/2。在美式轮盘赌中押红色，p = 18/38，因为轮盘 38 个槽中有 18 个红色槽。在四选一的选择题中盲目猜测，p = 1/4。这些情形中各次试验相互独立且 p 恒定，因此都符合条件<sup>[3](https://stats.libretexts.org/Bookshelves/Probability_Theory/Probability_Mathematical_Statistics_and_Stochastic_Processes_(Siegrist)/11:_Bernoulli_Trials/11.01:_Introduction_to_Bernoulli_Trials)</sup>。相比之下，一盘网球比赛中的各局不构成伯努利试验，因为各局之间相互依赖，且获胜概率随谁发球而变化<sup>[3](https://stats.libretexts.org/Bookshelves/Probability_Theory/Probability_Mathematical_Statistics_and_Stochastic_Processes_(Siegrist)/11:_Bernoulli_Trials/11.01:_Introduction_to_Bernoulli_Trials)</sup>。

**抽样与调查。** 任何二分类总体经随机抽样都会产生伯努利试验，p 等于总体中具有该特征的比例，例如询问选民是否认可某位在任官员，前提是总体相对于样本足够大<sup>[3](https://stats.libretexts.org/Bookshelves/Probability_Theory/Probability_Mathematical_Statistics_and_Stochastic_Processes_(Siegrist)/11:_Bernoulli_Trials/11.01:_Introduction_to_Bernoulli_Trials)</sup>。

**质量控制。** 当生产过程稳定运行、相邻产品相互独立时，每件产品都是参数为 p 的伯努利随机变量的一次实现，p 为不合格概率。n 件产品的样本中不合格品数 D 服从二项分布，样本比例 D/n 的均值为 p，方差为 p(1 − p)/n，这正是用于监控不合格率的 p 控制图的基础<sup>[7](https://www.itl.nist.gov/div898/handbook/pmc/section3/pmc332.htm)</sup>。美国国家标准与技术研究院（NIST）关于确认性能阈值的指南——例如辐射探测系统能否以至少 80% 的概率探测到放射源——就把实验样本量和接受准则建立在这种二值响应模型之上<sup>[10](https://www.nist.gov/publications/confirming-performance-threshold-binary-experimental-response)</sup>。

**依赖性推广。** 当独立性不成立时，人们使用由相依伯努利试验构建的模型；例如 NIST 在枪支证据鉴定方面的工作就采用了马尔可夫相依伯努利试验模型，因为单元格对比较之间的独立性假设可能不成立<sup>[11](https://www.nist.gov/publications/use-correlated-binomial-distribution-estimating-error-rates-firearm-evidence)</sup>。

## 历史渊源

雅各布·伯努利主要于 1684 年至 1690 年间发展了关于不确定性的数学，他称之为“随机学”（stochastics）<sup>[12](https://www.sciencedirect.com/science/article/pii/S0315086014000482)</sup>。他的《猜度术》（The Art of Conjecturing）在 1705 年他去世时尚未完成，1713 年由图尔奈森兄弟在巴塞尔印行<sup>[2](https://rss.onlinelibrary.wiley.com/doi/full/10.1111/j.1740-9713.2013.00666.x)</sup>。全书四部分重印了克里斯蒂安·惠更斯（Christiaan Huygens）1657 年关于机会游戏的论著并附伯努利的注释，发展了排列与组合，演算了机会游戏，最后以未完成的部分收尾，讨论民事、道德与经济事务<sup>[2](https://rss.onlinelibrary.wiley.com/doi/full/10.1111/j.1740-9713.2013.00666.x)</sup>。

影响最深远的部分是伯努利的“黄金定理”，他说自己为此思考了二十年。该定理指出，在一串独立试验中，概率为 p 的事件的相对频率随着试验次数增加而依概率收敛到 p。伯努利用一个装有 3000 颗白卵石和 2000 颗黑卵石的瓮来说明这一点：有放回地抽取卵石，人们可以“在实际意义上确信”，抽出的白石子与黑石子之比与瓮中内容物一样，同为 3:2<sup>[2](https://rss.onlinelibrary.wiley.com/doi/full/10.1111/j.1740-9713.2013.00666.x)</sup>。泊松后来把这个结果称为伯努利大数定律，它是概率论中的第一个极限定理<sup>[5](https://encyclopediaofmath.org/index.php?title=Bernoulli%2C_Jakob)</sup><sup> • </sup><sup>[2](https://rss.onlinelibrary.wiley.com/doi/full/10.1111/j.1740-9713.2013.00666.x)</sup>。

正是这一定理使伯努利试验不止是一种记账工具。它保证了一个事件的未知概率可以用它在一串假定独立的试验中的相对频率来估计，而这一步正是基于样本数据进行统计推断的根基<sup>[5](https://encyclopediaofmath.org/index.php?title=Bernoulli%2C_Jakob)</sup>。以伯努利命名的试验结构还衍生出更多分布：几何分布描述直到首次成功为止的试验次数，而二项分布、几何分布以及相关模型都源自伯努利试验序列<sup>[3](https://stats.libretexts.org/Bookshelves/Probability_Theory/Probability_Mathematical_Statistics_and_Stochastic_Processes_(Siegrist)/11:_Bernoulli_Trials/11.01:_Introduction_to_Bernoulli_Trials)</sup>。

## References

1. [Bernoulli trials, AMSI Senior Years mathematics module](https://amsi.org.au/ESA_Senior_Years/SeniorTopic4/4d/4d_2content_1.html)
2. [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)
3. [Introduction to Bernoulli Trials, Statistics LibreTexts (Siegrist)](https://stats.libretexts.org/Bookshelves/Probability_Theory/Probability_Mathematical_Statistics_and_Stochastic_Processes_(Siegrist)/11:_Bernoulli_Trials/11.01:_Introduction_to_Bernoulli_Trials)
4. [NIST/SEMATECH e-Handbook, section 1.3.6.6.18: Binomial Distribution](https://www.itl.nist.gov/div898/handbook/eda/section3/eda366i.htm)
5. [Bernoulli, Jakob, Encyclopedia of Mathematics](https://encyclopediaofmath.org/index.php?title=Bernoulli%2C_Jakob)
6. [Bernoulli Distribution, Wisconsin School of Business ActSci 101](https://pubs.wsb.wisc.edu/academics/ActSci101-ProbDist/bernoulli-distribution.html)
7. [NIST/SEMATECH e-Handbook, section 6.3.3.2: Proportions Control Charts](https://www.itl.nist.gov/div898/handbook/pmc/section3/pmc332.htm)
8. [V. J. Katz, A History of Mathematics (course text, McGill University)](https://www.math.mcgill.ca/darmon/courses/history/katz.pdf)
9. [Introduction to Discrete Data, STAT 504, Penn State](https://online.stat.psu.edu/stat504/Lesson01)
10. [Leber, D., Pibida, L., Enders, A. (2019). Confirming a Performance Threshold with a Binary Experimental Response. NIST TN 2045.](https://www.nist.gov/publications/confirming-performance-threshold-binary-experimental-response)
11. [Zhang, N. (2019). The use of correlated binomial distribution in estimating error rates for firearm evidence identification. NIST Journal of Research.](https://www.nist.gov/publications/use-correlated-binomial-distribution-estimating-error-rates-firearm-evidence)
12. [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)

---
*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 › 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/bernoulli-trial

English original: https://www.edgepedia.org/bernoulli-trial
