# 波利亚罐子模型

波利亚罐子模型是一种随机过程：从一个罐子中抽取球，每抽出一个球，就把它与一个或多个同色的额外球一起放回罐中，于是已经频繁出现的颜色会变得更有可能再次出现。该模型由弗洛里安·埃根贝格尔（Florian Eggenberger）与乔治·波利亚（George Pólya）于1923年在论文《论链式过程的统计》（*Über die Statistik verketteter Vorgänge*）中作为传染模型提出，此后成为概率论与贝叶斯非参数统计中的标准构造。<sup>[1](https://onlinelibrary.wiley.com/doi/pdf/10.1002/zamm.19230030407)</sup><sup> • </sup><sup>[2](https://www.ucd.ie/geary/static/publications/workingpapers/gearywp201216.pdf)</sup>

| 关键事实 | 细节 |
|---|---|
| 规则 | 罐中有 b 个黑球和 r 个红球；每抽出一个球，就把它与 s 个同色球一起放回，如此重复 n 次<sup>[2](https://www.ucd.ie/geary/static/publications/workingpapers/gearywp201216.pdf)</sup> |
| 抽取分布 | n 次抽取中黑球数 X 服从波利亚-埃根贝格尔分布，可用上升阶乘表示为 \( P\{X=k\} = \binom{n}{k} \frac{\alpha^{[k]}\beta^{[n-k]}}{(\alpha+\beta)^{[n]}} \)，其中 \( \alpha=b/s \)，\( \beta=r/s \)<sup>[2](https://www.ucd.ie/geary/static/publications/workingpapers/gearywp201216.pdf)</sup> |
| 边缘概率 | 尽管各次抽取相互依赖，每次抽到黑球的概率始终保持为 \( b/(b+r) \)<sup>[2](https://www.ucd.ie/geary/static/publications/workingpapers/gearywp201216.pdf)</sup> |
| 相关性 | 任意两次抽取之间的线性相关系数都等于 \( s/(b+r+s) \)，构成均匀相关结构<sup>[2](https://www.ucd.ie/geary/static/publications/workingpapers/gearywp201216.pdf)</sup> |
| 极限 | 抽出的红球比例几乎必然收敛到一个服从贝塔分布的随机变量，其参数为 \( a/c \) 与 \( b/c \)；若 \( a=b=c \)，则极限为 (0, 1) 上的均匀分布<sup>[3](https://stats.libretexts.org/Bookshelves/Probability_Theory/Probability_Mathematical_Statistics_and_Stochastic_Processes_%28Siegrist%29/12%3A_Finite_Sampling_Models/12.08%3A_Polya%27s_Urn_Process)</sup> |
| 可交换性 | 抽出的颜色序列是可交换的，具有一个贝塔德菲内蒂测度，因此该罐子生成的分布与在给定随机成功概率下的独立伯努利试验相同<sup>[4](https://conservancy.umn.edu/bitstreams/6c717c55-b703-4f34-ade6-817f82c64d5e/download)</sup> |
| 贝叶斯中的作用 | 波利亚罐子方案生成弗格森分布（狄利克雷过程），并构成中餐馆过程等预测性表示的基础<sup>[5](https://journal.hep.com.cn/fmc/EN/10.1007/s11464-022-1004-3)</sup> |

## 定义与基本性质

在原初方案中，罐内装有 \( b \) 个黑球和 \( r \) 个红球。每一步均匀随机地抽出一个球，观察其颜色，然后把它与 \( s \) 个同色的额外球一起放回；此过程重复 \( n \) 次。<sup>[2](https://www.ucd.ie/geary/static/publications/workingpapers/gearywp201216.pdf)</sup> 参数 \( s \) 控制强化的强度：当 \( s=0 \) 时，抽取就是普通的放回抽样；而 \( s \) 越大，早期结果对后续结果的影响就越重。

该方案有两个初看令人意外的性质。第一，每次抽取时抽到黑球的概率始终保持为 \( b/(b+r) \)，因此各次抽取虽然不独立，却同分布。<sup>[2](https://www.ucd.ie/geary/static/publications/workingpapers/gearywp201216.pdf)</sup> 第二，这种依赖是均匀的：序列中任意两次抽取之间的线性相关系数，无论相隔多远，都等于 \( s/(b+r+s) \)。<sup>[2](https://www.ucd.ie/geary/static/publications/workingpapers/gearywp201216.pdf)</sup> 这种均匀相关结构把波利亚罐子与那些依赖随间隔衰减的过程区分开来。

## 抽取次数的分布

设 \( X \) 为 \( n \) 次试验中抽到的黑球数。含有 \( k \) 个黑球和 \( n-k \) 个红球结果的 \( \binom{n}{k} \) 个序列每个都具有相同的概率，于是

\[ P\{X=k\} = \binom{n}{k} \frac{b(b+s)\cdots[b+(k-1)s]\, r(r+s)\cdots[r+(n-k-1)s]}{(b+r)(b+r+s)\cdots[b+r+(n-1)s]}, \qquad k=0,1,\ldots,n. \]

利用上升阶乘 \( x^{[r]} = x(x+1)\cdots(x+r-1) \) 以及重参数化 \( \alpha = b/s \)、\( \beta = r/s \)，约翰逊与科茨将此式紧凑地写作 \( P\{X=k\} = \binom{n}{k} \alpha^{[k]}\beta^{[n-k]}/(\alpha+\beta)^{[n]} \)。<sup>[2](https://www.ucd.ie/geary/static/publications/workingpapers/gearywp201216.pdf)</sup> 当 \( a, b, c \) 为正整数时，第 k 个红球出现的试验序号服从贝塔负二项分布；当 \( c=0 \) 时，它退化为普通的负二项分布。<sup>[3](https://stats.libretexts.org/Bookshelves/Probability_Theory/Probability_Mathematical_Statistics_and_Stochastic_Processes_%28Siegrist%29/12%3A_Finite_Sampling_Models/12.08%3A_Polya%27s_Urn_Process)</sup>

## 极限行为与可交换性

**随机极限。** 无记忆的马尔可夫链其颜色比例会稳定在一个固定的平衡点上，波利亚罐子则不同，其比例收敛到一个随机极限。把初始组成写作 \( a \) 个红球和 \( b \) 个黑球、强化参数为 \( c \)，则前 \( n \) 次试验中抽出的红球比例与罐中红球比例都几乎必然且均方收敛到一个随机变量 \( P \)，它服从参数为 \( a/c \) 与 \( b/c \) 的贝塔分布。<sup>[3](https://stats.libretexts.org/Bookshelves/Probability_Theory/Probability_Mathematical_Statistics_and_Stochastic_Processes_%28Siegrist%29/12%3A_Finite_Sampling_Models/12.08%3A_Polya%27s_Urn_Process)</sup> 因此，初始组成决定了最终比例的分布：初始红球越多的罐子，其极限越偏向红色，但结果仍然是真正随机的。当 \( a=b=c \) 时，极限为 \( (0,1) \) 上的均匀分布。<sup>[3](https://stats.libretexts.org/Bookshelves/Probability_Theory/Probability_Mathematical_Statistics_and_Stochastic_Processes_%28Siegrist%29/12%3A_Finite_Sampling_Models/12.08%3A_Polya%27s_Urn_Process)</sup> 鞅论提供了证明这一收敛的标准工具，因为罐中比例过程是一个鞅。<sup>[3](https://stats.libretexts.org/Bookshelves/Probability_Theory/Probability_Mathematical_Statistics_and_Stochastic_Processes_%28Siegrist%29/12%3A_Finite_Sampling_Models/12.08%3A_Polya%27s_Urn_Process)</sup>

**可交换性。** 从波利亚罐子中抽出的颜色序列是可交换的，即其分布在对顺序作有限置换下不变。根据德菲内蒂表示定理，这样的序列是独立伯努利试验的混合：初始组成为 \( r \) 个红球和 \( b \) 个黑球的波利亚罐子，其德菲内蒂测度是参数为 \( r \) 与 \( b \) 的贝塔分布，因此该罐子与贝塔-伯努利构造在序列上生成完全相同的分布。<sup>[4](https://conservancy.umn.edu/bitstreams/6c717c55-b703-4f34-ade6-817f82c64d5e/download)</sup> 这一等同是罐子图景与贝叶斯推断之间的桥梁：假定一个波利亚罐子过程用于序贯预测，就为带狄利克雷先验的多项抽样的标准贝叶斯模型提供了形式上的依据，其中先验参数充当加到观测计数上的伪计数。<sup>[6](https://pmc.ncbi.nlm.nih.gov/articles/PMC3399698/)</sup>

## 历史

该模型得名于埃根贝格尔与波利亚1923年发表在《应用数学与力学杂志》（*Zeitschrift für angewandte Mathematik und Mechanik*）上的论文，他们在文中将其应用于一种传染病的传播。<sup>[1](https://onlinelibrary.wiley.com/doi/pdf/10.1002/zamm.19230030407)</sup><sup> • </sup><sup>[2](https://www.ucd.ie/geary/static/publications/workingpapers/gearywp201216.pdf)</sup> 罐子模型整体上有着远为久远的谱系，出现在雅各布·伯努利的《猜度术》（*Ars Conjectandi*，1713）中，出现在丹尼尔·伯努利、棣莫弗、蒙莫尔与拉普拉斯的著作中，也出现在包括凯特勒与泊松在内的十九世纪作者笔下。<sup>[7](https://lib.ysu.am/open_books/418214.pdf)</sup> 如今称为波利亚-埃根贝格尔模型的那一类方案，似乎已由安德烈·马尔可夫预先提出：他于1917年10月8日向科学院物理-数学部提交了一个序贯换球问题的推广，而他1906年的工作已包含相关模型。<sup>[8](https://hsm.stackexchange.com/questions/18086/did-george-p%C3%B3lya-actually-invent-p%C3%B3lyas-urn)</sup><sup> • </sup><sup>[7](https://lib.ysu.am/open_books/418214.pdf)</sup> 波利亚本人于1931年在讨论可交换性时又回到了这一方案。<sup>[4](https://conservancy.umn.edu/bitstreams/6c717c55-b703-4f34-ade6-817f82c64d5e/download)</sup>

## 推广

现代理论把广义波利亚罐子视为具有 \( q \ge 2 \) 种颜色的球的离散时间马尔可夫过程。每种颜色 \( i \) 带有一个活动度或权重 \( a_i \)，抽到颜色 \( i \) 的球会添加一个替换向量 \( \xi_i = (\xi_{i1},\ldots,\xi_{iq}) \)，其分量可以是随机的、实值的，甚至为负，只要罐子保持可维持，即每种颜色的计数保持非负且总活动度保持为正。<sup>[9](https://link.springer.com/article/10.1007/s10959-025-01447-4)</sup> 若每一步加权添加的总量 \( \sum_j a_j \xi_{ij} \) 是一个与所抽颜色无关的常数 \( b>0 \)，则称该罐子是平衡的。<sup>[9](https://link.springer.com/article/10.1007/s10959-025-01447-4)</sup> 对于一般的替换矩阵，极限行为比经典情形更为丰富：在不可约平衡罐子中，归一化组成收敛到一个确定性极限，而恒等型替换规则则产生随机的狄利克雷分布极限。<sup>[10](https://people.bath.ac.uk/cdm37/urns.pdf)</sup> 一种常见的证明技巧是把离散罐子嵌入连续时间，作为多类型高尔顿-沃森分支过程。<sup>[10](https://people.bath.ac.uk/cdm37/urns.pdf)</sup>

强化罐子过程定义为在罐子状态空间上的强化随机游走，它们是部分可交换的，常返的此类过程是马尔可夫链的混合；从这些过程可以导出包括波利亚树、贝塔-斯泰西过程与右中立过程在内的贝叶斯非参数先验。<sup>[11](https://www.sciencedirect.com/science/article/pii/S0304414999001192)</sup> 在贝叶斯非参数统计中，波利亚罐子还作为狄利克雷过程的预测性表示出现：布莱克韦尔与麦奎因于1973年通过波利亚罐子方案导出了弗格森分布，同样的结构也构成中餐馆过程的基础，其中球对应数据点，颜色对应聚类，而离散度参数扮演先验的角色。<sup>[5](https://journal.hep.com.cn/fmc/EN/10.1007/s11464-022-1004-3)</sup><sup> • </sup><sup>[12](https://github.com/echen/dirichlet-process)</sup>

## 应用

最初的动机是传染，此后该模型被应用于人口增长、序贯临床试验、生物学、工业与金融。<sup>[2](https://www.ucd.ie/geary/static/publications/workingpapers/gearywp201216.pdf)</sup> 在临床试验中，罐子模型生成响应自适应随机化：魏与达勒姆（1978）的随机化胜者优先规则，通过从一个组成根据先前治疗反应更新的罐子中抽取来分配每位患者，从而使表现更好的治疗吸引更多患者。<sup>[13](https://pmc.ncbi.nlm.nih.gov/articles/PMC7614644/)</sup> 对罐子设计的比较研究发现，带迁入的生灭罐子表现最佳，除非成功概率非常小，此时波利亚罐子的随机化版本更受青睐。<sup>[14](https://pubmed.ncbi.nlm.nih.gov/10709804/)</sup>

在网络科学中，波利亚罐子启发了一种复杂网络的过滤方法，它使用一族按照网络自身异质性校准的零假设来检验哪些连边具有统计显著性。<sup>[15](https://pmc.ncbi.nlm.nih.gov/articles/PMC6375975/)</sup> 该方案在数据分析中也起到警示作用：对于二元纵向数据，波利亚罐子强化模型与一种个体在未观测特征上存在差异的异质性模型完全混淆，因此若不施加额外限制，一组给定的序列无法归因于其中一种机制而非另一种。<sup>[16](https://pmc.ncbi.nlm.nih.gov/articles/PMC12167982/)</sup>

## References

1. [Eggenberger, F. and Pólya, G. (1923). Über die Statistik verketteter Vorgänge. Z. angew. Math. Mech. 3: 279-289.](https://onlinelibrary.wiley.com/doi/pdf/10.1002/zamm.19230030407)
2. [Calabrese, R. Uniform correlation structure and convex stochastic ordering in the Pólya urn scheme. UCD Geary Institute working paper.](https://www.ucd.ie/geary/static/publications/workingpapers/gearywp201216.pdf)
3. [Pólya's Urn Process, Statistics LibreTexts (Siegrist).](https://stats.libretexts.org/Bookshelves/Probability_Theory/Probability_Mathematical_Statistics_and_Stochastic_Processes_%28Siegrist%29/12%3A_Finite_Sampling_Models/12.08%3A_Polya%27s_Urn_Process)
4. [Hill, B. M. Exchangeable Urn Processes.](https://conservancy.umn.edu/bitstreams/6c717c55-b703-4f34-ade6-817f82c64d5e/download)
5. [Xia, Y., Liu, Y., Gou, J. (2022). Dirichlet process and its developments: a survey. Front. Math. China 17(1): 79-115.](https://journal.hep.com.cn/fmc/EN/10.1007/s11464-022-1004-3)
6. [A Predictive Approach to Nonparametric Inference for Adaptive Sequential Sampling of Psychophysical Experiments, PMC.](https://pmc.ncbi.nlm.nih.gov/articles/PMC3399698/)
7. [History of urn models (book chapter, lib.ysu.am).](https://lib.ysu.am/open_books/418214.pdf)
8. [Did George Pólya actually invent Pólya's Urn? History of Science and Mathematics Stack Exchange.](https://hsm.stackexchange.com/questions/18086/did-george-p%C3%B3lya-actually-invent-p%C3%B3lyas-urn)
9. [Moments of Balanced Pólya Urns, Journal of Theoretical Probability.](https://link.springer.com/article/10.1007/s10959-025-01447-4)
10. [Pólya urns and other reinforcement processes, University of Bath lecture notes.](https://people.bath.ac.uk/cdm37/urns.pdf)
11. [Urn schemes and reinforced random walks, Stochastic Processes and their Applications 88(1): 59-78 (2000).](https://www.sciencedirect.com/science/article/pii/S0304414999001192)
12. [Introduction to Nonparametric Bayes and the Dirichlet Process (E. Chen, GitHub).](https://github.com/echen/dirichlet-process)
13. [Robertson, D. S. et al. (2023). Response-adaptive randomization in clinical trials: from myths to practical considerations. Stat. Sci. 38(2): 185-208.](https://pmc.ncbi.nlm.nih.gov/articles/PMC7614644/)
14. [Ivanova, A. and Rosenberger, W. F. (2000). A comparison of urn designs for randomized clinical trials of K > 2 treatments. J. Biopharm. Stat. 10(1): 93-107.](https://pubmed.ncbi.nlm.nih.gov/10709804/)
15. [A Pólya urn approach to information filtering in complex networks, PMC.](https://pmc.ncbi.nlm.nih.gov/articles/PMC6375975/)
16. [Reinforcement generates systematic differences without heterogeneity, PMC.](https://pmc.ncbi.nlm.nih.gov/articles/PMC12167982/)

---
*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: 物质世界与数学 › 数学与统计学 › 统计学与概率论 › Bayesian statistics › Bayesian model selection, design, and applications › Bayesian nonparametrics › Pólya trees and piecewise priors on distributions

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/polya-urn-model

English original: https://www.edgepedia.org/polya-urn-model
