# 矩母函数

随机变量 \(X\) 的**矩母函数**（moment-generating function，MGF）是函数 \(M_X(t)=E(e^{tX})\)，定义在使该期望有限的那些 \(t\) 值处，通常是在 0 附近的一个区间 \((-h,h)\) 上。它的名称来自其核心性质：当它存在时，在 \(t=0\) 处的第 \(r\) 阶导数等于关于原点的第 \(r\) 阶矩 \(E(X^r)\)，因此单个函数就生成了分布的所有矩。<sup>[1](https://online.stat.psu.edu/stat414/Lesson09)</sup>

| 要点 | 详情 |
|---|---|
| 定义 | \(M_X(t)=E(e^{tX})\)，其中 \(t\) 属于定义域 \(T\)，在 \(T\) 上 \(E(e^{tX})<\infty\)；恒有 \(M_X(0)=1\)<sup>[1](https://online.stat.psu.edu/stat414/Lesson09)</sup><sup> • </sup><sup>[2](https://researchers.ms.unimelb.edu.au/~xgge%40unimelb/Files/Teaching/Advanced%20Probability%20%28Semester%201%202020%29/The%20Theory%20of%20Moment%20Generating%20Functions.pdf)</sup> |
| 矩 | \(M_X^{(r)}(0)=E(X^r)\)；均值 \(\mu=M'(0)\)，方差 \(\sigma^2=M''(0)-[M'(0)]^2\)<sup>[1](https://online.stat.psu.edu/stat414/Lesson09)</sup> |
| 唯一性 | 存在的矩母函数唯一地确定随机变量的概率分布<sup>[1](https://online.stat.psu.edu/stat414/Lesson09)</sup> |
| 独立性 | 若 \(X=\sum_{i=1}^{n} X_i\)，其中 \(X_i\) 相互独立，则 \(M_X(s)=\prod_{i=1}^{n} M_{X_i}(s)\)<sup>[3](https://math.mit.edu/~goemans/18310S15/chernoff-notes.pdf)</sup> |
| 存在性 | 并无保证：矩母函数要求 \(E(e^{tX})<\infty\) 在 \(t=0\) 附近成立；而特征函数对每个概率律都存在<sup>[4](https://www.varsitytutors.com/practice/subjects/statistics-graduate-level/lessons/mgf-and-characteristic-functions)</sup> |
| 示例 | 二项分布：\(M(t)=[(1-p)+pe^t]^n\)，给出均值 \(np\) 和方差 \(np(1-p)\)<sup>[1](https://online.stat.psu.edu/stat414/Lesson09)</sup> |
| 应用 | 识别分布、独立变量之和、Chernoff 型指数尾界<sup>[1](https://online.stat.psu.edu/stat414/Lesson09)</sup><sup> • </sup><sup>[3](https://math.mit.edu/~goemans/18310S15/chernoff-notes.pdf)</sup> |

## 定义与基本性质

对于具有概率质量函数 \(f(x)\) 和支撑集 \(S\) 的离散随机变量 \(X\)，矩母函数为

\[ M(t)=E(e^{tX})=\sum_{x\in S} e^{tx}f(x), \]

只有当这个和在零附近的某个区间 \(-h<t<h\) 上有限时，它才称得上是矩母函数。同样的定义 \(M_X(t)=E[e^{tX}]\) 也适用于连续变量，此时期望取为积分；定义域 \(T\) 由使指数矩有限的那些 \(t\) 组成。<sup>[1](https://online.stat.psu.edu/stat414/Lesson09)</sup><sup> • </sup><sup>[2](https://researchers.ms.unimelb.edu.au/~xgge%40unimelb/Files/Teaching/Advanced%20Probability%20%28Semester%201%202020%29/The%20Theory%20of%20Moment%20Generating%20Functions.pdf)</sup>

在零附近的有限性是使这套理论得以运转的工作假设。若 \(M_X(t)\) 在原点附近的某个区间上有限，则 \(X\) 的各阶绝对矩都有限，各阶导数在 \(t=0\) 处都存在，并且求导可以与求和或积分交换次序。此时矩母函数具有绝对收敛的泰勒展开

\[ M_X(t)=\sum_{n=0}^{\infty} \frac{E[X^n]}{n!}\,t^n, \qquad t\in(-\delta,\delta). \]

这个展开也解释了它的名称：将 \(e^{tX}\) 展开并逐项取期望，可以看出 \(t^i/i!\) 的系数正是矩 \(E(X^i)\)，因此这个函数编码了分布的所有矩。<sup>[2](https://researchers.ms.unimelb.edu.au/~xgge%40unimelb/Files/Teaching/Advanced%20Probability%20%28Semester%201%202020%29/The%20Theory%20of%20Moment%20Generating%20Functions.pdf)</sup><sup> • </sup><sup>[3](https://math.mit.edu/~goemans/18310S15/chernoff-notes.pdf)</sup>

## 生成矩

若矩母函数存在，则关于原点的第 \(r\) 阶矩可通过求 \(r\) 次导数并在零点取值得到：

\[ M^{(r)}(0)=E(X^r). \]

特别地，均值为 \(\mu=M'(0)\)，方差为 \(\sigma^2=M''(0)-[M'(0)]^2\)。<sup>[1](https://online.stat.psu.edu/stat414/Lesson09)</sup>

二项分布可以说明这一计算。它的矩母函数为

\[ M(t)=[(1-p)+pe^t]^n, \qquad -\infty<t<\infty. \]

求一次导数并令 \(t=0\)，得到均值 \(\mu=np\)；求两次导数并利用方差公式，得到 \(\sigma^2=np(1-p)\)。<sup>[1](https://online.stat.psu.edu/stat414/Lesson09)</sup>

## 唯一性与识别分布

矩母函数唯一地确定随机变量的概率分布：若两个随机变量具有相同的矩母函数（在 0 附近的公共区间上），则它们具有相同的分布。对于支撑集为 \(\{b_1,b_2,b_3,\ldots\}\) 的离散变量，矩母函数展开为 \(M(t)=e^{tb_1}f(b_1)+e^{tb_2}f(b_2)+\cdots\)，因此 \(e^{tb_i}\) 的系数恰好就是概率 \(P(X=b_i)\)。<sup>[1](https://online.stat.psu.edu/stat414/Lesson09)</sup>

这一唯一性在实际中可用作一种识别技巧。若计算出的矩母函数与某个标准分布的已知矩母函数相符，则该随机变量服从该分布。例如，一个变量具有

\[ M(t)=\left(\frac{3}{4}+\frac{1}{4}e^t\right)^{20} \]

则它必为二项分布，参数 \(n=20\)、\(p=\frac{1}{4}\)，因此其概率质量函数为 \(f(x)=\binom{20}{x}(1/4)^x(3/4)^{20-x}\)，其中 \(x=0,1,\ldots,20\)。<sup>[1](https://online.stat.psu.edu/stat414/Lesson09)</sup>同样的技巧也可用于识别随机变量函数的分布，例如独立变量的线性组合，并且它是一些证明的基础，如独立卡方随机变量的可加性。<sup>[5](https://online.stat.psu.edu/stat414/Lesson25)</sup>

## 独立随机变量之和

矩母函数将卷积转化为乘法。若 \(X=\sum_{i=1}^{n} X_i\)，其中 \(X_i\) 相互独立，则

\[ M_X(s)=\prod_{i=1}^{n} M_{X_i}(s), \]

因为乘积 \(\prod_i e^{sX_i}\) 的期望可由独立性分解。这个引理是许多分布结果背后的主力：它使我们可以分别求出每个被加项的界或封闭形式，再将这些结果合并，得到和的界或封闭形式。<sup>[3](https://math.mit.edu/~goemans/18310S15/chernoff-notes.pdf)</sup>

## 尾界与大偏差

矩母函数是指数尾界中的关键对象。对任意 \(s>0\)，将马尔可夫不等式应用于 \(e^{sX}\) 得到

\[ P(X\ge a) \le \frac{E(e^{sX})}{e^{sa}}, \]

再对 \(s\) 优化便得到 Chernoff 界。Hoeffding、Bernstein、次高斯和 Bennett 型的每一个指数尾界都遵循这一配方：用指数进行倾斜，并对矩母函数取界。<sup>[3](https://math.mit.edu/~goemans/18310S15/chernoff-notes.pdf)</sup><sup> • </sup><sup>[6](https://theorempath.com/topics/chernoff-bounds)</sup>矩母函数的对数，也称为累积量母函数，在大偏差理论中扮演相应的角色。<sup>[7](https://www.emerald.com/books/oa-edited-volume/20922/chapter/107210116/Large-Deviations)</sup>

## 累积量

矩母函数的对数生成的是累积量而非矩：\(\ln M(t)\) 在 \(t=0\) 处的导数给出累积量，即矩的多项式组合，其中第二累积量等于方差。在 1899 年一篇以丹麦语写成、鲜为人知的论文中，丹麦统计学家托瓦尔德·蒂勒（Thorvald Thiele）通过矩给出了累积量的定义，起初借助一个递推公式，后来则通过矩母函数的对数展开。<sup>[8](https://doi.org/10.1111/j.1751-5823.2000.tb00318.x)</sup>

## 存在性与特征函数

矩母函数比特征函数 \(\varphi_X(t)=E(e^{itX})\) 的限制更强。特征函数对每个概率律都存在，并确定该概率律；而矩母函数只在相应的指数矩有限之处才有用。<sup>[9](https://qft.org/mathematical-methods/probability-stochastic-processes/characteristic-functions-cumulants-generating-functionals/)</sup>标准的反例是对数正态分布：若 \(X=e^Z\)，其中 \(Z\) 服从标准正态分布，则 \(E[X^n]\) 对每个 \(n\) 都存在，但 \(X\) 的矩母函数仅在 \(t\le 0\) 时有定义，因此在包含 0 的任何开区间上都不有限。<sup>[2](https://researchers.ms.unimelb.edu.au/~xgge%40unimelb/Files/Teaching/Advanced%20Probability%20%28Semester%201%202020%29/The%20Theory%20of%20Moment%20Generating%20Functions.pdf)</sup>

所有矩的有限性也不足以确定一个概率律。在对数正态密度基础上构造的一族密度 \(f_\varepsilon(x)=f(x)(1+\varepsilon\sin(2\pi\ln x))\)，对每个 \(\varepsilon\in[-1,1]\) 都具有与对数正态完全相同的矩，然而这些密度各不相同；构造此类例子的一般方法是使密度以慢于指数的速度衰减，这便破坏了矩母函数的存在性。<sup>[2](https://researchers.ms.unimelb.edu.au/~xgge%40unimelb/Files/Teaching/Advanced%20Probability%20%28Semester%201%202020%29/The%20Theory%20of%20Moment%20Generating%20Functions.pdf)</sup>

当矩母函数确实存在时，它在矩的计算和分布识别方面往往比特征函数更方便；当它不存在时，特征函数便是替代品，而在诸如证明极限定理这样的理论工作中，特征函数更受青睐，因为它总是存在。<sup>[4](https://www.varsitytutors.com/practice/subjects/statistics-graduate-level/lessons/mgf-and-characteristic-functions)</sup>

## 历史

生成函数方法通常追溯到欧拉（Euler）和拉普拉斯（Laplace），尽管一些概率史家——尤其是 H. L. Seal——指出亚伯拉罕·棣莫弗（Abraham de Moivre）是第一个应用它的人。<sup>[10](https://www.gtfp.cs.rhul.ac.uk/sheynin/036_liap.pdf)</sup>拉普拉斯在其 1779 年的论文《关于数列的回忆录》（"Mémoire sur les suites"）中发展了生成函数理论，生成函数成为他概率论工作的基石；他 1785 年关于涉及极大数公式近似的回忆录引入了特征函数和一个反演公式，而他 1812 年的《概率的分析理论》（*Théorie analytique des probabilités*）第一册便是一部生成函数的演算。<sup>[11](https://www.probabilityandfinance.com/pulskamp/Laplace/)</sup>

## References

1. [Lesson 9: Moment Generating Functions, STAT 414, Penn State Eberly College of Science](https://online.stat.psu.edu/stat414/Lesson09)
2. [Xi Geng, The Theory of Moment Generating Functions, University of Melbourne lecture notes](https://researchers.ms.unimelb.edu.au/~xgge%40unimelb/Files/Teaching/Advanced%20Probability%20%28Semester%201%202020%29/The%20Theory%20of%20Moment%20Generating%20Functions.pdf)
3. [Michel Goemans, Lecture notes on Chernoff bounds, MIT 18.310A](https://math.mit.edu/~goemans/18310S15/chernoff-notes.pdf)
4. [MGF and Characteristic Functions, Varsity Tutors statistics lessons](https://www.varsitytutors.com/practice/subjects/statistics-graduate-level/lessons/mgf-and-characteristic-functions)
5. [Lesson 25: The Moment-Generating Function Technique, STAT 414, Penn State](https://online.stat.psu.edu/stat414/Lesson25)
6. [Chernoff Bounds: Exponential Tail Bounds via MGF, TheoremPath](https://theorempath.com/topics/chernoff-bounds)
7. [Large Deviations, in Social Learning, Opinion Formation and Decision-Making over Graphs, Emerald Publishing](https://www.emerald.com/books/oa-edited-volume/20922/chapter/107210116/Large-Deviations)
8. [Anders Hald (2000). The Early History of the Cumulants and the Gram-Charlier Series. International Statistical Review.](https://doi.org/10.1111/j.1751-5823.2000.tb00318.x)
9. [Characteristic Functions, Moments, Cumulants, and Generating Functionals, QFT.org](https://qft.org/mathematical-methods/probability-stochastic-processes/characteristic-functions-cumulants-generating-functionals/)
10. [P. P. Permjakov (1980). From the History of the Combinatorial Analysis: On the Development of the Method of Generating Functions until the Mid-19th Century, trans. O. B. Sheynin](https://www.gtfp.cs.rhul.ac.uk/sheynin/036_liap.pdf)
11. [Richard Pulskamp, Laplace on Probability and Statistics, Xavier University](https://www.probabilityandfinance.com/pulskamp/Laplace/)

---
*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 › Characteristic and generating functions › Moment-generating functions

Copyright 2026 Edgepedia

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

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

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