# 概率生成函数

概率生成函数（PGF）是一种幂级数，它编码了取非负整数值的随机变量的概率质量函数：对于取值 0、1、2、…… 的随机变量 X，其概率为 p_n = P(X = n)，则 PGF 为

\[ G_X(s) = \mathbb{E}[s^X] = \sum_{n=0}^{\infty} p_n s^n. \]

这一名称源于概率可以从该函数中恢复：将 G_X(s) 展开为 s 的幂级数，s^n 的系数即为 p_n。<sup>[1](https://users.phhp.ufl.edu/rlp176/Courses/BasicAnalysis/PGF.pdf)</sup> PGF 是离散状态空间上随机过程（如分支过程和排队系统）的主要分析工具。<sup>[1](https://users.phhp.ufl.edu/rlp176/Courses/BasicAnalysis/PGF.pdf)</sup>

| 关键事实 | 详情 |
|---|---|
| 定义 | 对取非负整数值的随机变量，\( G_X(s) = \mathbb{E}[s^X] = \sum_{n=0}^{\infty} p_n s^n \)<sup>[1](https://users.phhp.ufl.edu/rlp176/Courses/BasicAnalysis/PGF.pdf)</sup> |
| 恢复概率 | \( p_k = \frac{1}{k!} G_X^{(k)}(0) \)，因此 PGF 唯一确定分布<sup>[1](https://users.phhp.ufl.edu/rlp176/Courses/BasicAnalysis/PGF.pdf)</sup> |
| 均值与方差 | \( \mathbb{E}(X) = G'_X(1) \)，\( \mathrm{Var}(X) = G''_X(1) + G'_X(1) - (G'_X(1))^2 \)<sup>[2](https://pastopic.com/cambridge/further-mathematics-9231/notes/probability-generating-functions)</sup> |
| 收敛性 | 每个 PGF 都存在收敛半径 R，且满足 \( R \ge 1 \)；R 可以是 1 到 \( \infty \) 之间的任何值<sup>[3](https://www.stat.auckland.ac.nz/~fewster/325/notes/ch4.pdf)</sup> |
| 变量之和 | 对独立的 X 和 Y，\( G_{X+Y}(s) = G_X(s)\,G_Y(s) \)；对随机和 \( Z_N = X_1 + \cdots + X_N \)，PGF 为 \( h(g(s)) \)<sup>[1](https://users.phhp.ufl.edu/rlp176/Courses/BasicAnalysis/PGF.pdf)</sup><sup> • </sup><sup>[3](https://www.stat.auckland.ac.nz/~fewster/325/notes/ch4.pdf)</sup>  |
| 分支过程 | Galton-Watson 过程的灭绝概率 q 是后代 PGF 的最小非负不动点，\( G_Y(q) = q \)<sup>[4](https://link.springer.com/article/10.1007/s13324-026-01200-y)</sup> |
| 历史 | 该技术见于棣莫弗的《分析杂录》（1730）；拉普拉斯于 1812 年命名并发展了这一方法；英文术语仅可追溯至 1940 年代<sup>[5](https://mathshistory.st-andrews.ac.uk/Miller/mathword/p/)</sup> |

## 基本性质

由于 PGF 是系数非负且求和为 1 的幂级数，它在 s = 1 处收敛，并在其收敛半径内无穷次可微。在 s = 0 处求导可逐项恢复质量函数：\( p_k = \frac{1}{k!} G_X^{(k)}(0) \)。一个直接推论是唯一性：若两个取非负整数值的随机变量 X 和 Y 的 PGF 在包含 0 的某个区间内对所有 s 一致，则 X 和 Y 具有相同的分布。<sup>[1](https://users.phhp.ufl.edu/rlp176/Courses/BasicAnalysis/PGF.pdf)</sup> 这使得如下标准论证成为可能：若某生成函数被识别为（譬如）泊松分布的生成函数，则证明该变量服从泊松分布。<sup>[6](https://wjmaths.com/courses/probability-theory/build/probability_theorysu12.html)</sup>

**由 s = 1 处的导数求矩。** X 的阶乘矩由 s = 1 处的导数生成：\( \mathbb{E}[X(X-1)\cdots(X-k+1)] = G_X^{(k)}(1) \)，该阶乘矩存在且有限当且仅当相应的导数存在且有限。<sup>[1](https://users.phhp.ufl.edu/rlp176/Courses/BasicAnalysis/PGF.pdf)</sup> 由此可得实用公式 \( \mathbb{E}(X) = G'_X(1) \) 和 \( \mathrm{Var}(X) = G''_X(1) + G'_X(1) - (G'_X(1))^2 \)。<sup>[2](https://pastopic.com/cambridge/further-mathematics-9231/notes/probability-generating-functions)</sup> 等价地，第 r 阶矩可通过将算子 \( x\,\partial_x \) 作用于 PGF 并在 x = 1 处求值来提取。<sup>[7](https://joel-miller-lab.github.io/AMSI2026_PGF/notebooks/BasicGenFxn/GenFxnsDiff.html)</sup>

**示例。** 对 X ~ Bernoulli(p)，\( G_X(s) = (1-p) + ps \)。对 X ~ Poisson(λ)，\( G_X(s) = e^{-\lambda(1-s)} \)，其在 s = 1 处的各阶导数均等于 λ 的相应幂次，从而 \( \mathbb{E}(X) = \lambda \)。<sup>[1](https://users.phhp.ufl.edu/rlp176/Courses/BasicAnalysis/PGF.pdf)</sup> 对 X ~ Binomial(n, p)，\( G_X(s) = (ps + q)^n \)，其中 q = 1 - p。<sup>[3](https://www.stat.auckland.ac.nz/~fewster/325/notes/ch4.pdf)</sup>

## 收敛性与收敛半径

PGF 的收敛半径是一个数 R > 0，使得和式 \( G_X(s) = \sum_{x=0}^{\infty} s^x \mathbb{P}(X=x) \) 在 \( |s| < R \) 时收敛，在 \( |s| > R \) 时发散；在 \( |s| = R \) 处不作一般性断言。<sup>[3](https://www.stat.auckland.ac.nz/~fewster/325/notes/ch4.pdf)</sup> 对任何 PGF，收敛半径均存在，总是至少为 1，且可以是 1 到 \( \infty \) 之间的任何值。使级数收敛的 s 的集合关于 0 对称，尽管函数本身通常并不对称，因为一般而言 \( G_X(-s) \neq G_X(s) \)。<sup>[3](https://www.stat.auckland.ac.nz/~fewster/325/notes/ch4.pdf)</sup>

两个标准示例说明了这一范围。对 X ~ Geometric(p = 0.8)，\( G_X(s) = 0.8/(1 - 0.2s) \)，在 \( |0.2s| < 1 \) 时成立，故收敛半径为 R = 5。对 X ~ Binomial(n, p)，和式为有限项，\( G_X(s) = (ps+q)^n \) 对所有实数 s 成立，故 R = \( \infty \)。<sup>[3](https://www.stat.auckland.ac.nz/~fewster/325/notes/ch4.pdf)</sup>

**阿贝尔定理。** 收敛边缘处的行为在两端可能不同：对 Geometric(0.8) 示例，PGF 在 s = -5 处不连续，但阿贝尔定理指出，系数非负的幂级数在 s = 1 处总是左连续的，无论该处之和是否有限。由于每个 PGF 的 R ≥ 1，这保证了即使在最坏的 R = 1 情形下 s = 1 处的连续性，并为通过取 \( G'_X(s) \) 当 s 从左侧趋于 1 时的极限来计算 \( \mathbb{E}(X) = G'_X(1) \) 提供了依据。<sup>[3](https://www.stat.auckland.ac.nz/~fewster/325/notes/ch4.pdf)</sup>

## 和与复合分布

PGF 将卷积转化为乘法。对独立的 X 和 Y，\( G_{X+Y}(s) = G_X(s) G_Y(s) \)；对 n 个具有公共 PGF g(s) 的独立同分布变量，其和的 PGF 为 \( [g(s)]^n \)。<sup>[1](https://users.phhp.ufl.edu/rlp176/Courses/BasicAnalysis/PGF.pdf)</sup><sup> • </sup><sup>[3](https://www.stat.auckland.ac.nz/~fewster/325/notes/ch4.pdf)</sup>  PGF 正是以此识别和之分布：两个独立的 Poisson(λ) 与 Poisson(µ) 变量之和给出 Poisson(λ + µ) 变量的 PGF，再由唯一性完成证明。<sup>[1](https://users.phhp.ufl.edu/rlp176/Courses/BasicAnalysis/PGF.pdf)</sup>

对复合过程，即随机和 \( Z_N = X_1 + \cdots + X_N \)，其中 N 与独立同分布的求和项独立，其 PGF 为复合 \( G(s) = h(g(s)) \)，其中 h 为 N 的 PGF，g 为求和项的公共 PGF。求导可得 \( \mathbb{E}[Z_N] = \mathbb{E}[N]\,\mathbb{E}[X_1] \)。<sup>[1](https://users.phhp.ufl.edu/rlp176/Courses/BasicAnalysis/PGF.pdf)</sup>

## 应用

**分支过程。** 在 Galton-Watson 过程中，每个个体独立地按后代分布 Y 产生随机数量的子女，单代的生成函数 \( f(s) = \mathbb{E}[s^{Z_1}] \) 决定了整个过程：下一代的种群数量是独立同分布副本之和，因此从状态 i 出发的转移概率的生成函数为 \( [f(s)]^i \)。<sup>[8](https://math.uchicago.edu/~may/REU2024/REUPapers/Singh.pdf)</sup> 一个经典结果是，灭绝概率 q 是后代 PGF 的最小非负不动点，\( G_Y(q) = q \)；第一个完整证明由 J. F. Steffensen 在 1930 年以丹麦文写就的一篇短文中给出。<sup>[4](https://link.springer.com/article/10.1007/s13324-026-01200-y)</sup> 同样的复合性质构成了第 n 代种群规模 PGF 的递推关系的基础。<sup>[9](https://ideas.repec.org/h/spr/sprchp/978-981-99-5601-2_5.html)</sup>

**排队与流行病。** 在 M/G/1 排队系统中，首先建立占用分布的 PGF，然后用它获得等待时间、逗留时间和忙期分布的拉普拉斯–斯蒂尔切斯变换。<sup>[10](https://ndl.ethernet.edu.et/bitstream/123456789/23430/1/273.pdf.pdf)</sup> 在流行病建模中，后代（传播）分布的 PGF 可预测大群体中的早期暴发行为，包括流行病发生的概率、给定代数后的规模分布，以及非流行性暴发的累积规模分布。<sup>[11](https://arxiv.org/abs/1803.05136)</sup>

## 与其他生成函数的关系

PGF 是统计学中常用的四种生成函数之一，另外三种是矩生成函数（MGF）、累积量生成函数和特征函数。<sup>[12](https://onlinelibrary.wiley.com/doi/10.1002/9781119047063.ch9)</sup> MGF 为 \( M_X(t) = \mathbb{E}[e^{tX}] \)，通过 \( \mathbb{E}(X^j) = M_X^{(j)}(0) \) 生成普通矩，但它可能不存在；特征函数 \( \phi_X(t) = \mathbb{E}[e^{itX}] \) 总是存在且唯一确定分布。<sup>[13](https://faculty.washington.edu/yenchic/26A_stat516/Lec1_probability.html)</sup><sup> • </sup><sup>[14](https://r-statistics.co/Moment-Generating-Functions-vs-Characteristic-Functions.html)</sup>  PGF 适用于取非负整数值的变量，本质上就是 MGF 在 \( t = \ln s \) 处的取值，且其在零点处的导数返回的是概率质量函数本身而非矩。<sup>[15](https://www.sciencedirect.com/topics/mathematics/probability-generating-function)</sup>

## 历史

亚伯拉罕·棣莫弗（Abraham de Moivre）在《分析杂录》（*Miscellanea Analytica*，1730）中运用生成函数技术来计算掷 n 颗骰子得到 s 点的机会数，该分析在《机会的学说》（*Doctrine of Chances*，1738）第二版中重印；托马斯·辛普森（Thomas Simpson）也在 1755 年使用了生成函数。该方法由皮埃尔-西蒙·拉普拉斯（Pierre-Simon Laplace）命名，他亦推进了该方法；他在 1812 年《概率分析理论》（*Théorie Analytique des Probabilités*）题为《生成函数的计算》（*Calcul des Functions Génératrices*）的第一卷中对此进行了论述。英文术语“probability generating function”直到 1940 年代才通行，早期出现于 M. S. 巴特利特（M. S. Bartlett）1940 年发表于《皇家统计学会杂志》（*Journal of the Royal Statistical Society*）的论文中。<sup>[5](https://mathshistory.st-andrews.ac.uk/Miller/mathword/p/)</sup>

## References

1. [Probability Generating Functions, University of Florida lecture notes](https://users.phhp.ufl.edu/rlp176/Courses/BasicAnalysis/PGF.pdf)
2. [Probability generating functions notes, Cambridge Further Mathematics 9231, Pastopic](https://pastopic.com/cambridge/further-mathematics-9231/notes/probability-generating-functions)
3. [Chapter 4: Probability Generating Functions, Stat 325, University of Auckland](https://www.stat.auckland.ac.nz/~fewster/325/notes/ch4.pdf)
4. [Galton-Watson processes, simple varieties of trees and Khinchin families, Analysis and Mathematical Physics (Springer)](https://link.springer.com/article/10.1007/s13324-026-01200-y)
5. [Earliest Known Uses of Some of the Words of Mathematics (P), MacTutor History of Mathematics](https://mathshistory.st-andrews.ac.uk/Miller/mathword/p/)
6. [Uniqueness and Continuity, Probability Theory course notes](https://wjmaths.com/courses/probability-theory/build/probability_theorysu12.html)
7. [Differentiation of Generating Functions, Applications of PGFs to Biological Systems, Joel Miller Lab](https://joel-miller-lab.github.io/AMSI2026_PGF/notebooks/BasicGenFxn/GenFxnsDiff.html)
8. [The Galton-Watson Branching Process, Aditya Singh, University of Chicago REU 2024](https://math.uchicago.edu/~may/REU2024/REUPapers/Singh.pdf)
9. [Bienayme Galton Watson Branching Process, Madhira & Deshmukh, Springer](https://ideas.repec.org/h/spr/sprchp/978-981-99-5601-2_5.html)
10. [The Basic M/G/1 Queueing System](https://ndl.ethernet.edu.et/bitstream/123456789/23430/1/273.pdf.pdf)
11. [A primer on the use of probability generating functions in infectious disease modeling, arXiv](https://arxiv.org/abs/1803.05136)
12. [Generating Functions, Statistics for Scientists and Engineers, Wiley](https://onlinelibrary.wiley.com/doi/10.1002/9781119047063.ch9)
13. [STAT 516 Lecture 1: Review on Probability and Statistics, University of Washington](https://faculty.washington.edu/yenchic/26A_stat516/Lec1_probability.html)
14. [MGFs vs Characteristic Functions, Explained in R](https://r-statistics.co/Moment-Generating-Functions-vs-Characteristic-Functions.html)
15. [Probability Generating Function, ScienceDirect Topics](https://www.sciencedirect.com/topics/mathematics/probability-generating-function)

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

Topic: 物质世界与数学 › 数学与统计学 › 统计学与概率论 › Probability theory › Probability distributions › Characteristic and generating functions › Probability-generating functions

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/probability-generating-function

English original: https://www.edgepedia.org/probability-generating-function
