# 收缩估计量

收缩估计量是一种统计估计量，它有意将普通估计——例如最大似然估计或最小二乘估计——拉向某个中心值，如零或总均值。由此增加的偏差被接受，以换取方差更大幅度的下降，从而使总均方误差降低。在正态均值问题中，这种效应是戏剧性的，而非微不足道的：在三维或更高维下，样本均值向量在平方误差损失下不可容许，而一个显式的收缩规则对每个参数值都具有更低的风险。<sup>[1](https://doi.org/10.1525/9780520313880-018)</sup>,<sup>[2](https://link.springer.com/article/10.1007/s42081-023-00209-y)</sup> 这一结果被称为斯坦（Stein）悖论，使收缩成为统计学和机器学习中的常备工具。

| 事实 | 陈述 |
|---|---|
| 詹姆斯–斯坦（James–Stein）估计量 | \( \delta_{\mathrm{JS}}(X) = \left(1 - \frac{p-2}{\|X\|^2}\right) \cdot X \) <sup>[3](https://ar5iv.labs.arxiv.org/html/math/0701206)</sup> |
| 样本均值的可容许性 | 对 \( p = 1, 2 \) 可容许；对 \( p \geq 3 \) 不可容许 <sup>[3](https://ar5iv.labs.arxiv.org/html/math/0701206)</sup>,<sup>[4](https://pages.stat.wisc.edu/~shao/stat710/stat710-04.pdf)</sup> |
| 詹姆斯–斯坦风险 | \( d - (d-2)^2 E\left[1/\|X\|^2\right] \)，严格低于样本均值的常数风险 \( d \)，且在 \( \theta = 0 \) 时等于 2 <sup>[5](https://stat210a.berkeley.edu/fall-2024/reader/jamesstein.html)</sup> |
| 目标处的相对增益 | 在收缩目标 \( \theta = c \) 处，风险比 \( p/2 \) 有利于收缩估计量 <sup>[4](https://pages.stat.wisc.edu/~shao/stat710/stat710-04.pdf)</sup> |
| 算例风险，\( N = 20 \), \( A = 1 \) | 詹姆斯–斯坦 11.5，真实贝叶斯 10，最大似然估计 20 <sup>[6](https://utstat.toronto.edu/reid/sta2212s/2021/EHChapter7.pdf)</sup> |
| 1970 年棒球数据 | 对 18 名有 45 个打数的球员，均方误差不到样本均值的一半 <sup>[7](https://www.jhanley.biostat.mcgill.ca/bios602/MultilevelData/EfronMorrisJASA1975.pdf)</sup> |
| 经验贝叶斯形式 | \( \hat{\mu}_i = \bar{x} + \left(1 - \frac{(N-3)\sigma_0^2}{S}\right)(x_i - \bar{x}) \)，适用于 \( N \geq 4 \) <sup>[8](https://www.efron.ckirby.su.domains/papers/2021EB-concepts-methods.pdf)</sup> |

## 工作原理

对于线性收缩估计量 \( \delta_{\zeta}(X) = (1 - \zeta) \cdot X \)，均方误差分解为 \( \mathrm{MSE}(\theta; \delta) = \zeta^2 \|\theta\|^2 + d \cdot (1-\zeta)^2 \)：第一项是偏差平方，第二项是方差，因此收缩以偏差换取方差。最优常数为 \( \zeta^{*} = d/(d + \|\theta\|^2) \)，它依赖于未知的 \( \theta \)，必须从数据中估计。<sup>[5](https://stat210a.berkeley.edu/fall-2024/reader/jamesstein.html)</sup>

斯坦恒等式使这一点无需知道 \( \theta \) 即可实现。对于 \( X \sim N(\mu, \sigma^2) \) 和适当可微的 \( g \)，有 \( E[g(X)(X - \mu)] = \sigma^2 E[g'(X)] \)。<sup>[9](https://www2.stat.duke.edu/~pdh10/Teaching/732/Notes/shrinkage.pdf)</sup> 将其应用于可微估计量 \( h \)，可得到风险的无偏估计：\( \widehat{\mathrm{MSE}} = \sigma^2 d + \|h(X)\|^2 - 2\sigma^2 \mathrm{tr}(Dh(X)) \)。<sup>[5](https://stat210a.berkeley.edu/fall-2024/reader/jamesstein.html)</sup> 对詹姆斯–斯坦规则，风险算得为 \( d - (d-2)^2 E[1/\|X\|^2] \)，严格小于 \( d \)，而 \( p - (p-2)^2/(X \cdot X) \) 是它的无偏估计。<sup>[5](https://stat210a.berkeley.edu/fall-2024/reader/jamesstein.html)</sup>,<sup>[9](https://www2.stat.duke.edu/~pdh10/Teaching/732/Notes/shrinkage.pdf)</sup>

经验贝叶斯路径得到同一规则。在正态-正态模型下，贝叶斯估计量用未知因子 \( 1/(1+\tau^2) \) 收缩每个观测；用基于数据的估计 \( (k-2)/S \) 替代它，便产生詹姆斯–斯坦规则 <sup>[7](https://www.jhanley.biostat.mcgill.ca/bios602/MultilevelData/EfronMorrisJASA1975.pdf)</sup>，而 \( \hat{B} = 1 - (n-2)/S \) 是贝叶斯收缩因子 \( B = A/(A+1) \) 的无偏估计。<sup>[2](https://link.springer.com/article/10.1007/s42081-023-00209-y)</sup> 该校正使用 \( k-2 \) 而非 \( k \)，因为数据中的抽样误差与收缩比例本身的抽样误差相关。<sup>[10](https://www.rasmusen.org/papers/shrinkage-rasmusen.pdf)</sup>

## 实施步骤

1. 提出正态均值问题：在平方误差损失下，\( X \sim N_p(\theta, I_p) \)，其中 \( p \geq 3 \)。
2. 计算 \( S = \sum_{i=1}^{p} x_i^2 \)。
3. 将每个分量乘以收缩因子 \( 1 - (p-2)/S \)。<sup>[3](https://ar5iv.labs.arxiv.org/html/math/0701206)</sup>
4. 用正部进行截断，\( \delta_{\mathrm{JS}}^{+}(X) = \max\left(0,\, 1 - (p-2)/\|X\|^2\right) \cdot X \)，因为大于 1 的收缩参数从无帮助，而负因子会过度收缩越过零。<sup>[3](https://ar5iv.labs.arxiv.org/html/math/0701206)</sup>,<sup>[5](https://stat210a.berkeley.edu/fall-2024/reader/jamesstein.html)</sup>
5. 若要向样本总均值而非原点收缩，将 \( p-2 \) 替换为 \( p-3 \)，这要求 \( p \geq 4 \) <sup>[4](https://pages.stat.wisc.edu/~shao/stat710/stat710-04.pdf)</sup>；由此得到经验贝叶斯形式 \( \hat{\mu}_i = \bar{x} + (1 - (N-3)\sigma_0^2/S)(x_i - \bar{x}) \)。<sup>[8](https://www.efron.ckirby.su.domains/papers/2021EB-concepts-methods.pdf)</sup>
6. 当方差未知时，使用 \( \hat{\theta}_{\mathrm{JS}} = (1 - a_0/W) \cdot X \)，其中 \( a_0 = (p-2)/(n+2) \)、\( W = X^2/S \)，它在 \( p \geq 3 \) 时优于通常估计量。<sup>[11](https://www.jstage.jst.go.jp/article/jjss/39/2/39_2_155/_pdf/-char/en)</sup>

## 起源

查尔斯·斯坦（Charles Stein）在 1956 年证明，多元正态均值的通常估计量可容许当且仅当 \( p \leq 2 \) <sup>[1](https://doi.org/10.1525/9780520313880-018)</sup>,<sup>[3](https://ar5iv.labs.arxiv.org/html/math/0701206)</sup>；这一结果令人惊讶，因为样本均值既是最大似然估计量，又是一致最小方差无偏估计量。<sup>[9](https://www2.stat.duke.edu/~pdh10/Teaching/732/Notes/shrinkage.pdf)</sup><sup> • </sup><sup>[2](https://link.springer.com/article/10.1007/s42081-023-00209-y)</sup> 巴兰奇克（Baranchik）在 1964 年指出了正部改进。<sup>[12](https://projecteuclid.org/journalArticle/Download?urlId=10.1214%2F10-STS319)</sup> 20 世纪 70 年代初，埃夫龙（Efron）和莫里斯（Morris）将问题重新表述在经验贝叶斯框架中。<sup>[13](https://doi.org/10.1080/01621459.1973.10481350)</sup> 詹姆斯–斯坦估计量本身也是不可容许的：存在可容许的收缩估计量 <sup>[4](https://pages.stat.wisc.edu/~shao/stat710/stat710-04.pdf)</sup>；正部形式不是解析的，因此不满足布朗（Brown）完全类定理；而一个优于它的估计量直到 30 年后才由邵（Shao）和斯特劳德曼（Strawderman）找到。<sup>[3](https://ar5iv.labs.arxiv.org/html/math/0701206)</sup>,<sup>[12](https://projecteuclid.org/journalArticle/Download?urlId=10.1214%2F10-STS319)</sup>

## 变体

**正部与限制平移。** 正部形式是对原规则负收缩因子的标准修正。<sup>[3](https://ar5iv.labs.arxiv.org/html/math/0701206)</sup> 限制平移估计保护异常个体情形免受重度收缩，同时只损失约 10% 的詹姆斯–斯坦总体优势。<sup>[14](https://utstat.toronto.edu/reid/sta2212s/2021/LSIChapter1.pdf)</sup>

**正则化回归。** 岭回归由霍尔（Hoerl）和肯纳德（Kennard）于 1970 年引入统计学，形式为 \( \hat{\beta}(\lambda) = (S + \lambda I)^{-1} X' \cdot y \)，此前在数值分析中称为吉洪诺夫（Tikhonov）正则化；它是普通最小二乘的收缩版本。<sup>[6](https://utstat.toronto.edu/reid/sta2212s/2021/EHChapter7.pdf)</sup>,<sup>[15](https://doi.org/10.1080/00401706.1970.10488634)</sup> 套索（lasso）是蒂布希拉尼（Tibshirani）1996 年的方法，施加极端收缩，将一些、且往往是大多数系数估计一直拉到零。<sup>[2](https://link.springer.com/article/10.1007/s42081-023-00209-y)</sup>,<sup>[16](https://doi.org/10.1111/j.2517-6161.1996.tb02080.x)</sup>

**现代自适应形式。** 无偏风险估计（URE）收缩估计量在渐近意义下最优，且无需假设先验分布，也无需假设组均值与样本量不相关。<sup>[17](https://pmc.ncbi.nlm.nih.gov/articles/PMC4816092/)</sup> 预测驱动自适应收缩（Prediction-Powered Adaptive Shrinkage；李（Li）和伊格纳蒂亚迪斯（Ignatiadis），2025，arXiv）在每个任务内对含噪机器学习预测去偏，并在任务间向这些相同预测收缩，通过无偏风险最小化并采用渐近最优调参来选择收缩量。<sup>[18](https://doi.org/10.48550/arxiv.2502.14166)</sup>,<sup>[19](https://proceedings.mlr.press/v267/li25ak.html)</sup>

## 应用

**体育。** 在 1970 年棒球例子中，18 名球员基于前 45 个打数的击球率向均值收缩了 78%。一种叙述报告詹姆斯–斯坦规则将预测误差缩小为原来的三分之一以下 <sup>[8](https://www.efron.ckirby.su.domains/papers/2021EB-concepts-methods.pdf)</sup>，而 1975 年的分析报告均方误差不到样本均值的一半 <sup>[7](https://www.jhanley.biostat.mcgill.ca/bios602/MultilevelData/EfronMorrisJASA1975.pdf)</sup>；同一例子的两种已发表表述在幅度上不同，但都表明增益很大。

**小区域估计。** 一种经验贝叶斯程序在约 15,000 个美国地理区域（每个区域人口少于 500 人）的人均收入的小区域样本估计与回归估计之间折中，用于一般收入分享目的。<sup>[20](https://doi.org/10.1080/01621459.1983.10477920)</sup>

**基因组学与置信区间。** 在一项前列腺癌微阵列分析中，采用五参数逻辑斯蒂先验的特威迪（Tweedie）经验贝叶斯估计将 \( E\{\mu \mid x = 4\} \) 的估计从最大似然估计值 4 收缩到 2.555，对零效应基因，\( \mu = 0 \) 的后验概率为 0.825。<sup>[2](https://link.springer.com/article/10.1007/s42081-023-00209-y)</sup> 莫里斯（Morris）1983 年的参数经验贝叶斯框架在等方差情形下为每个分量产生了比标准置信区间更短的置信区间。<sup>[20](https://doi.org/10.1080/01621459.1983.10477920)</sup>

## 局限与替代方案

**收缩何时有害。** 詹姆斯–斯坦估计量不能推广到异质未知方差，在那种情形下，即使 \( k \geq 3 \)，样本均值在某些情况下也会胜过它。<sup>[10](https://www.rasmusen.org/papers/shrinkage-rasmusen.pdf)</sup> 当 \( \|x\|^2 < p-2 \) 时，普通估计量会过度收缩，并改变 \( X \) 每个分量的符号。<sup>[3](https://ar5iv.labs.arxiv.org/html/math/0701206)</sup> 这些规则既不是贝叶斯的，也不是可容许的，因此可以找到在所有参数值下都优于它们的估计量，尽管优势不大。<sup>[7](https://www.jhanley.biostat.mcgill.ca/bios602/MultilevelData/EfronMorrisJASA1975.pdf)</sup> 斯坦估计量长期缺乏公认的误差度量或相应的置信区间，这削弱了其实用性。<sup>[20](https://doi.org/10.1080/01621459.1983.10477920)</sup> 当经典经验贝叶斯假设不成立时，例如正态先验，或组均值与样本量不相关，URE 收缩估计量仍具竞争力，而经典经验贝叶斯则不然。<sup>[17](https://pmc.ncbi.nlm.nih.gov/articles/PMC4816092/)</sup>

**替代方案。** 具有正常先验的唯一贝叶斯估计量是可容许的；在正态均值问题中，可容许线性估计量恰好是向猜测值 \( \mu_0 \) 收缩的线性收缩估计量。<sup>[9](https://www2.stat.duke.edu/~pdh10/Teaching/732/Notes/shrinkage.pdf)</sup> 预检验估计量是子模型估计与全模型估计的线性组合，在稀疏回归中处理偏差-方差权衡。<sup>[21](https://link.springer.com/article/10.1007/s00180-026-01728-4)</sup> 将最大似然估计量向非线性限制子空间收缩，可达到一个渐近局部极小极大效率界；只要收缩维数超过二，最大似然估计就达不到该界。<sup>[22](https://users.ssc.wisc.edu/~behansen/papers/joe_16.pdf)</sup>

## References

1. [Charles Stein (1956). INADMISSIBILITY OF THE USUAL ESTIMATOR FOR THE MEAN OF A MULTIVARIATE NORMAL DISTRIBUTION. .](https://doi.org/10.1525/9780520313880-018)
2. [Machine learning and the James–Stein estimator (Efron, Japanese Journal of Statistics and Data Science, 2023)](https://link.springer.com/article/10.1007/s42081-023-00209-y)
3. [Some notes on improving upon the James-Stein estimator](https://ar5iv.labs.arxiv.org/html/math/0701206)
4. [Stat 710: Mathematical Statistics, Lectures 4/5 (UW–Madison, Jun Shao)](https://pages.stat.wisc.edu/~shao/stat710/stat710-04.pdf)
5. [The James-Stein Estimator (UC Berkeley Stat 210A course reader)](https://stat210a.berkeley.edu/fall-2024/reader/jamesstein.html)
6. [Efron & Hastie, Computer Age Statistical Inference, Chapter 7: James–Stein Estimation and Ridge Regression](https://utstat.toronto.edu/reid/sta2212s/2021/EHChapter7.pdf)
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. [Shrinkage and empirical Bayes (Duke Stat 732 course notes)](https://www2.stat.duke.edu/~pdh10/Teaching/732/Notes/shrinkage.pdf)
10. [Understanding Shrinkage Estimators: From Zero to Oracle to James-Stein (Rasmusen, working paper)](https://www.rasmusen.org/papers/shrinkage-rasmusen.pdf)
11. [Integral inequality for minimaxity in the Stein problem (Journal of the Japan Statistical Society)](https://www.jstage.jst.go.jp/article/jjss/39/2/39_2_155/_pdf/-char/en)
12. [Confidence intervals and the Stein effect (review, Statistical Science)](https://projecteuclid.org/journalArticle/Download?urlId=10.1214%2F10-STS319)
13. [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)
14. [Large-Scale Inference, Chapter 1: Empirical Bayes and the James–Stein Estimator (Efron)](https://utstat.toronto.edu/reid/sta2212s/2021/LSIChapter1.pdf)
15. [Arthur E. Hoerl, Robert W. Kennard (1970). Ridge Regression: Biased Estimation for Nonorthogonal Problems. Technometrics.](https://doi.org/10.1080/00401706.1970.10488634)
16. [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)
17. [Optimal Shrinkage Estimation of Mean Parameters in Family of Distributions with Quadratic Variance Function (Xie, Kou, Brown et al.)](https://pmc.ncbi.nlm.nih.gov/articles/PMC4816092/)
18. [Li, Sida, Ignatiadis, Nikolaos (2025). Prediction-Powered Adaptive Shrinkage Estimation. arXiv (Cornell University).](https://doi.org/10.48550/arxiv.2502.14166)
19. [Prediction-Powered Adaptive Shrinkage Estimation (Li & Ignatiadis, ICML 2025, PMLR)](https://proceedings.mlr.press/v267/li25ak.html)
20. [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)
21. [One-shot distributed shrinkage estimation in sparse linear regression models (Computational Statistics, 2026)](https://link.springer.com/article/10.1007/s00180-026-01728-4)
22. [Efficient shrinkage in parametric models (Journal of Econometrics, Hansen)](https://users.ssc.wisc.edu/~behansen/papers/joe_16.pdf)

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

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

Copyright 2026 Edgepedia

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

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

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