# 收缩估计

收缩估计是一种统计技术，它有意将估计值——例如均值向量或一组回归系数——偏向零或另一目标值，以降低方差并减小整体均方误差。最典型的结果是詹姆斯-斯坦因估计量（James–Stein estimator），对于三个或更多正态均值，它在每个真实参数值下的期望总平方误差都小于样本均值。<sup>[1](https://www2.stat.duke.edu/~pdh10/Teaching/732/Notes/shrinkage.pdf)</sup> 这一发现被称为斯坦因悖论（Stein's paradox），它推翻了正态均值的最大似然估计量（MLE）无法被改进的预期，并开启了一类方法，如今包括岭回归、套索（Lasso）和经验贝叶斯估计。<sup>[2](https://utstat.toronto.edu/reid/sta2212s/2021/LSIChapter1.pdf)</sup>

| 关键事实 | 值 |
|---|---|
| 詹姆斯-斯坦因估计量（单位方差） | \( \delta_{\mathrm{JS}}(X) = (1 - (p-2)/\|X\|^{2}) \cdot X \)，在 \( p \geq 3 \) 时优于最大似然估计量<sup>[1](https://www2.stat.duke.edu/~pdh10/Teaching/732/Notes/shrinkage.pdf)</sup> |
| 詹姆斯-斯坦因估计量的风险 | \( p - \mathrm{E}[(p-2)^{2}/(X \cdot X)] < p \)<sup>[1](https://www2.stat.duke.edu/~pdh10/Teaching/732/Notes/shrinkage.pdf)</sup> |
| 收缩目标处的风险比 | 相对于最大似然估计量为 \( p/2 \)；原点处的均方误差无论维数如何均为2<sup>[3](https://pages.stat.wisc.edu/~shao/stat710/stat710-04.pdf)</sup><sup> • </sup><sup>[4](https://stat210a.berkeley.edu/fall-2024/reader/jamesstein.html)</sup> |
| 总均值目标 | 将 \( p-2 \) 替换为 \( p-3 \)；优势要求 \( p \geq 4 \)<sup>[3](https://pages.stat.wisc.edu/~shao/stat710/stat710-04.pdf)</sup> |
| 岭估计量 | \( \hat{\beta} = (X'X + \lambda I)^{-1}X'y \)<sup>[5](https://utstat.toronto.edu/reid/sta2212s/2021/EHChapter7.pdf)</sup> |
| 套索 | 在 \( \sum \lvert \beta_j \rvert \) 小于某常数的约束下最小化残差平方和，将某些系数精确设为0<sup>[6](https://doi.org/10.1111/j.2517-6161.1996.tb02080.x)</sup> |
| 棒球例子（Efron与Morris） | 1970年18名球员，每人45次击球；均方误差不到样本均值的一半；每个估计值向均值收缩了78%<sup>[7](https://www.jhanley.biostat.mcgill.ca/bios602/MultilevelData/EfronMorrisJASA1975.pdf)</sup><sup> • </sup><sup>[8](https://www.efron.ckirby.su.domains/papers/2021EB-concepts-methods.pdf)</sup> |

## 工作原理

在正态均值问题中，观测到 \( X \sim N(\theta, I_{p}) \) 并估计向量 \( \theta \)。最大似然估计量就是 \( X \) 本身，它是最小方差无偏估计量，然而斯坦因在1956年证明，在高维情况下，在平方误差损失下它是不可容许的（统计意义上的：另一个估计量处处优于它）。<sup>[9](https://doi.org/10.1525/9780520313880-018)</sup> 詹姆斯-斯坦因估计量将每个分量替换为收缩后的版本，

\[ \delta_{\mathrm{JS}}(X) = \left(1 - \frac{p-2}{\|X\|^{2}}\right) \cdot X, \]

以较小的偏差换取更大的方差缩减。其风险可由斯坦因恒等式 \( \mathrm{E}[g(X)(X - \mu)] = \sigma^{2} \cdot \mathrm{E}[g'(X)] \) 推出，得到 \( \mathrm{E}\|\delta_{\mathrm{JS}} - \theta\|^{2} = p - \mathrm{E}[(p-2)^{2}/(X \cdot X)] < p \)。<sup>[1](https://www2.stat.duke.edu/~pdh10/Teaching/732/Notes/shrinkage.pdf)</sup> 偏差-方差权衡在向目标 \( \mu_{0} \) 的线性收缩 \( c\cdot\hat{\mu} \) 中清晰可见：其均方误差为 \( (c-1)^{2}\sum(\mu_{i} - \mu_{0})^{2} + k \cdot c^{2} \)，且在 \( c = 1 \) 处导数为正，因此略微减小 c 即可降低均方误差。<sup>[10](http://www.yaroslavvb.com/papers/houwelingen-shrinkage.pdf)</sup><sup> • </sup><sup>[4](https://stat210a.berkeley.edu/fall-2024/reader/jamesstein.html)</sup> 理想的固定收缩因子为 \( \zeta^{*}(\theta) = d/(d + \|\theta\|^{2}) \)，它依赖于未知的 \( \|\theta\|^{2} \)；詹姆斯-斯坦因估计量从数据中估计该因子，与理想（神谕）线性收缩的风险之差不超过加性常数2。<sup>[4](https://stat210a.berkeley.edu/fall-2024/reader/jamesstein.html)</sup><sup> • </sup><sup>[11](https://candes.su.domains/publications/downloads/NonlinearEstimation.pdf)</sup> 使用 \( p-2 \) 而非 \( p \) 的修正，是为了考虑估计量与收缩比例之间的抽样误差相关性。<sup>[12](https://www.rasmusen.org/papers/shrinkage-rasmusen.pdf)</sup>

斯坦因无偏风险估计（SURE）无需新数据即可评估估计量 \( \hat{\theta} = Y + g(Y) \)：\( \mathrm{E}\|Y + g(Y) - \theta\|^{2} = \mathrm{E}[d + 2\nabla \cdot g(Y) + \|g(Y)\|^{2}] \)<sup>[11](https://candes.su.domains/publications/downloads/NonlinearEstimation.pdf)</sup>，或者，对于 \( \delta(X) = X - h(X) \)，有 \( \hat{\mathrm{MSE}}(X) = \sigma^{2} \cdot d + \|h(X)\|^{2} - 2\sigma^{2}\,\mathrm{tr}(Dh(X)) \)。<sup>[4](https://stat210a.berkeley.edu/fall-2024/reader/jamesstein.html)</sup> 在线性收缩 \( \hat{\theta} = c \cdot X \) 上最小化SURE得到 \( c^{*} = 1 - 1/\sum X^{2} \)，即詹姆斯-斯坦因估计量（相差一个自由度修正）。<sup>[13](https://maxkasy.github.io/home/files/teaching/ML_Oxford_2024/normal_shrinkage_slides.pdf)</sup> 由于可以这样直接估计均方误差，在正态均值设定下无需交叉验证来选择收缩参数。<sup>[10](http://www.yaroslavvb.com/papers/houwelingen-shrinkage.pdf)</sup>

## 操作方法

对于方差已知的 \( p \) 个正态均值，计算 \( S = \sum X_{i}^{2} \)（当向总均值收缩时，计算 \( \sum (X_{i} - \bar{X})^{2} \)），构造因子 \( 1 - (p-2)/S \)，然后相乘。向 \( \bar{X} \) 收缩使用 \( 1 - (k-3)/\sum(X_{i} - \bar{X})^{2} \)，仅当 \( k > 3 \) 时优于最大似然估计量。<sup>[10](http://www.yaroslavvb.com/papers/houwelingen-shrinkage.pdf)</sup> 经验贝叶斯路线将 \( \theta_{i} \) 视为来自 \( N(0, \tau^{2}) \) 的抽样，将贝叶斯估计量写成含未知因子 \( 1/(1+\tau^{2}) \) 的形式，并代入无偏估计 \( (k-2)/S \)，从而恢复詹姆斯-斯坦因规则。<sup>[7](https://www.jhanley.biostat.mcgill.ca/bios602/MultilevelData/EfronMorrisJASA1975.pdf)</sup> 在回归中，岭回归最小化残差平方和加上 \( \lambda \cdot \|\beta\|^{2} \)，套索使用 \( \sum \lvert \beta_{j} \rvert \) 小于某常数的约束，弹性网将两者结合，惩罚项为 \( \lambda\sum\{\alpha \cdot \lvert\beta_{j}\rvert + (1-\alpha)\beta_{j}^{2}\} \)，其中 \( \alpha = 0 \) 给出岭回归，\( \alpha = 1 \) 给出套索。<sup>[5](https://utstat.toronto.edu/reid/sta2212s/2021/EHChapter7.pdf)</sup><sup> • </sup><sup>[6](https://doi.org/10.1111/j.2517-6161.1996.tb02080.x)</sup><sup> • </sup><sup>[14](https://cameron.econ.ucdavis.edu/sfu2022/ML_2024_part2_Shrinkage_Estimators.pdf)</sup> 在回归应用中，K折交叉验证（通常 \( K = 10 \)）是选择 \( \lambda \) 和 \( \alpha \) 的标准工具。<sup>[14](https://cameron.econ.ucdavis.edu/sfu2022/ML_2024_part2_Shrinkage_Estimators.pdf)</sup>

## 起源

教育心理学中发展了通过向平均值收缩来改进观测分数的模型，尽管模型的提出者并未证明斯坦因类型的任何结果。<sup>[15](https://ryansbrill.com/pdf/statistics_in_sports_papers/Stigler-1988NeymanMemorial-1990.pdf)</sup> 查尔斯·斯坦因（Charles Stein）于1956年证明，在三维或更高维中样本均值可以被处处改进。<sup>[9](https://doi.org/10.1525/9780520313880-018)</sup> 罗宾斯（Robbins）于1956年引入了“经验贝叶斯”一词<sup>[16](https://doi.org/10.1525/9780520313880-015)</sup>，该估计量的总均值版本也有人提出。<sup>[15](https://ryansbrill.com/pdf/statistics_in_sports_papers/Stigler-1988NeymanMemorial-1990.pdf)</sup> Efron与Morris在1972年、1973年和1975年发表于《美国统计协会杂志》（Journal of the American Statistical Association）的论文中，将该规则重新表述于经验贝叶斯框架之下<sup>[17](https://doi.org/10.1080/01621459.1972.10481215)</sup><sup> • </sup><sup>[18](https://doi.org/10.1080/01621459.1973.10481350)</sup><sup> • </sup><sup>[7](https://www.jhanley.biostat.mcgill.ca/bios602/MultilevelData/EfronMorrisJASA1975.pdf)</sup>，他们1977年发表于《科学美国人》（Scientific American）的文章《统计学中的斯坦因悖论》（"Stein's Paradox in Statistics"）将该结果传播给了广泛读者。<sup>[19](https://doi.org/10.1038/scientificamerican0577-119)</sup> Efron后来写道，该定理完全有理由被称为战后时代最引人注目、最具颠覆性的统计学结果。<sup>[8](https://www.efron.ckirby.su.domains/papers/2021EB-concepts-methods.pdf)</sup>

## 变体

詹姆斯-斯坦因估计量本身是不可容许的：正部版本将收缩后的估计值设为零而非让其越过目标，对所有 \( \theta \) 具有严格更小的风险。<sup>[3](https://pages.stat.wisc.edu/~shao/stat710/stat710-04.pdf)</sup><sup> • </sup><sup>[7](https://www.jhanley.biostat.mcgill.ca/bios602/MultilevelData/EfronMorrisJASA1975.pdf)</sup> Baranchik于1970年提出的极小极大估计量族涵盖了这一改进<sup>[20](https://doi.org/10.1214/aoms/1177697104)</sup>，Strawderman于1971年给出了一个可容许的正常贝叶斯极小极大估计量。<sup>[21](https://doi.org/10.1214/aoms/1177693528)</sup> George于1986年提出了极小极大多重收缩估计量。<sup>[22](https://doi.org/10.1214/aos/1176349849)</sup> 在回归中，Hoerl与Kennard于1970年引入了岭估计，在 \( X' \cdot X \) 的对角线上加上小的正量，这建立在其早期作为吉洪诺夫正则化（Tikhonov regularization）出现的基础之上。<sup>[23](https://doi.org/10.1080/00401706.1970.10488634)</sup><sup> • </sup><sup>[5](https://utstat.toronto.edu/reid/sta2212s/2021/EHChapter7.pdf)</sup> Tibshirani于1996年提出了套索。<sup>[6](https://doi.org/10.1111/j.2517-6161.1996.tb02080.x)</sup> Copas于1983年发展了用于回归预测的均匀收缩<sup>[24](https://doi.org/10.1111/j.2517-6161.1983.tb01258.x)</sup>，Mayer与Willke于1973年引入了相关的收缩估计量<sup>[25](https://doi.org/10.1080/00401706.1973.10489076)</sup>，Farebrother、Judge与Bock于1978年为计量经济学分析了预检验和斯坦因规则估计量。<sup>[26](https://doi.org/10.2307/2344502)</sup> 协方差矩阵向单位矩阵的线性收缩已被使用<sup>[27](https://repository.tudelft.nl/file/File_c478b3a5-0b44-4964-a970-0ef017cef231?preview=1)</sup>，Griffin与Hoff于2023年引入了结构化收缩先验。<sup>[28](https://doi.org/10.1080/10618600.2023.2233577)</sup>

## 应用

有文献记载的应用集中在回归预测和计量经济学——斯坦因规则和均匀收缩估计量改进了回归模型的预测<sup>[24](https://doi.org/10.1111/j.2517-6161.1983.tb01258.x)</sup><sup> • </sup><sup>[26](https://doi.org/10.2307/2344502)</sup>——以及高维均值和协方差估计——最大似然和矩估计方法变得非常不稳定，转而使用向确定性目标的收缩。<sup>[27](https://repository.tudelft.nl/file/File_c478b3a5-0b44-4964-a970-0ef017cef231?preview=1)</sup> 收缩思想也是Tweedie公式、套索和Benjamini–Hochberg错误发现率算法的基础。<sup>[29](https://link.springer.com/article/10.1007/s42081-023-00209-y)</sup>

## 局限与替代方案

即使总均方误差改善，个别坐标也可能变差：如果 \( \theta_{1} = 10 \) 但其他999个坐标为0，则 \( \theta_{1} \) 的估计值很可能被过度收缩向0。<sup>[4](https://stat210a.berkeley.edu/fall-2024/reader/jamesstein.html)</sup> 该估计量仅在三个或更多待估参数时适用，在 \( p = 2 \) 时无增益，且可推广到异质未知方差的情形，尽管此类推广不一定保留标准的詹姆斯-斯坦因优势保证。<sup>[12](https://www.rasmusen.org/papers/shrinkage-rasmusen.pdf)</sup><sup> • </sup><sup>[31](https://projecteuclid.org/journals/statistical-science/volume-27/issue-1/Shrinkage-Estimation-in-Multilevel-Normal-Models/10.1214/11-STS363.pdf)</sup> 对于收缩估计并不存在涵盖所有设定的单一通用最优性理论，也没有万无一失的方法来选择岭参数。<sup>[5](https://utstat.toronto.edu/reid/sta2212s/2021/EHChapter7.pdf)</sup> 比较表明没有普遍的赢家：Hansen发现，以普通最小二乘为比较基准时，詹姆斯-斯坦因估计量和套索均不能一致优于对方<sup>[30](https://imi.pmf.kg.ac.rs/kjm/pub/kjom473/kjm_47_3-10.pdf)</sup>，而Giannone、Lenza和Primiceri发现在若干标准经济应用中稀疏模型如套索预测效果差，而岭型收缩预测效果更好。<sup>[14](https://cameron.econ.ucdavis.edu/sfu2022/ML_2024_part2_Shrinkage_Estimators.pdf)</sup> 推广到正态观测和平方误差损失之外（例如泊松数据）已产生令人鼓舞的渐近结果，但未获得有限样本优势。<sup>[29](https://link.springer.com/article/10.1007/s42081-023-00209-y)</sup>

## References

1. [Shrinkage and empirical Bayes (Duke Stat 732 notes)](https://www2.stat.duke.edu/~pdh10/Teaching/732/Notes/shrinkage.pdf)
2. [Empirical Bayes and the James–Stein Estimator (Efron, Large-Scale Inference, Chapter 1)](https://utstat.toronto.edu/reid/sta2212s/2021/LSIChapter1.pdf)
3. [Stat 710: Mathematical Statistics, Lecture 4–5 (UW-Madison, Shao)](https://pages.stat.wisc.edu/~shao/stat710/stat710-04.pdf)
4. [The James-Stein Estimator (Stat 210A reader, UC Berkeley)](https://stat210a.berkeley.edu/fall-2024/reader/jamesstein.html)
5. [James–Stein Estimation and Ridge Regression (Efron & Hastie, Computer Age Statistical Inference, Chapter 7)](https://utstat.toronto.edu/reid/sta2212s/2021/EHChapter7.pdf)
6. [Robert Tibshirani (1996). Regression Shrinkage and Selection Via the Lasso. Journal of the Royal Statistical Society Series B (Statistical Methodology).](https://doi.org/10.1111/j.2517-6161.1996.tb02080.x)
7. [Data Analysis Using Stein's Estimator and its Generalizations (Efron & Morris, JASA 1975)](https://www.jhanley.biostat.mcgill.ca/bios602/MultilevelData/EfronMorrisJASA1975.pdf)
8. [Empirical Bayes: Concepts and Methods (Efron, 2021)](https://www.efron.ckirby.su.domains/papers/2021EB-concepts-methods.pdf)
9. [Charles Stein (1956). INADMISSIBILITY OF THE USUAL ESTIMATOR FOR THE MEAN OF A MULTIVARIATE NORMAL DISTRIBUTION. .](https://doi.org/10.1525/9780520313880-018)
10. [Shrinkage and penalized likelihood as methods to improve predictive accuracy (van Houwelingen & Le Cessie)](http://www.yaroslavvb.com/papers/houwelingen-shrinkage.pdf)
11. [Modern statistical estimation via oracle inequalities (Candès)](https://candes.su.domains/publications/downloads/NonlinearEstimation.pdf)
12. [Understanding Shrinkage Estimators: From Zero to Oracle to James-Stein (Rasmusen)](https://www.rasmusen.org/papers/shrinkage-rasmusen.pdf)
13. [Shrinkage in the Normal means model (M. Kasy, Foundations of Machine Learning, Oxford)](https://maxkasy.github.io/home/files/teaching/ML_Oxford_2024/normal_shrinkage_slides.pdf)
14. [Machine Learning for Microeconometrics Part 2: Shrinkage estimators (A. Colin Cameron, UC Davis)](https://cameron.econ.ucdavis.edu/sfu2022/ML_2024_part2_Shrinkage_Estimators.pdf)
15. [The 1988 Neyman Memorial Lecture: A Galtonian Perspective on Shrinkage Estimators (Stigler)](https://ryansbrill.com/pdf/statistics_in_sports_papers/Stigler-1988NeymanMemorial-1990.pdf)
16. [Herbert Robbins (1956). AN EMPIRICAL BAYES APPROACH TO STATISTICS. .](https://doi.org/10.1525/9780520313880-015)
17. [Bradley Efron, Carl Morris (1972). Limiting the Risk of Bayes and Empirical Bayes Estimators, Part II: The Empirical Bayes Case. Journal of the American Statistical Association.](https://doi.org/10.1080/01621459.1972.10481215)
18. [Bradley Efron, Carl Morris (1973). Stein's Estimation Rule and its Competitors, An Empirical Bayes Approach. Journal of the American Statistical Association.](https://doi.org/10.1080/01621459.1973.10481350)
19. [Bradley Efron, Carl Morris (1977). Stein's Paradox in Statistics. Scientific American.](https://doi.org/10.1038/scientificamerican0577-119)
20. [A. J. Baranchik (1970). A Family of Minimax Estimators of the Mean of a Multivariate Normal Distribution. The Annals of Mathematical Statistics.](https://doi.org/10.1214/aoms/1177697104)
21. [William E. Strawderman (1971). Proper Bayes Minimax Estimators of the Multivariate Normal Mean. The Annals of Mathematical Statistics.](https://doi.org/10.1214/aoms/1177693528)
22. [Edward I. George (1986). Minimax Multiple Shrinkage Estimation. The Annals of Statistics.](https://doi.org/10.1214/aos/1176349849)
23. [Arthur E. Hoerl, Robert W. Kennard (1970). Ridge Regression: Biased Estimation for Nonorthogonal Problems. Technometrics.](https://doi.org/10.1080/00401706.1970.10488634)
24. [J. B. Copas (1983). Regression, Prediction and Shrinkage. Journal of the Royal Statistical Society Series B (Statistical Methodology).](https://doi.org/10.1111/j.2517-6161.1983.tb01258.x)
25. [Lawrence S. Mayer, Thomas A. Willke (1973). On Biased Estimation in Linear Models. Technometrics.](https://doi.org/10.1080/00401706.1973.10489076)
26. [R. W. Farebrother, George G. Judge, M. E. Bock (1978). The Statistical Implications of Pre-Test and Stein-Rule Estimators in Econometrics.. Journal of the Royal Statistical Society Series A (General).](https://doi.org/10.2307/2344502)
27. [Recent advances in shrinkage-based high-dimensional inference (Bodnar, Bodnar and Parolya, JMVA 2022)](https://repository.tudelft.nl/file/File_c478b3a5-0b44-4964-a970-0ef017cef231?preview=1)
28. [Maryclare Griffin, Peter D. Hoff (2023). Structured Shrinkage Priors. Journal of Computational and Graphical Statistics.](https://doi.org/10.1080/10618600.2023.2233577)
29. [Machine learning and the James–Stein estimator (Efron, JJSD 2023)](https://link.springer.com/article/10.1007/s42081-023-00209-y)
30. [On minimaxity and limit of risks ratio of James-Stein estimator under the balanced loss function](https://imi.pmf.kg.ac.rs/kjm/pub/kjom473/kjm_47_3-10.pdf)
31. [projecteuclid.org](https://projecteuclid.org/journals/statistical-science/volume-27/issue-1/Shrinkage-Estimation-in-Multilevel-Normal-Models/10.1214/11-STS363.pdf)

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

Topic: 物质世界与数学 › 数学与统计学 › 统计学与概率论 › Statistical inference, estimation, sampling, and testing › Estimation theory and estimator families › Estimation: overview

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/shrinkage-estimation

English original: https://www.edgepedia.org/shrinkage-estimation
