# 贝叶斯估计量

**贝叶斯估计量**是一种决策规则，它通过最小化后验期望损失来估计未知参数——后验期望损失即在观测到数据之后，在参数的后验分布下计算出的平均惩罚<sup>[1](https://encyclopediaofmath.org/wiki/Bayesian_estimator)</sup>。等价地说，它是最小化贝叶斯风险的估计量，而贝叶斯风险是频率派风险函数在先验分布上的平均<sup>[2](https://stat210a.berkeley.edu/fall-2024/reader/bayes-estimation.html)</sup>。因此，该估计量取决于分析者的两项选择：损失函数，用以衡量错误估计的代价；先验，用以在观测数据之前对参数编码信念或假设<sup>[2](https://stat210a.berkeley.edu/fall-2024/reader/bayes-estimation.html)</sup>。

| 关键事实 | 细节 |
|---|---|
| 定义 | 使后验期望损失最小的行动，\( \delta^\pi(x) = \arg\min_{a} \int_\Theta L(\theta, a)\, \pi(d\theta \mid x) \)<sup>[3](https://link.springer.com/chapter/10.1007/978-3-030-83640-5_1)</sup> |
| 平方误差损失 | 贝叶斯估计量为后验均值 \( \mathrm{E}(\theta \mid x) \)<sup>[1](https://encyclopediaofmath.org/wiki/Bayesian_estimator)</sup> |
| 绝对误差损失 | 贝叶斯估计量为后验中位数<sup>[4](https://wanghemath.github.io/Book-ProbabilityStatisticalTheory/chapters/chapter-20-bayesian-inference.html)</sup> |
| 0–1 型局部损失 | 贝叶斯估计量为后验众数，即最大后验（MAP）估计<sup>[4](https://wanghemath.github.io/Book-ProbabilityStatisticalTheory/chapters/chapter-20-bayesian-inference.html)</sup> |
| Beta-二项示例 | 以 Beta(α, β) 为先验，n 次试验中 x 次成功，后验均值为 \( (\alpha + x)/(\alpha + \beta + n) \)，即先验均值与样本比例的加权平均<sup>[5](https://faculty.washington.edu/yenchic/26A_stat581/Lec1_decision.html)</sup> |
| 收缩联系 | 詹姆斯-斯坦估计量 \( \delta_{\mathrm{JS}}(X) = (1 - (d-2)/\lVert X \rVert^2)X \) 在平方误差损失下对 \( d \ge 3 \) 优于样本均值<sup>[6](https://stat210a.berkeley.edu/fall-2025/reader/jamesstein.html)</sup> |
| 可容许性 | 唯一的贝叶斯估计量是可容许的；广义贝叶斯估计量（基于非正常先验）则未必如此<sup>[7](https://gradebuddy.com/doc/2175244/bayes-rules-and-estimators/)</sup> |

## 决策论形式的定义

贝叶斯点估计是统计决策理论的一个特例。损失函数 \( L(\theta, a) \) 为用行动 \( a \) 估计真实参数 \( \theta \) 赋予一个惩罚。给定观测数据 \( x \) 和后验分布 \( \pi(\theta \mid x) \)，行动 \( a \) 的后验期望损失为

\[ \rho(a \mid x) = \int_\Theta L(\theta, a)\, \pi(d\theta \mid x). \]

贝叶斯估计量 \( \delta^\pi(x) \) 就是对每个观测到的 \( x \) 使 \( \rho(a \mid x) \) 最小的行动<sup>[3](https://link.springer.com/chapter/10.1007/978-3-030-83640-5_1)</sup><sup> • </sup><sup>[4](https://wanghemath.github.io/Book-ProbabilityStatisticalTheory/chapters/chapter-20-bayesian-inference.html)</sup>。决策论中的一个定理为这一逐点程序提供了依据：若某个非随机规则对几乎所有的 \( x \) 都最小化后验期望损失，且具有有限的贝叶斯风险，则它是该先验下的贝叶斯规则<sup>[5](https://faculty.washington.edu/yenchic/26A_stat581/Lec1_decision.html)</sup>。

同一个估计量也可以通过贝叶斯风险来刻画。对于决策规则 \( \delta \)，频率派风险为 \( R(\theta, \delta) = \mathrm{E}_\theta[L(\theta, \delta(X))] \)，即在固定 \( \theta \) 下对重复抽样的期望损失。将其在先验 \( \pi \) 上平均，得到

\[ r(\pi, \delta) = \int_\Theta R(\theta, \delta)\, \pi(d\theta), \]

而使 \( r(\pi, \delta) \) 最小的估计量即为贝叶斯估计量<sup>[2](https://stat210a.berkeley.edu/fall-2024/reader/bayes-estimation.html)</sup><sup> • </sup><sup>[4](https://wanghemath.github.io/Book-ProbabilityStatisticalTheory/chapters/chapter-20-bayesian-inference.html)</sup>。先验不必被信为关于现实的陈述；它的作用是在对风险求平均时充当参数值上的权重分布<sup>[2](https://stat210a.berkeley.edu/fall-2024/reader/bayes-estimation.html)</sup>。

## 损失函数与相应的估计量

损失的选择决定了后验的哪种概括是最优的<sup>[4](https://wanghemath.github.io/Book-ProbabilityStatisticalTheory/chapters/chapter-20-bayesian-inference.html)</sup>：

1. **平方误差损失**，\( L(\theta, a) = (a - \theta)^2 \)，给出后验均值。在 \( \rho(a \mid x) \) 中配方即可看出最小化点为 \( \mathrm{E}(\theta \mid x) \)<sup>[1](https://encyclopediaofmath.org/wiki/Bayesian_estimator)</sup><sup> • </sup><sup>[4](https://wanghemath.github.io/Book-ProbabilityStatisticalTheory/chapters/chapter-20-bayesian-inference.html)</sup>。
2. **绝对误差损失**，\( L(\theta, a) = |a - \theta| \)，给出后验中位数，适用于高估与低估受到同等惩罚的情形<sup>[3](https://link.springer.com/chapter/10.1007/978-3-030-83640-5_1)</sup>。
3. **零一型局部损失**给出后验众数，即最大后验（MAP）估计，它最大化 \( \log f(x \mid \theta) + \log \pi(\theta) \)；平坦先验使 MAP 的行为类似于最大似然估计<sup>[4](https://wanghemath.github.io/Book-ProbabilityStatisticalTheory/chapters/chapter-20-bayesian-inference.html)</sup>。
4. **线性（非对称）损失** \( \ell(\theta, \delta) = c_1(\delta - \theta)\mathbf{1}_{\theta \le \delta} + c_2(\theta - \delta)\mathbf{1}_{\{\theta \le \delta\}^c} \) 给出 \( c_2/(c_1 + c_2) \)-后验分位数，使分析者能够调整高估与低估的相对惩罚<sup>[3](https://link.springer.com/chapter/10.1007/978-3-030-83640-5_1)</sup>。

## 实例演算

**Beta-二项估计。** 设 \( X \sim \mathrm{Binomial}(n, p) \)，\( p \) 上取共轭 Beta(\( \alpha, \beta \)) 先验。观测到 \( X = x \) 后，后验为 \( \mathrm{Beta}(\alpha + x, \beta + n - x) \)，在平方误差损失下

\[ \delta_\pi(x) = \frac{\alpha + x}{\alpha + \beta + n} = \frac{\alpha}{\alpha + \beta} \cdot \frac{\alpha + \beta}{\alpha + \beta + n} + \frac{x}{n} \cdot \frac{n}{\alpha + \beta + n}. \]

这是先验均值 \( \alpha/(\alpha + \beta) \) 与最大似然估计 \( x/n \) 的凸组合，数据的权重为 \( 1 - W_n \)，其中 \( W_n = (\alpha + \beta)/(\alpha + \beta + n) \)，该数据权重当 \( n \to \infty \) 时趋于 1<sup>[5](https://faculty.washington.edu/yenchic/26A_stat581/Lec1_decision.html)</sup>。先验参数的作用相当于加到观测成功与失败次数上的伪计数<sup>[4](https://wanghemath.github.io/Book-ProbabilityStatisticalTheory/chapters/chapter-20-bayesian-inference.html)</sup>。

**正态-正态收缩。** 设 \( \bar{X}_n \mid \theta \sim N(\theta, \sigma^2/n) \)，先验为 \( N(\mu, \tau^2) \)，则在平方误差损失下的后验均值为

\[ \delta_\pi(\bar{X}_n) = \frac{1/\tau^2}{1/\tau^2 + n/\sigma^2}\,\mu + \frac{n/\sigma^2}{1/\tau^2 + n/\sigma^2}\,\bar{X}_n, \]

贝叶斯风险为 \( 1/(1/\tau^2 + n/\sigma^2) \)<sup>[5](https://faculty.washington.edu/yenchic/26A_stat581/Lec1_decision.html)</sup>。估计值被拉向先验均值，拉动的幅度随数据积累而收缩，这正是收缩估计背后的基本机制。

## 收缩、斯坦的结果与经验贝叶斯

1955–1956 年，查尔斯·斯坦（Charles Stein）证明，普通样本均值在特定意义下并非可用的最佳估计量：在平方误差损失下估计维数不低于三的多维正态均值时，存在另一种估计量对每个参数值都取得更小的均方误差<sup>[6](https://stat210a.berkeley.edu/fall-2025/reader/jamesstein.html)</sup><sup> • </sup><sup>[8](https://link.springer.com/article/10.1007/s41745-022-00286-0)</sup>。詹姆斯-斯坦估计量

\[ \delta_{\mathrm{JS}}(X) = \left(1 - \frac{d-2}{\lVert X \rVert^2}\right)X \]

利用由所有分量共同计算出的因子，将 \( X \) 的每个分量向零收缩<sup>[6](https://stat210a.berkeley.edu/fall-2025/reader/jamesstein.html)</sup><sup> • </sup><sup>[8](https://link.springer.com/article/10.1007/s41745-022-00286-0)</sup>。詹姆斯与斯坦的发现发表于估计多个组均值的背景之下，其结论是：只要比较三个或更多组，利用所有组的数据来估计每一组的参数，就能保证整体期望估计误差更低，尽管任何单个估计都可能变差<sup>[9](https://pmc.ncbi.nlm.nih.gov/articles/PMC2875357/)</sup>。

与贝叶斯估计的联系解释了这一方法为何有效。在 \( \theta_i \) 独立服从 \( N(0, A) \) 的层次模型中，平方误差损失下的贝叶斯估计量为后验均值 \( \delta_B(X) = BX \)，其中 \( B = A/(A+1) \) 为收缩因子。当先验方差 \( A \) 未知时，用由数据边缘分布计算出的无偏估计 \( \hat{B} = 1 - (p-2)/\lVert X \rVert^2 \) 替换 \( B \)，便得到詹姆斯-斯坦估计量<sup>[8](https://link.springer.com/article/10.1007/s41745-022-00286-0)</sup><sup> • </sup><sup>[6](https://stat210a.berkeley.edu/fall-2025/reader/jamesstein.html)</sup>。斯坦福大学统计学教授布拉德利·埃夫隆（Bradley Efron）与卡尔·莫里斯（Carl Morris）在 20 世纪 70 年代给出了这一经验贝叶斯解释，表明利用其他分量 \( X_j, j \ne i \) 来估计 \( \theta_i \)——这一做法曾作为间接证据引起争议——可以被合理化为从合并数据中估计一个共同的先验<sup>[8](https://link.springer.com/article/10.1007/s41745-022-00286-0)</sup><sup> • </sup><sup>[10](https://pmc.ncbi.nlm.nih.gov/articles/PMC11000275/)</sup>。詹姆斯-斯坦估计量的贝叶斯风险比真正的贝叶斯估计量高出 \( 2/(A+1) \)，这一惩罚随先验方差增大而消失<sup>[8](https://link.springer.com/article/10.1007/s41745-022-00286-0)</sup>。

这类经验贝叶斯收缩在实践中被用于稳定小样本估计。在流行病学中，它已被应用于小地区的疾病发病率、患病率和死亡率估计<sup>[11](https://pmc.ncbi.nlm.nih.gov/articles/PMC2872278/)</sup>。澳大利亚统计局（Australian Bureau of Statistics）采用经验贝叶斯收缩估计量调整各州和领地的原住民人口估计，使西澳大利亚州和北领地的估计值分别降低 9% 和 4%，并使维多利亚州和塔斯马尼亚州的估计值提高 9%<sup>[11](https://pmc.ncbi.nlm.nih.gov/articles/PMC2872278/)</sup>。当有协变量或混杂因素信息可用时，通常更倾向于层次回归或多层模型，因为它们允许先验参数在多个层次上变化，并能纳入结构性的先验信息<sup>[11](https://pmc.ncbi.nlm.nih.gov/articles/PMC2872278/)</sup>。

## 可容许性与频率派性质

若不存在另一个估计量其风险一致更小、且在某处严格更优，则该估计量是可容许的。贝叶斯估计量通常是可容许的：若某规则优于一个贝叶斯规则，它将具有相同的贝叶斯风险，从而本身也是贝叶斯规则，因此唯一的贝叶斯估计量是可容许的<sup>[7](https://gradebuddy.com/doc/2175244/bayes-rules-and-estimators/)</sup>。在方差已知的正态-正态模型下，后验均值是唯一的贝叶斯规则，因而可容许；这一论证路线还可推广，证明样本均值 \( \bar{X}_n \) 在平方误差损失下对一维正态均值是可容许的<sup>[5](https://faculty.washington.edu/yenchic/26A_stat581/Lec1_decision.html)</sup>。

斯坦的结果显示了这一推理的边界：在维数 \( d \ge 3 \) 时，样本均值不可容许，对每个 \( \theta \in \mathbb{R}^d \) 都被詹姆斯-斯坦估计量击败<sup>[6](https://stat210a.berkeley.edu/fall-2025/reader/jamesstein.html)</sup>。广义贝叶斯估计量针对非正常先验逐点定义，未必可容许，尽管其中许多是正常贝叶斯规则的极限<sup>[7](https://gradebuddy.com/doc/2175244/bayes-rules-and-estimators/)</sup>。

## 对先验的敏感性与广义贝叶斯

由于估计量依赖于先验，其在先验误设下的表现至关重要。在对 Beta-二项共轭族的蒙特卡洛研究中，二项参数贝叶斯概率区间被发现对先验分布的误设相当敏感<sup>[12](https://www.tandfonline.com/doi/abs/10.1080/00949658608810922)</sup>。Insper 的赫迪伯特·F·洛佩斯（Hedibert F. Lopes）与普渡大学的贾斯汀·L·托拜厄斯（Justin L. Tobias）的综述指出了两个缓解性事实：非贝叶斯分析也通过建模选择纳入先验信息；且贝叶斯后验均值与频率派最大似然估计常常渐近等价，因此先验的影响随大样本而消退<sup>[13](https://www.annualreviews.org/content/journals/10.1146/annurev-economics-111809-125134)</sup>。理论研究也指出了局限：在连续情形下，当关于数据生成分布仅有有限信息时，在总变差接近的意义下，贝叶斯推断可能很脆弱——任意接近的模型都可能导致相反的结论<sup>[14](https://epubs.siam.org/doi/10.1137/130938633)</sup>。

一个相关的扩展用损失驱动的更新取代似然驱动的更新。广义贝叶斯后验具有形式 \( q(\theta \mid x) \propto \pi(\theta)\exp\{-\eta \ell(\theta; x)\} \)；近期的决策论工作表明，当且仅当损失可表示为负对数似然乘以一个比例因子，再加上一个仅依赖数据的项时，它与普通贝叶斯条件化相一致<sup>[15](https://arxiv.org/abs/2602.01573)</sup>。

## References

1. [Bayesian estimator, Encyclopedia of Mathematics](https://encyclopediaofmath.org/wiki/Bayesian_estimator)
2. [Bayes Estimation, Stat 210A reader, UC Berkeley](https://stat210a.berkeley.edu/fall-2024/reader/bayes-estimation.html)
3. [Introduction to Bayesian Statistical Inference, Springer](https://link.springer.com/chapter/10.1007/978-3-030-83640-5_1)
4. [Chapter 20: Bayesian Inference, Foundations of Probability and Statistical Theory](https://wanghemath.github.io/Book-ProbabilityStatisticalTheory/chapters/chapter-20-bayesian-inference.html)
5. [UW STAT 581, Chapter 1: Elementary Decision Theory](https://faculty.washington.edu/yenchic/26A_stat581/Lec1_decision.html)
6. [The James-Stein Estimator, Stat 210A reader, UC Berkeley](https://stat210a.berkeley.edu/fall-2025/reader/jamesstein.html)
7. [UW-Madison STAT 710, Bayes rules and estimators (lecture notes)](https://gradebuddy.com/doc/2175244/bayes-rules-and-estimators/)
8. [Empirical Bayes and Selective Inference, Journal of the Indian Institute of Science](https://link.springer.com/article/10.1007/s41745-022-00286-0)
9. [The Importance of "Shrinkage" in Subgroup Analyses, PMC](https://pmc.ncbi.nlm.nih.gov/articles/PMC2875357/)
10. [An Empirical Bayes Approach to Shrinkage Estimation on the Manifold of Symmetric Positive-Definite Matrices, PMC](https://pmc.ncbi.nlm.nih.gov/articles/PMC11000275/)
11. [On Application of the Empirical Bayes Shrinkage in Epidemiological Settings, PMC](https://pmc.ncbi.nlm.nih.gov/articles/PMC2872278/)
12. [Sensitivity of a Bayesian inference to prior assumptions, Journal of Statistical Computation and Simulation](https://www.tandfonline.com/doi/abs/10.1080/00949658608810922)
13. [Confronting Prior Convictions: On Issues of Prior Sensitivity and Likelihood Robustness in Bayesian Analysis, Annual Review of Economics](https://www.annualreviews.org/content/journals/10.1146/annurev-economics-111809-125134)
14. [On the Brittleness of Bayesian Inference, SIAM Review](https://epubs.siam.org/doi/10.1137/130938633)
15. [When Is Generalized Bayes Bayesian? A Decision-Theoretic Characterization of Loss-Based Updating, arXiv](https://arxiv.org/abs/2602.01573)

---
*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 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-estimator

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