# 贝叶斯（Bayes）估计量

贝叶斯估计量是一种统计方法：它通过贝叶斯定理，把先验分布与观测数据结合起来，估计未知参数，得到一个完整的后验分布，并由此提取点估计、可信区间或其他概括。

| 关键事实 | 详情 |
|---|---|
| 核心原理 | 后验 ∝ 先验 × 似然：\( f_{\Theta\mid X}(\theta\mid x) \propto f_{X\mid\Theta}(x\mid\theta) \times f_{\Theta}(\theta) \) <sup>[1](https://www.artowen.su.domains/courses/200/lec06.pdf)</sup> |
| 输出 | 一个完整的后验分布；均值、中位数或众数都可作为点估计，可信区间概括离散程度 <sup>[1](https://www.artowen.su.domains/courses/200/lec06.pdf)</sup><sup> • </sup><sup>[2](https://jrnold.github.io/bayesian_notes/estimation-1.html)</sup> |
| 损失函数最优性 | 在二次损失下为后验均值，在绝对损失下为后验中位数，在0-1损失下对离散参数为后验众数（MAP），或在连续参数情形下，作为由小邻域损失或极限论证所驱动的密度极大化点 <sup>[3](https://link.springer.com/chapter/10.1007/978-3-030-83640-5_1)</sup> |
| 与最大似然的关系 | 平坦先验下，后验与似然形状相同，因此MAP等于最大似然估计 <sup>[4](https://gwern.net/doc/statistics/bayes/2003-brooks.pdf)</sup> |
| 覆盖性注意事项 | 贝叶斯 \( 1-\alpha \) 可信集的频率学派覆盖概率通常并不对所有参数值都等于 \( 1-\alpha \) <sup>[5](https://www.stat.berkeley.edu/~stark/Preprints/freqBayes09.pdf)</sup> |
| 主要失效模式 | 贝叶斯估计可能对先验和似然形式都敏感 <sup>[6](https://www.annualreviews.org/content/journals/10.1146/annurev-economics-111809-125134)</sup> |

## 工作原理

贝叶斯定理在观测到数据后，把关于参数的先验信念转化为后验信念。将先验密度写为 \( f_{\Theta}(\theta) \)，数据的似然写为 \( f_{X\mid\Theta}(x\mid\theta) \)，则后验满足 \( f_{\Theta\mid X}(\theta\mid x) \propto f_{X\mid\Theta}(x\mid\theta) \times f_{\Theta}(\theta) \)。<sup>[1](https://www.artowen.su.domains/courses/200/lec06.pdf)</sup>

点估计便是对该分布的一种概括；而按定义，贝叶斯估计就是使期望后验损失最小化的估计。<sup>[7](https://www.uv.es/~bernardo/2007Sort.pdf)</sup> 对损失函数 \( \rho \)，先验 \( \pi \) 的贝叶斯 \( \rho \)-风险是所有估计量在该先验下的平均 \( \rho \)-风险的最小值；达到它的估计量就是贝叶斯估计量。在均方误差风险下，贝叶斯估计量是给定数据时边缘后验分布的均值。<sup>[5](https://www.stat.berkeley.edu/~stark/Preprints/freqBayes09.pdf)</sup> 在二次损失 \( \ell(\theta,\delta)=(\theta-\delta)^2 \) 下，贝叶斯估计为后验均值 \( \delta^{\pi}(x_{1:n}) = E_{\pi}(\theta\mid x_{1:n}) \)，它也是最小均方误差估计量。<sup>[3](https://link.springer.com/chapter/10.1007/978-3-030-83640-5_1)</sup><sup> • </sup><sup>[8](https://www.cs.cmu.edu/~harchol/Probability/chapters/chpt17.pdf)</sup> 在绝对损失 \( \ell(\theta,\delta)=|\theta-\delta| \) 下，为后验中位数；在0-1损失下，为后验众数，即最大后验（MAP）估计；在具有非对称惩罚 \( c_1 \) 与 \( c_2 \) 的线性损失下，为分位水平为 \( c_2/(c_1+c_2) \) 的后验分位数。<sup>[3](https://link.springer.com/chapter/10.1007/978-3-030-83640-5_1)</sup><sup> • </sup><sup>[2](https://jrnold.github.io/bayesian_notes/estimation-1.html)</sup>

与最大似然的联系在一个极限情形下是精确的：在平坦先验下，后验与似然 \( f(x\mid\theta) \) 形状相同，因此后验众数与最大似然估计重合。<sup>[4](https://gwern.net/doc/statistics/bayes/2003-brooks.pdf)</sup> 当适当变换使后验接近正态分布时，贝叶斯估计也可以近似最大似然估计；这在数据量较小时很有用。<sup>[9](https://esj-journals.onlinelibrary.wiley.com/doi/10.1007/s10144-015-0526-x)</sup>

## 具体做法

实践者的工作流程有四步。第一，选择一个似然，描述在给定参数时数据如何产生。第二，选择先验。如果后验落入与先验相同的分布族，则称先验与似然共轭，后验可写成闭式。<sup>[10](https://www2.stat.duke.edu/courses/Spring23/sta732.01/Lecture10.pdf)</sup> 第三，计算后验，或在共轭情形下解析计算，或数值计算。当求逆或积分难以处理时，可信区间可能需要数值算法。<sup>[3](https://link.springer.com/chapter/10.1007/978-3-030-83640-5_1)</sup> 在分层模型中，后验通常没有闭式，因此标准策略是建立一个以后验为平稳分布的马尔可夫链，并运行足够长时间以获得近似后验样本，即马尔可夫链蒙特卡洛（MCMC）方法。<sup>[11](https://www2.stat.duke.edu/courses/Spring23/sta732.01/Lecture11.pdf)</sup> 第四，概括：报告后验均值、中位数或众数，以及一个区间。

可信区间并不唯一。常见选择是等尾区间和最高后验密度（HPD）区间，即后验体积最小的可信集；在一维且后验为单峰时，HPD集可表示为最短可信区间；当后验不同时具有单峰性和对称性时，HPD区间与等尾区间不同。<sup>[2](https://jrnold.github.io/bayesian_notes/estimation-1.html)</sup> 对于MCMC过慢的大型模型，变分推断构造高斯近似 \( p(\theta\mid y_{1:N}) \approx q_{\phi}(\theta) = N(\theta\mid\mu,\Sigma) \)，并通过最小化 \( \mathrm{KL}[q_{\phi}(\theta)\,\|\,p(\theta\mid y_{1:N})] \) 来学习 \( \phi=(\mu,\Sigma) \)，其中梯度用蒙特卡洛和重参数化近似。<sup>[12](https://arxiv.org/abs/2406.00104)</sup>

## 起源

贝叶斯计算可以被构想为一个引入均匀先验的思想实验。<sup>[13](http://www.stat.ucla.edu/~ywu/Bayesian.pdf)</sup> 贝叶斯与拉普拉斯（Laplace）都知道如今称为贝叶斯定理的关系，二人都是“客观贝叶斯主义者”，对先验持怀疑态度，并经常使用平坦先验。<sup>[14](https://people.eecs.berkeley.edu/%7Ejordan/courses/260-spring10/lectures/lecture1.pdf)</sup> 德·拉普拉斯、德·菲内蒂（de Finetti）和杰弗里斯（Jeffreys）的著作，算得上贝叶斯统计的奠基性书籍。<sup>[15](https://www.eolss.net/sample-chapters/c02/E6-02-04-06.pdf)</sup>

历史学家 A. I. 戴尔（A. I. Dale）认为，贝叶斯著作被严谨地发展为一种统计工具，可以看作是对费希尔（Fisher）发展抽样理论的一种反应；20世纪30年代还见证了奈曼-皮尔逊（Neyman–Pearson）方法的诞生，以及后来沃尔德（Wald）方法的出现。<sup>[16](https://unina2.on-line.it/sebina/repository/catalogazione/documenti/Dale%20-%20A%20history%20of%20inverse%20probability%20from%20Thomas%20Bayes%20to%20Karl%20Pearson.pdf)</sup> 这一方法在20世纪80年代末重新兴起，驱动力是计算的迅速发展，以及为日益复杂的科学现象建模的愿望——这些现象是较旧的抽样理论处理不好的。<sup>[4](https://gwern.net/doc/statistics/bayes/2003-brooks.pdf)</sup>

## 变体

**经验贝叶斯**从数据中估计先验本身。非参数形式完全不指定先验，最早由赫伯特·罗宾斯（Herbert Robbins）在《统计学中的经验贝叶斯方法》（An Empirical Bayes Approach to Statistics）中提出，该文载于《第三届伯克利（Berkeley）数理统计与概率研讨会论文集》（Proceedings of the Third Berkeley Symposium on Mathematical Statistics and Probability）。<sup>[17](https://biostat.jhsph.edu/%7Efdominic/teaching/bio656/labs/labs09/Casella.EmpBayes.pdf)</sup> 参数化方法则指定一个先验分布族；卡尔·N. 莫里斯（Carl N. Morris）于1983年在《美国统计协会杂志》（Journal of the American Statistical Association）上给出了其理论，表明其折中估计量就是“斯坦（Stein）著名的估计量”（詹姆斯（James）与斯坦，1961）。<sup>[18](https://doi.org/10.1080/01621459.1983.10477920)</sup> 若 \( X_i \mid \theta_i \sim N(\theta_i, 1) \) 且先验为正态，\( \theta_i \sim N(\mu, \tau^2) \)，则贝叶斯估计为后验均值 \( b_1^*(X_i) = \mu + (1 - (1+\tau^2)^{-1}) \cdot (X_i - \mu) \)；在经验贝叶斯情形下，\( \tau^2 \) 由 \( X_i \) 的边缘分布估计。<sup>[19](https://www.jhanley.biostat.mcgill.ca/bios602/MultilevelData/EfronMorrisJASA1975.pdf)</sup>

**分层贝叶斯**通过把先验的参数当作超参数、与数据模型联合估计，来处理先验选择问题；格尔曼（Gelman）的历史评述指出，它会传播超参数中的不确定性，并允许参数既随时间变化，也跨组变化。<sup>[20](https://sites.stat.columbia.edu/gelman/research/published/bayes_history.pdf)</sup>

**变分推断**用优化代替抽样，布莱（Blei）、库丘克尔比尔（Kucukelbir）和麦考利夫（McAuliffe）于2017年在《美国统计协会杂志》上为统计学家做了综述。<sup>[21](https://doi.org/10.1080/01621459.2017.1285773)</sup>

## 应用

在埃夫龙（Efron）与莫里斯的应用中，斯坦型规则的均方误差不到样本均值均方误差的一半 <sup>[19](https://www.jhanley.biostat.mcgill.ca/bios602/MultilevelData/EfronMorrisJASA1975.pdf)</sup>，并且在等方差正态情形下，经验贝叶斯置信区间对每个 \( \theta_i \) 都可能比标准区间更短。<sup>[18](https://doi.org/10.1080/01621459.1983.10477920)</sup> 在机器学习中，posteriors 软件包为大型 PyTorch 和 Hugging Face 模型实现随机梯度 MCMC、变分推断和拉普拉斯近似 <sup>[12](https://arxiv.org/abs/2406.00104)</sup>；生成式贝叶斯计算（Generative Bayesian Computation）训练一个深度神经网络，把基础分布的样本映射到后验，完全避开密度，应用于无似然推断与参数推断、预测以及最大期望效用分析。<sup>[22](https://www.mdpi.com/1099-4300/27/7/683)</sup>

## 局限与替代方案

主要困难是先验选择，尤其在高维情形；频率学派可能怀疑先验是否在真实参数附近分配了任何质量。<sup>[10](https://www2.stat.duke.edu/courses/Spring23/sta732.01/Lecture10.pdf)</sup> 贝叶斯估计可能对先验和似然形式都敏感，尽管非贝叶斯分析也会纳入先验信息。<sup>[6](https://www.annualreviews.org/content/journals/10.1146/annurev-economics-111809-125134)</sup> 模型误设是第二种失效模式：使用有缺陷模型的贝叶斯推断可能产生不可靠的结论，而在大多数情形下，严重误设时常规贝叶斯分析没有意义。文献中讨论了三类补救办法：使用数据的非充分摘要的限制似然方法；由若干相互耦合的子模型构建的模块化推断，其中一些子模型被正确指定；以及使用参考模型。<sup>[23](https://arxiv.org/html/2305.08429v2)</sup>

可信区间在解释上也与置信区间不同。95%可信区间可直接读作 \( \theta \) 落在该区间内的概率为95%，这是贝叶斯构造的一个优点。<sup>[24](https://bookdown.org/johnnydoorn/bayesbookdown/how-do-models-estimate.html)</sup> 然而，这种集合的频率学派覆盖概率通常并不对所有参数值都等于 \( 1-\alpha \) <sup>[5](https://www.stat.berkeley.edu/~stark/Preprints/freqBayes09.pdf)</sup>，而且通常没有哪个估计量对所有可能的世界状态都具有最小风险。<sup>[5](https://www.stat.berkeley.edu/~stark/Preprints/freqBayes09.pdf)</sup>

## References

1. [Lecture 6: Bayesian estimation (Art Owen, Stanford)](https://www.artowen.su.domains/courses/200/lec06.pdf)
2. [Estimation | Updating: A Set of Bayesian Notes (Jeffrey Arnold)](https://jrnold.github.io/bayesian_notes/estimation-1.html)
3. [Introduction to Bayesian Statistical Inference (Springer chapter)](https://link.springer.com/chapter/10.1007/978-3-030-83640-5_1)
4. [Bayesian computation: a statistical revolution (S. P. Brooks, 2003)](https://gwern.net/doc/statistics/bayes/2003-brooks.pdf)
5. [Bayesian Inference in Inverse Problems (Stark)](https://www.stat.berkeley.edu/~stark/Preprints/freqBayes09.pdf)
6. [Confronting Prior Convictions: On Issues of Prior Sensitivity and Likelihood Robustness in Bayesian Analysis](https://www.annualreviews.org/content/journals/10.1146/annurev-economics-111809-125134)
7. [Objective Bayesian point and region estimation (Bernardo, SORT 2007)](https://www.uv.es/~bernardo/2007Sort.pdf)
8. [Bayesian Statistical Inference (CMU, Ch. 17 of Harchol-Balter's probability text)](https://www.cs.cmu.edu/~harchol/Probability/chapters/chpt17.pdf)
9. [Bayes estimates as an approximation to maximum likelihood estimates (Ecological Research)](https://esj-journals.onlinelibrary.wiley.com/doi/10.1007/s10144-015-0526-x)
10. [STA732 Lecture 10: Bayes pros and cons (Duke)](https://www2.stat.duke.edu/courses/Spring23/sta732.01/Lecture10.pdf)
11. [STA732 Lecture 11: Empirical Bayes and Hierarchical Bayes (Duke)](https://www2.stat.duke.edu/courses/Spring23/sta732.01/Lecture11.pdf)
12. [Scalable Bayesian Learning with posteriors](https://arxiv.org/abs/2406.00104)
13. [A Bayesian Way of Thinking (Ying Nian Wu, UCLA)](http://www.stat.ucla.edu/~ywu/Bayesian.pdf)
14. [Course lecture notes on Bayesian history (M. I. Jordan, UC Berkeley)](https://people.eecs.berkeley.edu/%7Ejordan/courses/260-spring10/lectures/lecture1.pdf)
15. [Bayesian Statistics (EOLSS encyclopedia chapter)](https://www.eolss.net/sample-chapters/c02/E6-02-04-06.pdf)
16. [A History of Inverse Probability from Thomas Bayes to Karl Pearson (A. I. Dale)](https://unina2.on-line.it/sebina/repository/catalogazione/documenti/Dale%20-%20A%20history%20of%20inverse%20probability%20from%20Thomas%20Bayes%20to%20Karl%20Pearson.pdf)
17. [An Introduction to Empirical Bayes Data Analysis (Casella)](https://biostat.jhsph.edu/%7Efdominic/teaching/bio656/labs/labs09/Casella.EmpBayes.pdf)
18. [Carl N. Morris (1983). Parametric Empirical Bayes Inference: Theory and Applications. Journal of the American Statistical Association.](https://doi.org/10.1080/01621459.1983.10477920)
19. [Data Analysis Using Stein's Estimator and its Generalizations (Efron & Morris, JASA 1975)](https://www.jhanley.biostat.mcgill.ca/bios602/MultilevelData/EfronMorrisJASA1975.pdf)
20. [The history of statistics in 1933 (or, a history of Bayesian statistics), A. Gelman](https://sites.stat.columbia.edu/gelman/research/published/bayes_history.pdf)
21. [David M. Blei, Alp Kucukelbir, Jon D. McAuliffe (2017). Variational Inference: A Review for Statisticians. Journal of the American Statistical Association.](https://doi.org/10.1080/01621459.2017.1285773)
22. [Generative AI for Bayesian Computation (Entropy, 2025)](https://www.mdpi.com/1099-4300/27/7/683)
23. [Bayesian inference for misspecified generative models](https://arxiv.org/html/2305.08429v2)
24. [A Brief Introduction to Bayesian Inference (Doorn, bookdown)](https://bookdown.org/johnnydoorn/bayesbookdown/how-do-models-estimate.html)

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

Topic: 物质世界与数学 › 数学与统计学 › 统计学与概率论 › Bayesian statistics

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/bayesian-estimator

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