# 经验贝叶斯估计

经验贝叶斯（Empirical Bayes, EB）估计是一种统计方法：它从观测数据中估计先验分布，再将估计出的先验用于贝叶斯推断，而不是事先固定先验。该方法面向的是存在大量相关参数的问题——在这类问题中，跨整个数据集借力可以改善对每个个体参数的估计。<sup>[1](https://www.efron.ckirby.su.domains/papers/2021EB-concepts-methods.pdf)</sup> 这一术语指的是采用数据驱动方式选择先验分布的做法，与真正的贝叶斯方法形成对照——后者的先验与数据无关。<sup>[2](https://link.springer.com/rwe/10.1007/978-3-662-69359-9_197)</sup> 经验贝叶斯介于频率学派的收缩估计量与完全贝叶斯层次模型之间：它可以被视为对层次模型作完全贝叶斯处理的一种近似，其中最高层的参数被设为其最可能的值，而不是被积分掉。<sup>[1](https://www.efron.ckirby.su.domains/papers/2021EB-concepts-methods.pdf)</sup> 凯恩克（Koenker）和古（Gu）将赫伯特·罗宾斯（Herbert Robbins）所构想的这些方法描述为统计工具箱中不可或缺的要素。<sup>[3](https://www.cambridge.org/core/books/empirical-bayes/ABB3C5858D5E4CDC62E6B9CBD28E9330)</sup>

| 关键事实 | 陈述 |
|---|---|
| 定义性特征 | 先验分布由数据估计得出，然后用于贝叶斯推断<sup>[2](https://link.springer.com/rwe/10.1007/978-3-662-69359-9_197)</sup> |
| 核心模型 | 对 \( i = 1, \ldots, N \) 独立地有 \( \theta_i \sim g(\theta) \) 和 \( x_i \sim f(x_i \mid \theta_i) \)<sup>[1](https://www.efron.ckirby.su.domains/papers/2021EB-concepts-methods.pdf)</sup> |
| 收缩因子 | 在等方差的参数化经验贝叶斯中，\( B = V/(V + A) \)，用于权衡先验均值与数据<sup>[4](https://errorstatistics.com/wp-content/uploads/2015/11/morris.pdf)</sup> |
| 特威迪公式 | 对于单位方差的正态情形 \( \theta \sim g(\cdot) \) 和 \( x \mid \theta \sim N(\theta, 1) \)，后验均值为 \( E\{\theta \mid x\} = x + l'(x) \)，其中 \( l'(x) = d/dx \log f(x) \)；对于一般指数族，该公式形式有所不同<sup>[5](https://pmc.ncbi.nlm.nih.gov/articles/PMC4196219/)</sup> |
| 局部错误发现率 | \( \mathrm{fdr}(z) = \pi_0 f_0(z)/f(z) \)，其中边缘分布为 \( f(z) = \pi_0 f_0(z) + \pi_1 f_1(z) \)<sup>[1](https://www.efron.ckirby.su.domains/papers/2021EB-concepts-methods.pdf)</sup> |
| 最优性 | 在平方误差损失下的正态均值问题中，通常的估计量 \( X \) 在 \( p \geq 3 \) 时不可容许，而詹姆斯–斯坦（James–Stein）估计量——在该设定下作为经验贝叶斯估计量出现——优于它<sup>[6](https://hannig.cloudapps.unc.edu/STOR757Bayes/handouts/PetroneEtAl2014.pdf)</sup> |
| 速度 | 对于层次模型，经验贝叶斯通常比完全贝叶斯计算快约 10 到 100 倍<sup>[7](https://cran.r-project.org/web/packages/gdpar/vignettes/v07_eb_vs_fb.html)</sup> |

## 工作原理

设定是一个复合抽样问题：\( N \) 个单元各自携带一个参数 \( \theta_i \)，该参数抽自一个共同的潜在分布 \( G \)；每个单元产生一个观测 \( x_i \)，其分布依赖于 \( \theta_i \)。<sup>[6](https://hannig.cloudapps.unc.edu/STOR757Bayes/handouts/PetroneEtAl2014.pdf)</sup> 这里不存在循环论证，因为先验从未被假定为已知：关于超参数的全部信息都包含在观测 \( X \) 的边缘分布中，而该边缘分布是从汇总数据中估计出来的。<sup>[8](https://biostat.jhsph.edu/~fdominic/teaching/bio656/labs/labs09/Casella.EmpBayes.pdf)</sup> 埃夫隆（Efron）将罗宾斯对这一点的认识称为关键洞见：除了 \( x_i \) 本身之外，整个数据集 \( x = (x_1, \ldots, x_N) \) 都可以用来估计先验，这正是经验贝叶斯理论的出发点。<sup>[1](https://www.efron.ckirby.su.domains/papers/2021EB-concepts-methods.pdf)</sup><sup>[9](http://www.cs.columbia.edu/~blei/fogm/readings/Efron2019.pdf)</sup>

有两个量可以说明经验贝叶斯能产出什么。就估计而言，特威迪公式直接从数据的边缘密度给出后验均值：\( E\{\theta \mid x\} = x + l'(x) \)，其中 \( l'(x) = d/dx \log f(x) \)，因此收缩量可以直接从拟合的边缘分布读出，而无需指定 \( g(\theta) \)。<sup>[5](https://pmc.ncbi.nlm.nih.gov/articles/PMC4196219/)</sup> 就检验而言，局部错误发现率为 \( \mathrm{fdr}(z) = \Pr\{\mathrm{null} \mid z\} = \pi_0 f_0(z)/f(z) \)，由边缘密度的分解 \( f(z) = \pi_0 f_0(z) + \pi_1 f_1(z) \) 估计得到。<sup>[1](https://www.efron.ckirby.su.domains/papers/2021EB-concepts-methods.pdf)</sup>

## 实现方式

埃夫隆区分了两种建模策略：g 建模在参数尺度 \( \theta \) 上设定模型，而 f 建模对数据尺度 \( x \) 建模；g 建模在理论文献中占主导地位，而自罗宾斯（1956）以来的应用则更多依赖 f 建模。<sup>[5](https://pmc.ncbi.nlm.nih.gov/articles/PMC4196219/)</sup> 这一选择很重要：f 建模允许直接拟合方法，通常是基于 \( X \) 值的各种回归，但代价是贝叶斯计算更复杂、更不稳定；g 建模需要困难的非凸最大似然计算，但使得后续的贝叶斯计算变得直接了当。<sup>[5](https://pmc.ncbi.nlm.nih.gov/articles/PMC4196219/)</sup>

在基因组学软件中，这些步骤已被打包。在斯迈思（Smyth）的 limma 方法（2004，发表于《遗传学与分子生物学的统计应用》）中，后验值将观测到的各基因方差向先验值收缩，收缩程度取决于观测自由度与先验自由度的相对大小，由此得到调节 t 统计量。<sup>[10](https://gksmyth.github.io/pubs/ebayes.pdf)</sup> 在洛夫（Love）、胡贝尔（Huber）和安德斯（Anders）的 DESeq2（2014，发表于《基因组生物学》）中，各基因的离散度估计值向拟合趋势收缩，收缩强度取决于真实离散度接近拟合值的程度以及自由度；随着样本量增加，收缩减弱并最终变得可以忽略。<sup>[11](https://link.springer.com/article/10.1186/s13059-014-0550-8)</sup> edgeR 通过加权似然近似来处理 RNA-seq 离散度 \( \phi \)，因为负二项离散度不存在共轭先验分布。<sup>[12](https://gksmyth.github.io/pubs/edgeRChapterPreprint.pdf)</sup>

## 起源

赫伯特·罗宾斯于 1955 年在《医学昆虫学与动物学》上引入了经验贝叶斯方法。<sup>[13](https://projecteuclid.org/ebook/Download?urlId=bsmsp%2F1200501653&isFullBook=False&isResultClick=False)</sup> 卡塞拉（Casella）将经验贝叶斯的根源追溯到 20 世纪 40 年代冯·米泽斯（von Mises）的工作，但将第一项重要工作归功于罗宾斯<sup>[8](https://biostat.jhsph.edu/~fdominic/teaching/bio656/labs/labs09/Casella.EmpBayes.pdf)</sup>；罗宾斯的论文《一种经验贝叶斯方法》围绕一个未知的先验分布函数 \( G \) 来构建问题，并通过期望平方偏差来比较贝叶斯规则与无偏估计量。<sup>[13](https://projecteuclid.org/ebook/Download?urlId=bsmsp%2F1200501653&isFullBook=False&isResultClick=False)</sup> 埃夫隆将起点定在复合决策程序的引入。<sup>[9](http://www.cs.columbia.edu/~blei/fogm/readings/Efron2019.pdf)</sup><sup>[6](https://hannig.cloudapps.unc.edu/STOR757Bayes/handouts/PetroneEtAl2014.pdf)</sup> 一系列论文奠定了现代参数化经验贝叶斯数据分析的基础。<sup>[8](https://biostat.jhsph.edu/~fdominic/teaching/bio656/labs/labs09/Casella.EmpBayes.pdf)</sup> 里德（Reid）指出，罗宾斯的理论在 20 世纪 50 年代很少得到应用，也缺乏斯坦收缩估计量那样的应用影响力——后者在规模小得多的数据集中也有用；这种情况在 21 世纪发生了改变。<sup>[14](https://utstat.toronto.edu/reid/sta2212s/2021/LSIChapter1.pdf)</sup>

## 变体

**参数化与非参数化。** 罗宾斯的表述完全不对先验作具体设定，称为非参数经验贝叶斯；参数化经验贝叶斯则指定一个参数化的先验族。<sup>[8](https://biostat.jhsph.edu/~fdominic/teaching/bio656/labs/labs09/Casella.EmpBayes.pdf)</sup> 非参数先验估计是可行的，而正态先验情形与詹姆斯–斯坦估计量相关。<sup>[9](http://www.cs.columbia.edu/~blei/fogm/readings/Efron2019.pdf)</sup>

**收缩与检验规则。** 在等方差参数化设定下，经验贝叶斯估计量为 \( \hat{\theta}_i = (1 - \hat{B}) Y_i + \hat{B} \cdot z_i' \cdot \hat{b} \)，收缩因子 \( B = V/(V + A) \)<sup>[4](https://errorstatistics.com/wp-content/uploads/2015/11/morris.pdf)</sup>；莫里斯（Morris）证明这一折中估计量就是斯坦估计量<sup>[4](https://errorstatistics.com/wp-content/uploads/2015/11/morris.pdf)</sup>，而詹姆斯–斯坦型规则的形式为 \( \hat{\theta}_{\mathrm{JS},i} = \bar{x} + \left(1 - (N-3)\sigma_0^2/S\right) \cdot (x_i - \bar{x}) \)，其中 \( S = \sum (x_i - \bar{x})^2 \)。<sup>[1](https://www.efron.ckirby.su.domains/papers/2021EB-concepts-methods.pdf)</sup> 经验贝叶斯局部错误发现率程序与本贾米尼–霍赫贝格（Benjamini–Hochberg）规则密切相关，可以一起使用，但两者通常并不重合。<sup>[1](https://www.efron.ckirby.su.domains/papers/2021EB-concepts-methods.pdf)</sup><sup>[15](https://genomics.princeton.edu/storeylab/papers/ETST_JASA_2001.pdf)</sup><sup>[17](https://storeylab.org/doc/BIO217.pdf)</sup>

## 应用

凡需要同时估计或检验大量相关参数的地方，都会用到经验贝叶斯方法。在基因组学中，埃夫隆、蒂布希拉尼（Tibshirani）、斯托里（Storey）和塔舍（Tusher）将经验贝叶斯分析应用于一项微阵列辐射实验，将数据简化为每个基因一个汇总统计量，并就哪些基因受到影响作出同时推断<sup>[15](https://genomics.princeton.edu/storeylab/papers/ETST_JASA_2001.pdf)</sup>；limma、DESeq2 和 edgeR 将经验贝叶斯思想带入常规的差异表达流程。<sup>[10](https://gksmyth.github.io/pubs/ebayes.pdf)</sup><sup>[11](https://link.springer.com/article/10.1186/s13059-014-0550-8)</sup><sup>[12](https://gksmyth.github.io/pubs/edgeRChapterPreprint.pdf)</sup> 在多重检验中，经验贝叶斯分析与本贾米尼和霍赫贝格的错误发现率准则密切相关，其中 FDR 是使用给定拒绝规则所犯第一类错误的期望比例。<sup>[15](https://genomics.princeton.edu/storeylab/papers/ETST_JASA_2001.pdf)</sup>

## 局限与替代方案

莫里斯警告说，不恰当地选择先验分布类别可能会破坏所期望的一切优势，并产生扭曲的估计。<sup>[4](https://errorstatistics.com/wp-content/uploads/2015/11/morris.pdf)</sup> 经验贝叶斯后验也可能是退化的——这是一种病态情形，经验贝叶斯后验与完全贝叶斯后验可能相对于彼此是奇异的。<sup>[6](https://hannig.cloudapps.unc.edu/STOR757Bayes/handouts/PetroneEtAl2014.pdf)</sup> 2025 年的一项综述指出，与在超参数上放置超先验的完全贝叶斯方法相比，经验贝叶斯方法仍然存在退化性和不确定性量化不佳的隐患，在高维模型中尤其如此。<sup>[16](https://ideas.repec.org/a/spr/metron/v83y2025i3d10.1007_s40300-025-00293-y.html)</sup> 从机制上说，经验贝叶斯代入参考参数的点估计并以之为条件，而完全贝叶斯对其整个后验进行积分；因此经验贝叶斯忽略了这一不确定性，导致有限样本中可信区间的覆盖率不足，不过在正则条件下两者在一阶上是等价的。<sup>[7](https://cran.r-project.org/web/packages/gdpar/vignettes/v07_eb_vs_fb.html)</sup> 权衡在于计算：对于层次模型，经验贝叶斯通常比完全贝叶斯快约 10 到 100 倍。<sup>[7](https://cran.r-project.org/web/packages/gdpar/vignettes/v07_eb_vs_fb.html)</sup> 就保证而言，在等方差情形下，对于平方误差和损失，斯坦估计量是极小极大的，但对于以不同方式加权平方误差的损失函数则不然。<sup>[4](https://errorstatistics.com/wp-content/uploads/2015/11/morris.pdf)</sup>

## References

1. [Empirical Bayes: Concepts and Methods (Efron)](https://www.efron.ckirby.su.domains/papers/2021EB-concepts-methods.pdf)
2. [Empirical Bayes (Springer reference-work entry)](https://link.springer.com/rwe/10.1007/978-3-662-69359-9_197)
3. [Empirical Bayes: Tools, Rules, and Duals (Koenker and Gu, Cambridge)](https://www.cambridge.org/core/books/empirical-bayes/ABB3C5858D5E4CDC62E6B9CBD28E9330)
4. [Parametric Empirical Bayes Inference: Theory and Applications (Morris, JASA 1983)](https://errorstatistics.com/wp-content/uploads/2015/11/morris.pdf)
5. [Two modeling strategies for empirical Bayes estimation (Efron 2014)](https://pmc.ncbi.nlm.nih.gov/articles/PMC4196219/)
6. [Empirical Bayes methods in classical and Bayesian inference (Petrone, Raftery, Friel)](https://hannig.cloudapps.unc.edu/STOR757Bayes/handouts/PetroneEtAl2014.pdf)
7. [Theoretical Addendum – Block 7: EB vs FB (gdpar package vignette)](https://cran.r-project.org/web/packages/gdpar/vignettes/v07_eb_vs_fb.html)
8. [An Introduction to Empirical Bayes Data Analysis (Casella)](https://biostat.jhsph.edu/~fdominic/teaching/bio656/labs/labs09/Casella.EmpBayes.pdf)
9. [Bayes, Oracle Bayes and Empirical Bayes (Efron 2019)](http://www.cs.columbia.edu/~blei/fogm/readings/Efron2019.pdf)
10. [Linear Models and Empirical Bayes Methods for Assessing Differential Expression in Microarray Experiments (Smyth 2004)](https://gksmyth.github.io/pubs/ebayes.pdf)
11. [Moderated estimation of fold change and dispersion for RNA-seq data with DESeq2 (Love, Huber, Anders; Genome Biology 2014)](https://link.springer.com/article/10.1186/s13059-014-0550-8)
12. [edgeR chapter (Robinson, McCarthy, Smyth), empirical Bayes dispersion estimation for RNA-seq](https://gksmyth.github.io/pubs/edgeRChapterPreprint.pdf)
13. [An Empirical Bayes Approach (Herbert Robbins)](https://projecteuclid.org/ebook/Download?urlId=bsmsp%2F1200501653&isFullBook=False&isResultClick=False)
14. [Empirical Bayes and the James–Stein Estimator (Reid, chapter)](https://utstat.toronto.edu/reid/sta2212s/2021/LSIChapter1.pdf)
15. [Empirical Bayes Analysis of a Microarray Experiment (Efron, Tibshirani, Storey, Tusher; JASA 2001)](https://genomics.princeton.edu/storeylab/papers/ETST_JASA_2001.pdf)
16. [Empirical Bayes methods in high dimensions: a survey and ongoing debates (Metron, 2025)](https://ideas.repec.org/a/spr/metron/v83y2025i3d10.1007_s40300-025-00293-y.html)
17. [BIO217 (storeylab.org)](https://storeylab.org/doc/BIO217.pdf)

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

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

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/empirical-bayes-estimation

English original: https://www.edgepedia.org/empirical-bayes-estimation
