# 贝叶斯风险

**贝叶斯风险**是统计决策规则在未知参数先验分布上的期望损失，记作 \( r_\pi(D) = \int_\Theta r(\theta, D)\,\pi(\theta)\,d\theta \)，其中 \( r(\theta, D) \) 是该规则在参数值 \( \theta \) 处的风险（期望损失），\( \pi \) 为先验。<sup>[1](https://faculty.washington.edu/yenchic/26A_stat581/Lec1_decision.html)</sup> 它是贝叶斯决策理论的核心量：使其最小化的决策规则称为贝叶斯规则，而最小值本身则衡量了在假定先验下最优规则所能达到的表现。<sup>[1](https://faculty.washington.edu/yenchic/26A_stat581/Lec1_decision.html)</sup>

| 关键事实 | 详情 |
|---|---|
| 定义 | 贝叶斯风险 \( r_\pi(D) = \int_\Theta r(\theta, D)\,\pi(\theta)\,d\theta \)，即风险函数在参数空间先验分布上的平均<sup>[1](https://faculty.washington.edu/yenchic/26A_stat581/Lec1_decision.html)</sup> |
| 贝叶斯规则 | 使贝叶斯风险最小化的决策规则；等价地，是在每个观测数据点上最小化后验期望损失的规则<sup>[1](https://faculty.washington.edu/yenchic/26A_stat581/Lec1_decision.html)</sup> |
| 平方损失 | 在平方误差损失下，贝叶斯规则是后验均值；对于二项样本配合 Beta\((\alpha, \beta)\) 先验，其为 \( (\alpha + x)/(\alpha + \beta + n) \)<sup>[1](https://faculty.washington.edu/yenchic/26A_stat581/Lec1_decision.html)</sup> |
| 分类 | 在零一损失下，风险是误分类概率，贝叶斯风险是真实数据生成分布下最优分类器的风险<sup>[2](https://wanghemath.github.io/Book-MathCV/chapters/chapter-19-classification-mathematical-view.html)</sup> |
| 与极小极大的关系 | 任意先验下的贝叶斯风险都是极小极大风险的下界；达到 \( \sup_\Lambda r_\Lambda \) 的先验称为最不利先验<sup>[3](https://stat210a.berkeley.edu/fall-2025/reader/minimax-estimation.html)</sup> |
| 可容许性 | 具有有限贝叶斯风险且风险函数在参数上连续的贝叶斯估计量，当其先验在参数空间上严格为正时是可容许的<sup>[4](https://www.sfu.ca/~lockhart/richard/450/02_3/lectures/notes/web.pdf)</sup><sup> • </sup><sup>[12](https://www.stats.ox.ac.uk/~nicholls/BayesMethods/BLnotes23.pdf)</sup> |
| 非正常先验 | 若先验赋予无限总质量，贝叶斯风险便不再能解释为期望<sup>[5](https://www.stat.berkeley.edu/~wfithian/courses/stat210a/models.html)</sup> |

## 该量在决策理论中的位置

一个统计决策问题包含三部分：从以参数 \( \theta \in \Theta \) 为索引的分布中抽取的数据 \( X \)、来自行动空间的行动 \( a \)，以及衡量真实参数为 \( \theta \) 时采取行动 \( a \) 之代价的损失函数 \( L(\theta, a) \)。<sup>[1](https://faculty.washington.edu/yenchic/26A_stat581/Lec1_decision.html)</sup> 决策规则将数据映射为行动。由于规则造成的损失是随机的，故用风险函数——即抽样分布上的期望损失——来概括，而风险函数依赖于未知的 \( \theta \)。<sup>[1](https://faculty.washington.edu/yenchic/26A_stat581/Lec1_decision.html)</sup>

由于风险依赖于无法观测的 \( \theta \)，要比较规则就需要某种消除这种依赖的方式。贝叶斯框架通过取平均来实现：它在 \( \Theta \) 上放置先验 \( \pi \) 并以该先验为权重对风险积分，得到贝叶斯风险，被称为平均情形下的情景，与最坏情形下的极小极大框架相对——后者取风险在 \( \Theta \) 上的上确界。<sup>[1](https://faculty.washington.edu/yenchic/26A_stat581/Lec1_decision.html)</sup> 同一量在别处被描述为关于 \( \theta \) 与 \( X \) 联合分布的期望损失。<sup>[5](https://www.stat.berkeley.edu/~wfithian/courses/stat210a/models.html)</sup>

## 计算贝叶斯规则

对于非随机决策规则 \( \delta(x) \)，贝叶斯风险可分解为

\[ r_\pi(\delta) = \int_\mathcal{X} \left[ \int_\Theta L(\theta, \delta(x))\,\pi(\theta \mid x)\,d\theta \right] p(x)\,dx, \]

其中 \( \pi(\theta \mid x) \) 是后验分布，\( p(x) \) 是数据的边缘分布。<sup>[1](https://faculty.washington.edu/yenchic/26A_stat581/Lec1_decision.html)</sup> 内层积分即后验期望损失，可以对每个观测到的 \( x \) 分别优化，这正是贝叶斯规则易于处理的原因：对数据和参数的二重积分做全局最小化，归结为在给定数据下逐点最小化。<sup>[1](https://faculty.washington.edu/yenchic/26A_stat581/Lec1_decision.html)</sup>

**损失决定答案。** 在贝塔-二项模型中，\( X \mid \theta \sim \mathrm{Bin}(n, \theta) \) 且 \( \theta \sim \mathrm{Beta}(\alpha, \beta) \)，后验为 \( \mathrm{Beta}(\alpha + x, \beta + n - x) \)，贝叶斯规则为

\[ \delta_\pi(x) = \frac{\alpha + x}{\alpha + \beta + n} = \left( \frac{\alpha}{\alpha + \beta} \right) \frac{\alpha + \beta}{\alpha + \beta + n} + \left( \frac{x}{n} \right) \frac{n}{\alpha + \beta + n}, \]

这是将样本比例 \( x/n \) 向先验均值 \( \alpha/(\alpha + \beta) \) 收缩，数据上的权重随 \( n \) 增大而增大。<sup>[1](https://faculty.washington.edu/yenchic/26A_stat581/Lec1_decision.html)</sup> 在零一损失下的分类问题中，贝叶斯行动是预测后验概率最高的类别，由此得到的风险——称为贝叶斯风险——是真实数据生成分布下最优分类器的错误率。<sup>[2](https://wanghemath.github.io/Book-MathCV/chapters/chapter-19-classification-mathematical-view.html)</sup><sup> • </sup><sup>[6](https://www.cs.cmu.edu/~hchai2/courses/10624/lectures/Lecture3.pdf)</sup> 改变损失会改变行动：若两种误分类代价不同，贝叶斯行动可能选择可能性较低的类别以避免潜在的高损失。<sup>[6](https://www.cs.cmu.edu/~hchai2/courses/10624/lectures/Lecture3.pdf)</sup>

## 与极小极大风险的关系

贝叶斯风险与极小极大风险是风险函数的两种标准标量概括，且二者存在序关系。对任意先验 \( \Lambda \)，

\[ r_\Lambda = \inf_\delta \int_\Theta R(\theta; \delta)\,d\Lambda(\theta) \;\leq\; \inf_\delta \sup_\theta R(\theta; \delta) = r^*, \]

因为任何估计量的平均情形风险都不大于其最坏情形风险。<sup>[3](https://stat210a.berkeley.edu/fall-2025/reader/minimax-estimation.html)</sup> 在博弈论解读中，极小极大风险是一个零和博弈的支付：分析者选择估计量，然后大自然选择最坏参数；若大自然改为采取混合策略 \( \theta \sim \Lambda \)，看到先验的分析者会采用贝叶斯估计量并达到贝叶斯风险。<sup>[3](https://stat210a.berkeley.edu/fall-2025/reader/minimax-estimation.html)</sup>

**最不利先验将两者联系起来。** 达到 \( \sup_\Lambda r_\Lambda \) 的先验 \( \Lambda^* \) 称为最不利先验。若贝叶斯风险 \( r_\Lambda \) 等于贝叶斯估计量 \( \delta_\Lambda \) 风险函数的上确界，则 \( \delta_\Lambda \) 是极小极大的，\( \Lambda \) 是最不利的，且 \( r_\Lambda = r^* \)；若贝叶斯估计量唯一，则它就是唯一的极小极大估计量。<sup>[3](https://stat210a.berkeley.edu/fall-2025/reader/minimax-estimation.html)</sup> 一个实例展示了由此产生的权衡：在平方误差下的二项模型中，先验 \( \mathrm{Beta}(\sqrt{n}/2, \sqrt{n}/2) \) 给出的贝叶斯估计量具有常风险 \( n/(4(n + \sqrt{n})^2) \)，因而它是唯一的极小极大估计量。该估计量将表现集中于估计最困难的 \( \theta = 1/2 \) 附近，而在其他地方付出严重代价：在 \( \theta = 0.01 \) 处，对于大的 \( n \)，通常的无偏估计量 \( X/n \) 的均方误差约为该估计量的 1/25。<sup>[3](https://stat210a.berkeley.edu/fall-2025/reader/minimax-estimation.html)</sup> 贝叶斯风险还在另一个方向上充当下界：将估计量的最坏情形风险与任一贝叶斯估计量的贝叶斯风险相比较，可以证明前者离极小极大最优有多近；用下方的 \( r_\Lambda \) 和上方的上确界风险夹逼，便得到问题的极小极大速率。<sup>[3](https://stat210a.berkeley.edu/fall-2025/reader/minimax-estimation.html)</sup>

## 可容许性与完全类定理

若另一规则对每个 \( \theta \) 的风险至多与某规则一样大，且至少在一个 \( \theta \) 处严格更小，则该决策规则不可容许；否则它是可容许的。<sup>[1](https://faculty.washington.edu/yenchic/26A_stat581/Lec1_decision.html)</sup> 具有严格正先验、有限贝叶斯风险和连续风险函数的贝叶斯程序是可容许的。<sup>[4](https://www.sfu.ca/~lockhart/richard/450/02_3/lectures/notes/web.pdf)</sup> 反方向是瓦尔德完全类定理：在正则条件下，贝叶斯决策规则类及其极限构成一个完全类，即每个可容许规则要么是某个先验下的贝叶斯规则，要么是贝叶斯规则的极限。<sup>[7](https://www.bayesianstatistics.com/Admissible_Decision_Rule)</sup> 在这样的正则性下，坚持可容许性的频率学派由此被引向贝叶斯规则或其极限，而极小极大规则作为针对最不利先验的贝叶斯规则位于该类之中。<sup>[7](https://www.bayesianstatistics.com/Admissible_Decision_Rule)</sup><sup> • </sup><sup>[8](https://theorempath.com/compare/frequentist-vs-bayes-decision-theory)</sup> 两个框架的分歧不在于可容许规则这一共同前沿，而在于在该前沿上选择哪一点。<sup>[8](https://theorempath.com/compare/frequentist-vs-bayes-decision-theory)</sup>

## 历史

亚伯拉罕·瓦尔德（Abraham Wald）被视为统计决策理论的奠基人，他于 1949 年以极大的普遍性形式化了理性决策与统计推断之间的联系。<sup>[9](https://www.sciencedirect.com/topics/computer-science/bayesian-decision)</sup> 用概率量化决策者对不确定事件之知识的做法，可追溯到弗兰克·拉姆齐（Frank Ramsey，1931）和布鲁诺·德·菲内蒂（Bruno de Finetti，1937）关于主观概率的工作，以及约翰·冯·诺伊曼（John von Neumann）和奥斯卡·摩根施特恩（Oskar Morgenstern，1944）的期望效用公理系统。伦纳德·吉米·萨维奇（Leonard Jimmie Savage）在其 1954 年的著作中将主观主义方法与冯·诺伊曼、摩根施特恩和瓦尔德的技术进展相结合，为当代贝叶斯决策理论提供了逻辑基础。<sup>[9](https://www.sciencedirect.com/topics/computer-science/bayesian-decision)</sup>

## 变体与限定

该定义要求正常先验。若 \( \Lambda(\Theta) = \infty \)，则先验称为非正常的，相应的贝叶斯风险不再能解释为期望。<sup>[5](https://www.stat.berkeley.edu/~wfithian/courses/stat210a/models.html)</sup> 这种平均结构也允许类似物：中位数损失决策理论用中位数替代先验上的均值，定义了贝叶斯中位损失准则，在若干情形下导出的估计量与频率学派对应物相同。<sup>[10](https://www.sciencedirect.com/topics/mathematics/bayes-risk)</sup> 在机器学习中，同一量表现为贝叶斯最优预测的代价最小化风险，而纳入非对称代价——称为代价敏感学习——会使最优预测偏离单纯的最可能标签。<sup>[11](https://pubsonline.informs.org/doi/10.1287/ijds.2024.0038)</sup>

## References

1. [Yen-Chi Chen (instructor). Elementary Decision Theory, UW STAT 581 lecture notes.](https://faculty.washington.edu/yenchic/26A_stat581/Lec1_decision.html)
2. [Classification from a Mathematical View, The Mathematics of Modern Computer Vision, Chapter 20.](https://wanghemath.github.io/Book-MathCV/chapters/chapter-19-classification-mathematical-view.html)
3. [Minimax Estimation, UC Berkeley Stat 210a reader.](https://stat210a.berkeley.edu/fall-2025/reader/minimax-estimation.html)
4. [Richard Lockhart. Statistical Decision Theory: examples, Simon Fraser University lecture notes.](https://www.sfu.ca/~lockhart/richard/450/02_3/lectures/notes/web.pdf)
5. [Statistical decision theory, UC Berkeley Stat 210a course notes (Will Fithian).](https://www.stat.berkeley.edu/~wfithian/courses/stat210a/models.html)
6. [Bayesian decision theory examples, CMU course lecture notes.](https://www.cs.cmu.edu/~hchai2/courses/10624/lectures/Lecture3.pdf)
7. [Admissible Decision Rule, BayesianStatistics.com.](https://www.bayesianstatistics.com/Admissible_Decision_Rule)
8. [Frequentist vs. Bayesian Decision Theory: Risk, Admissibility, Minimax, Complete Class, TheoremPath.](https://theorempath.com/compare/frequentist-vs-bayes-decision-theory)
9. [G. Parmigiani. Bayesian Decision, International Encyclopedia of the Social & Behavioral Sciences (2001), ScienceDirect.](https://www.sciencedirect.com/topics/computer-science/bayesian-decision)
10. [Chi Wai Yu and Bertrand Clarke. Median loss decision theory, Journal of Statistical Planning and Inference (2011), ScienceDirect.](https://www.sciencedirect.com/topics/mathematics/bayes-risk)
11. [Cost-Aware Calibration of Classifiers, INFORMS Journal on Data Science.](https://pubsonline.informs.org/doi/10.1287/ijds.2024.0038)
12. [stats.ox.ac.uk](https://www.stats.ox.ac.uk/~nicholls/BayesMethods/BLnotes23.pdf)

---
*Initially written Oct 15, 2026*

Topic: 物质世界与数学 › 数学与统计学 › 统计学与概率论 › Bayesian statistics › Bayesian probability and inference foundations › Bayesian estimation and filtering › Loss functions and Bayes risk

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/bayes-risk

English original: https://www.edgepedia.org/bayes-risk
