# 期望值

**期望值**（亦称期望、数学期望或均值）是随机变量的概率加权平均值：用一个数字概括该变量在反复试验中长期取值的平均水平。记作 E(X)、E[X] 或 μ，并无统一记法；文献中亦用 E{X}、EX、黑板粗体 𝔼[X] 及尖括号 ⟨X⟩。<sup>[1](https://mathworld.wolfram.com/ExpectationValue.html)</sup>

| 关键事实 | 详情 |
|---|---|
| 离散型定义 | 对具有概率质量函数 f 的离散随机变量 X，\( E[u(X)] = \sum_{x \in S} u(x) f(x) \)，前提是该和存在（小于 \( \infty \)）。<sup>[2](https://online.stat.psu.edu/stat414/Lesson08)</sup> |
| 连续型定义 | 对具有密度 \( f_X \) 的连续随机变量，\( E[X] = \int_{-\infty}^{\infty} x f_X(x) \, dx \)，前提是该积分存在。<sup>[3](https://sites.math.rutgers.edu/~jcg219/courses/spring2019/math338/resources/book/Chapter2.pdf)</sup> |
| 测度论形式 | 在概率空间 \( (\Omega, \mathscr{F}, \mathbb{P}) \) 上，\( \mathbb{E}(X) = \int_\Omega X \, d\mathbb{P} \)，前提是该积分存在。<sup>[4](https://stats.libretexts.org/Bookshelves/Probability_Theory/Probability_Mathematical_Statistics_and_Stochastic_Processes_%28Siegrist%29/04%253A_Expected_Value/4.09%253A_Expected_Value_as_an_Integral)</sup> |
| 线性性 | 对常数 a 和 b，\( E[aX + bY] = aE[X] + bE[Y] \) 且 \( E[\sum_{i=1}^{n} X_i] = \sum_{i=1}^{n} E[X_i] \)。<sup>[1](https://mathworld.wolfram.com/ExpectationValue.html)</sup> |
| 可能不存在 | 随机变量的期望值可能不存在；柯西分布是无均值分布的标准例子。<sup>[2](https://online.stat.psu.edu/stat414/Lesson08)</sup><sup> • </sup><sup>[5](https://stats.libretexts.org/Bookshelves/Probability_Theory/Probability_Mathematical_Statistics_and_Stochastic_Processes_%28Siegrist%29/05%3A_Special_Distributions/5.32%3A_The_Cauchy_Distribution)</sup> |
| 历史起源 | 布莱兹·帕斯卡（Blaise Pascal）在1654年费马—帕斯卡通信中引入了期望值的概念，将其理解为获胜概率乘以获胜价值；克里斯蒂安·惠更斯（Christiaan Huygens）于1657年发表了首个印刷版论述。<sup>[6](https://encyclopediaofmath.org/wiki/Pascal%2C_Blaise)</sup><sup> • </sup><sup>[7](https://encyclopediaofmath.org/wiki/Huygens%2C_Christiaan)</sup> |
| 常用公式 | 二项分布(n, p)：np；超几何分布(N, G, n)：nG/N；几何分布(p)：1/p。<sup>[8](https://www.stat.berkeley.edu/pub/users/stark/SticiGui/Text/expectation.htm)</sup> |

## 定义

对支撑集为 S、概率质量函数为 f(x) 的离散随机变量 X，函数 u(X) 的期望值是加权和

\[ E[u(X)] = \sum_{x \in S} u(x) f(x), \]

前提是该求和存在，即小于 \( \infty \)。<sup>[2](https://online.stat.psu.edu/stat414/Lesson08)</sup> X 本身的均值是特殊情形 \( E[X] = \sum_{s \in S} s \, p_X(s) \)；当 S 为无限集时，该和为无穷级数，可能不收敛。<sup>[3](https://sites.math.rutgers.edu/~jcg219/courses/spring2019/math338/resources/book/Chapter2.pdf)</sup> 均值是各可能值的加权平均，每个值以其概率为权重。<sup>[2](https://online.stat.psu.edu/stat414/Lesson08)</sup>

对具有概率密度函数 \( f_X \) 的连续随机变量，求和替换为积分：

\[ E[X] = \int_{-\infty}^{\infty} x f_X(x) \, dx, \]

前提是该积分存在。<sup>[3](https://sites.math.rutgers.edu/~jcg219/courses/spring2019/math338/resources/book/Chapter2.pdf)</sup> 更一般地，在现代概率论中，期望定义为样本空间上的勒贝格积分：对概率空间 \( (\Omega, \mathscr{F}, \mathbb{P}) \) 上的实值随机变量 X，\( \mathbb{E}(X) = \int_\Omega X \, d\mathbb{P} \)。<sup>[4](https://stats.libretexts.org/Bookshelves/Probability_Theory/Probability_Mathematical_Statistics_and_Stochastic_Processes_%28Siegrist%29/04%253A_Expected_Value/4.09%253A_Expected_Value_as_an_Integral)</sup><sup> • </sup><sup>[9](https://encyclopediaofmath.org/wiki/Variance)</sup> 该积分分阶段构建：对有限支撑集，它是和 \( \sum_{x \in S} x \, \mathbb{P}(X = x) \)；对非负变量，它是各逼近简单变量的期望值的上确界；一般而言，只要右侧不出现 \( \infty - \infty \) 的形式，\( \mathbb{E}(X) = \mathbb{E}(X^+) - \mathbb{E}(X^-) \)。<sup>[4](https://stats.libretexts.org/Bookshelves/Probability_Theory/Probability_Mathematical_Statistics_and_Stochastic_Processes_%28Siegrist%29/04%253A_Expected_Value/4.09%253A_Expected_Value_as_an_Integral)</sup> 因此，期望值可以作为实数存在（此时称 X 可积），可以作为 \( \infty \) 或 \( -\infty \) 存在，也可能不存在。<sup>[4](https://stats.libretexts.org/Bookshelves/Probability_Theory/Probability_Mathematical_Statistics_and_Stochastic_Processes_%28Siegrist%29/04%253A_Expected_Value/4.09%253A_Expected_Value_as_an_Integral)</sup>

变量替换定理将这些形式联系起来：对可测函数 g，\( \mathbb{E}[g(X)] = \int_S g(x) \, dP(x) \)，其中 P 是 X 的分布；若存在密度 f，则变为 \( \mathbb{E}[g(X)] = \int_S g(x) f(x) \, d\mu(x) \)。<sup>[4](https://stats.libretexts.org/Bookshelves/Probability_Theory/Probability_Mathematical_Statistics_and_Stochastic_Processes_%28Siegrist%29/04%253A_Expected_Value/4.09%253A_Expected_Value_as_an_Integral)</sup>

## 基本性质

**线性性。** 期望算子是线性的：\( E[aX + bY] = aE[X] + bE[Y] \)、\( E[a] = a \)、\( E[\sum_{i=1}^{n} X_i] = \sum_{i=1}^{n} E[X_i] \)。<sup>[1](https://mathworld.wolfram.com/ExpectationValue.html)</sup> 在测度论表述中，只要右侧不出现 \( \infty - \infty \) 的形式，可加性即成立；数乘给出 \( \mathbb{E}(cX) = c\,\mathbb{E}(X) \)。<sup>[4](https://stats.libretexts.org/Bookshelves/Probability_Theory/Probability_Mathematical_Statistics_and_Stochastic_Processes_%28Siegrist%29/04%253A_Expected_Value/4.09%253A_Expected_Value_as_an_Integral)</sup>

**序与相等。** 若 \( \mathbb{P}(X \ge 0) = 1 \)，则 \( \mathbb{E}(X) \ge 0 \)，且 \( \mathbb{E}(X) = 0 \) 当且仅当 \( \mathbb{P}(X = 0) = 1 \)。以概率1相等的变量具有相同的期望值，概率为零的事件上的期望为0。<sup>[4](https://stats.libretexts.org/Bookshelves/Probability_Theory/Probability_Mathematical_Statistics_and_Stochastic_Processes_%28Siegrist%29/04%253A_Expected_Value/4.09%253A_Expected_Value_as_an_Integral)</sup>

**矩。** 期望是分布的一阶矩，其定义直接类比于力学中质量分布的矩。<sup>[10](https://encyclopediaofmath.org/wiki/Moment)</sup> 方差即二阶中心矩 \( \mathbb{E}(X - \mathbb{E}X)^2 \)，衡量对期望的偏离程度，满足 \( \operatorname{Var} X = \mathbb{E}X^2 - (\mathbb{E}X)^2 \)。<sup>[9](https://encyclopediaofmath.org/wiki/Variance)</sup>

## 示例

一枚公平的六面骰子给出经典例证：\( E[R] = 1 \cdot \tfrac{1}{6} + 2 \cdot \tfrac{1}{6} + \cdots + 6 \cdot \tfrac{1}{6} = \tfrac{7}{2} \)。“期望值”这一名称在此有误导性，因为掷骰子永远不会真正出现3.5；随机变量的均值不同于其中位数，即分布的中点。<sup>[11](https://ocw.mit.edu/courses/6-042j-mathematics-for-computer-science-fall-2010/93cad640cf3ed0b23ef70688f452d4d5_MIT6_042JF10_notes.pdf)</sup> 更一般地，\( \{1, 2, \ldots, n\} \) 上的均匀随机变量的期望为 \( (n+1)/2 \)。<sup>[11](https://ocw.mit.edu/courses/6-042j-mathematics-for-computer-science-fall-2010/93cad640cf3ed0b23ef70688f452d4d5_MIT6_042JF10_notes.pdf)</sup>

其他标准情形可直接由定义得出。参数为 p 的伯努利随机变量有 \( E[X] = 0 \cdot (1-p) + 1 \cdot p = p \)：若正面赢一美元、反面一无所获，则每局平均期望收益为 p 美元。<sup>[3](https://sites.math.rutgers.edu/~jcg219/courses/spring2019/math338/resources/book/Chapter2.pdf)</sup> 在 (0, 1) 上均匀分布的变量有 \( E[X] = \int_0^1 x \, dx = 1/2 \)。<sup>[3](https://sites.math.rutgers.edu/~jcg219/courses/spring2019/math338/resources/book/Chapter2.pdf)</sup> 事件 U 的指示随机变量的期望等于该事件的概率，\( E[\mathbf{1}_U] = \mathbb{P}(U) \)，这一表示在概率论中频繁使用。<sup>[3](https://sites.math.rutgers.edu/~jcg219/courses/spring2019/math338/resources/book/Chapter2.pdf)</sup> 对具名分布族，参数为 n 和 p 的二项分布的期望值为 np，参数为 N、G 和 n 的超几何分布的期望值为 nG/N，参数为 p 的几何分布的期望值为 1/p。<sup>[8](https://www.stat.berkeley.edu/pub/users/stark/SticiGui/Text/expectation.htm)</sup>

## 解释与大数定律

期望是变量长期平均所取的值。大数定律使这一点精确化：在每次试验成功概率为 p 的重复独立试验中，随着试验次数增加，成功比例接近 p 的可能性趋近于100%。<sup>[8](https://www.stat.berkeley.edu/pub/users/stark/SticiGui/Text/expectation.htm)</sup> 因此，在重复独立实验中，观测值的均值越来越可能接近各可能值的加权平均，即期望值。<sup>[8](https://www.stat.berkeley.edu/pub/users/stark/SticiGui/Text/expectation.htm)</sup>

从几何上看，期望值是概率直方图的平衡点，正如列表的均值是其直方图的平衡点。<sup>[8](https://www.stat.berkeley.edu/pub/users/stark/SticiGui/Text/expectation.htm)</sup> 期望值仅取决于随机变量的概率分布，因此可以互换地说某变量的期望或其分布的期望。<sup>[8](https://www.stat.berkeley.edu/pub/users/stark/SticiGui/Text/expectation.htm)</sup>

大数定律有其局限。它仅在期望存在时适用。柯西分布是一种重尾分布，其密度按多项式而非指数速率衰减，没有期望值：由对称性，任何存在的均值都必为0，但任意点右侧和左侧的矩均为无穷，故没有点能平衡该分布。<sup>[5](https://stats.libretexts.org/Bookshelves/Probability_Theory/Probability_Mathematical_Statistics_and_Stochastic_Processes_%28Siegrist%29/05%3A_Special_Distributions/5.32%3A_The_Cauchy_Distribution)</sup> 对柯西分布，大数定律失效，样本均值不收敛于任何值。<sup>[5](https://stats.libretexts.org/Bookshelves/Probability_Theory/Probability_Mathematical_Statistics_and_Stochastic_Processes_%28Siegrist%29/05%3A_Special_Distributions/5.32%3A_The_Cauchy_Distribution)</sup><sup> • </sup><sup>[12](https://scisim.org/sims/statistics/16_lln)</sup>

## 应用

**机会游戏。** 期望值起源于对赌博的分析。1654年，法国作家安托万·贡博（Antoine Gombaud），即德·梅雷骑士，将“点数问题”带给布莱兹·帕斯卡，后者与皮埃尔·德·费马（Pierre de Fermat）的通信使期望概念得到了清晰的阐释。<sup>[13](https://openstax.org/books/contemporary-mathematics/pages/7-11-expected-value)</sup><sup> • </sup><sup>[14](https://www.cambridge.org/core/books/abs/emergence-of-probability/expectation-1657/C538E4BEA6CAE45AEC77888E7056DF53)</sup> 帕斯卡引入期望值的概念，即获胜概率乘以获胜价值，这是一个可操作的精确数学概念，并递归地用它解决点数问题。<sup>[6](https://encyclopediaofmath.org/wiki/Pascal%2C_Blaise)</sup> 克里斯蒂安·惠更斯在1655年逗留巴黎期间与罗贝瓦尔讨论了帕斯卡的工作，于1657年出版了首部印刷版概率论教科书《论赌博中的计算》。其第一命题指出，若获得金额 a 或 b 同样容易，则期望为 (a + b)/2；其核心的第三命题指出，若获得 a 的情形数为 p、获得 b 的情形数为 q，则期望为 (pa + qb)/(p + q)。<sup>[7](https://encyclopediaofmath.org/wiki/Huygens%2C_Christiaan)</sup> 惠更斯在没有任何概率概念的情况下推导出这些结果，使用的是玩家之间相互对称的契约体系。<sup>[7](https://encyclopediaofmath.org/wiki/Huygens%2C_Christiaan)</sup>

同样的算术支配着现代赌博经济学：赌场和彩票公司之所以盈利，是因为每场游戏对玩家而言期望值均为负。在一个计算示例中，获胜概率为 \( \tfrac{1}{6} \) 的游戏每局期望约为正83美分，但若掷出6的赔付降至3美元，期望变为 \( 3 \cdot \tfrac{1}{6} + (-1) \cdot \tfrac{5}{6} = -\tfrac{1}{3} \)，每局约亏33美分。<sup>[13](https://openstax.org/books/contemporary-mathematics/pages/7-11-expected-value)</sup>

**决策分析。** 期望值是期望效用理论的基础，该理论由冯·诺依曼和摩根施特恩公理化，其中理性决策者在已知结果概率分布上最大化个人效用函数的期望值。<sup>[15](https://www.cambridge.org/core/journals/risk-decision-and-policy/volume/924A35BD0441086AF17C6064AF33992A)</sup> 在体育分析中，数据分析师已为美式橄榄球中每种第四档进攻情形生成了经验概率，并计算了每种可能决策的期望得分，教练在选择进攻还是弃踢时经常使用这些计算。<sup>[13](https://openstax.org/books/contemporary-mathematics/pages/7-11-expected-value)</sup>

**金融。** 预期收益按加权平均计算，其中概率构成权重：\( \mathrm{期望值} = P_1 R_1 + P_2 R_2 + \cdots + P_n R_n \)，其中 \( P_i \) 为各种收益的概率，\( R_i \) 为收益率，通常来自历史数据。一个教科书示例赋予12%收益15%的概率、5%收益35%的概率、2%收益25%的概率、5%亏损14%的概率、10%亏损11%的概率，得出该股票的预期收益为2.25%。<sup>[16](https://openstax.org/books/principles-finance-2e/pages/13-5-probability-distributions)</sup>

## 均值与中位数

均值包含分布中的每一个值，因此受离群值和偏态分布的影响：在偏态分布中，均值通常被拉向尾部方向，而中位数仍为中间值。<sup>[17](https://www.abs.gov.au/statistics/understanding-statistics/statistical-terms-and-concepts/measures-central-tendency)</sup> 在右偏分布中，均值大于中位数，因为右尾的观测值将均值拉向右侧；在左偏分布中，均值较小。对偏态数据，中位数通常是集中趋势的首选度量。<sup>[17](https://www.abs.gov.au/statistics/understanding-statistics/statistical-terms-and-concepts/measures-central-tendency)</sup>

## References

1. [Weisstein, Eric W. "Expectation Value." MathWorld](https://mathworld.wolfram.com/ExpectationValue.html)
2. [Lesson 8: Mathematical Expectation, STAT 414, Penn State](https://online.stat.psu.edu/stat414/Lesson08)
3. [Chapter 2: Probability Theory, Rutgers MATH 338 course notes](https://sites.math.rutgers.edu/~jcg219/courses/spring2019/math338/resources/book/Chapter2.pdf)
4. [4.9: Expected Value as an Integral, Statistics LibreTexts (Siegrist)](https://stats.libretexts.org/Bookshelves/Probability_Theory/Probability_Mathematical_Statistics_and_Stochastic_Processes_%28Siegrist%29/04%253A_Expected_Value/4.09%253A_Expected_Value_as_an_Integral)
5. [5.32: The Cauchy Distribution, Statistics LibreTexts (Siegrist)](https://stats.libretexts.org/Bookshelves/Probability_Theory/Probability_Mathematical_Statistics_and_Stochastic_Processes_%28Siegrist%29/05%3A_Special_Distributions/5.32%3A_The_Cauchy_Distribution)
6. [Pascal, Blaise, Encyclopedia of Mathematics](https://encyclopediaofmath.org/wiki/Pascal%2C_Blaise)
7. [Huygens, Christiaan, Encyclopedia of Mathematics](https://encyclopediaofmath.org/wiki/Huygens%2C_Christiaan)
8. [SticiGui: The Long Run and the Expected Value, Philip Stark, UC Berkeley](https://www.stat.berkeley.edu/pub/users/stark/SticiGui/Text/expectation.htm)
9. [Variance, Encyclopedia of Mathematics](https://encyclopediaofmath.org/wiki/Variance)
10. [Moment, Encyclopedia of Mathematics](https://encyclopediaofmath.org/wiki/Moment)
11. [6.042J Mathematics for Computer Science, MIT OpenCourseWare course notes](https://ocw.mit.edu/courses/6-042j-mathematics-for-computer-science-fall-2010/93cad640cf3ed0b23ef70688f452d4d5_MIT6_042JF10_notes.pdf)
12. [Law of Large Numbers, SciSim interactive simulation](https://scisim.org/sims/statistics/16_lln)
13. [7.11 Expected Value, Contemporary Mathematics, OpenStax](https://openstax.org/books/contemporary-mathematics/pages/7-11-expected-value)
14. [Expectation (1657), Chapter 11 of *The Emergence of Probability*, Cambridge University Press](https://www.cambridge.org/core/books/abs/emergence-of-probability/expectation-1657/C538E4BEA6CAE45AEC77888E7056DF53)
15. [Risk, Decision and Policy, Volume 7, Cambridge Core](https://www.cambridge.org/core/journals/risk-decision-and-policy/volume/924A35BD0441086AF17C6064AF33992A)
16. [13.5 Probability Distributions, Principles of Finance 2e, OpenStax](https://openstax.org/books/principles-finance-2e/pages/13-5-probability-distributions)
17. [Measures of central tendency, Australian Bureau of Statistics](https://www.abs.gov.au/statistics/understanding-statistics/statistical-terms-and-concepts/measures-central-tendency)

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

Topic: 物质世界与数学 › 数学与统计学 › 统计学与概率论 › Probability theory › Expectation, moments, and inequalities › Expectation of random variables

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/expected-value

English original: https://www.edgepedia.org/expected-value
