# M估计

M估计是一类统计估计量，通过最小化（或最大化）在数据上求值的某个目标函数之和来定义，它推广了最大似然估计和最小二乘估计，使得在存在离群值和重尾误差时仍能稳健地估计参数。位置参数T的M估计量最小化 \( \sum_{i} \rho(x_{i} - T) \)；选择 \( \rho(t) = t^{2} \) 得到样本均值，\( \rho(t) = |t| \) 得到样本中位数，\( \rho(t) = -\log f(t) \) 得到密度f的最大似然估计量。<sup>[1](https://doi.org/10.1214/aoms/1177703732)</sup> 前缀“M”代表“类最大似然”。<sup>[2](https://lbelzile.bitbucket.io/notes/MATH441-Robust_and_Nonparametric_Statistics.pdf)</sup> 在计量经济学中，同样的构造——最小化样本平均 \( S_{n}(\theta) = (1/n) \sum \rho(Y_{i}, X_{i}, \theta) \)——被称为m估计量，普通最小二乘和最大似然是其特例。<sup>[3](https://www.huhuaping.com/projects/hansenEM/chapters_eng/chpt22-m-est.html)</sup>

| 关键事实 | 值 |
|---|---|
| 定义问题 | 最小化 \( \sum_{i} \rho(x_{i} - T) \)；\( \rho = |t| \) 为中位数，\( \rho = -\log f \) 为最大似然估计<sup>[1](https://doi.org/10.1214/aoms/1177703732)</sup> |
| 提出者 | Peter J. Huber，《位置参数的稳健估计》，The Annals of Mathematical Statistics，1964年<sup>[1](https://doi.org/10.1214/aoms/1177703732)</sup> |
| 标准调优 | Huber \( k = 1.345 \) 和 Tukey 双平方 \( c = 4.685 \) 在正态误差下给出95%效率<sup>[4](https://www.john-fox.ca/Companion/appendices/Appendix-Robust-Regression.pdf)</sup> |
| 崩溃点（位置） | 对于有界、单调、对称的 \( \psi \) 为 \( \lfloor(n+1)/2 \rfloor/n \)（渐近为1/2）<sup>[5](https://people.math.ethz.ch/~stahel/hampel/HamFHR11.pdf)</sup> |
| 崩溃点（回归） | 报告为0（在 \( x \) 中影响无界）<sup>[6](https://encyclopediaofmath.org/wiki/M-estimator)</sup> 或在其他叙述中为 \( 1/n \) 到 \( 1/p \)<sup>[7](https://faculty.ucr.edu/~weixiny/material/yu&yao17article%20cissc-Robust%20linear%20regression%20A%20review%20and%20comparison.pdf)</sup> |
| 稳健尺度 | MAD除以0.6745，或Huber的提议2联合重估计<sup>[8](https://ethz.ch/content/dam/ethz/special-interest/math/statistics/sfs/Education/Advanced_Studies/course-material-1921/Robust/robstat20E.pdf)</sup> |
| 渐近协方差 | 三明治形式 \( V = Q^{-1} \Omega Q^{-1} \)<sup>[3](https://www.huhuaping.com/projects/hansenEM/chapters_eng/chpt22-m-est.html)</sup> |

## 工作原理

如果 \( \rho \) 可微且导数为 \( \psi \)，则最小化解满足估计方程 \( \sum_{i} \psi(x_{i} - T) = 0 \)。<sup>[6](https://encyclopediaofmath.org/wiki/M-estimator)</sup> \( \psi \) 的形状控制稳健性。Huber的 \( \psi_{k}(x) = \max\{-k, \min\{x, k\}\} \) 是线性且有界的：当 \( |x| \le k \) 时等于 \( x \)，超出时被截断在 \( \pm k \)。<sup>[9](https://mdpi-res.com/d_attachment/mathematics/mathematics-09-00105/article_deploy/mathematics-09-00105-v2.pdf?version=1610004177)</sup> Huber在1964年证明，这个 \( \psi \) 是他的最不利分布——Fisher信息最小的对称污染正态分布——的最大似然得分，因此所得估计量在正态分布的 \( \varepsilon \) 污染邻域内具有极小极大渐近方差。<sup>[5](https://people.math.ethz.ch/~stahel/hampel/HamFHR11.pdf)</sup><sup> • </sup><sup>[10](https://www.jstage.jst.go.jp/article/jjscs1988/18/1/18_1_47/_pdf)</sup> 当 \( \varepsilon \to 1 \) 时，极小极大估计量趋于样本中位数；当界放松时，它趋于均值。<sup>[6](https://encyclopediaofmath.org/wiki/M-estimator)</sup><sup> • </sup><sup>[9](https://mdpi-res.com/d_attachment/mathematics/mathematics-09-00105/article_deploy/mathematics-09-00105-v2.pdf?version=1610004177)</sup>

三个稳健性量概括了其行为。M估计量的影响函数与其 \( \psi \) 函数成正比，\( \mathrm{IF}(x) = \psi(x)/B(\psi, f) \)，因此有界的 \( \psi \) 限制了单个观测的影响。<sup>[11](https://infoscience.epfl.ch/server/api/core/bitstreams/982f0e82-170a-4bc3-9148-7d69c07a2274/content)</sup> 总误差敏感度 \( \gamma^{*} = \mathrm{GES}(T) = \lim_{\varepsilon \to 0} B_T(\varepsilon)/\varepsilon = B_T'(0) \) 衡量最大偏差函数的局部增长。<sup>[12](https://www.sciencedirect.com/science/article/abs/pii/S0167715298002922)</sup> 崩溃点是估计量能容忍的污染比例；对于位置参数中有界、单调、对称的 \( \psi \)，在通常的有限样本约定下为 \( \lfloor(n+1)/2 \rfloor/n \)，渐近值为1/2，这是可能的最大值。<sup>[5](https://people.math.ethz.ch/~stahel/hampel/HamFHR11.pdf)</sup><sup> • </sup><sup>[6](https://encyclopediaofmath.org/wiki/M-estimator)</sup> 渐近地，M估计量是一致且正态的，方差为 \( V(\psi, f) = A(\psi, f)/B^{2}(\psi, f) \)。<sup>[11](https://infoscience.epfl.ch/server/api/core/bitstreams/982f0e82-170a-4bc3-9148-7d69c07a2274/content)</sup>

## 如何实施

实践者选择 \( \rho \) 或 \( \psi \) 以及调优常数，通常是在高斯模型下给出95%效率的值：Huber的 \( k = 1.345 \)，Tukey双平方的 \( c = 4.685 \)。<sup>[4](https://www.john-fox.ca/Companion/appendices/Appendix-Robust-Regression.pdf)</sup> 由于M估计量不具有尺度不变性，残差必须除以稳健尺度估计，通常是 \( s_{\mathrm{MAD}} = \mathrm{median}|x_{i} - \mathrm{med}|/0.6745 \)，它对正态标准差是一致的。<sup>[8](https://ethz.ch/content/dam/ethz/special-interest/math/statistics/sfs/Education/Advanced_Studies/course-material-1921/Robust/robstat20E.pdf)</sup> 在每次迭代时重新估计尺度被称为Huber的提议2。<sup>[8](https://ethz.ch/content/dam/ethz/special-interest/math/statistics/sfs/Education/Advanced_Studies/course-material-1921/Robust/robstat20E.pdf)</sup>

在回归中，估计方程 \( \sum \psi(y_{i} - x_{i}' \cdot b)\, x_{i} = 0 \) 通过迭代重加权最小二乘求解，标准化残差 \( u_{i} = e_{i}/\hat{\sigma} \) 和权重 \( w_{i} = \psi(u_{i})/u_{i} \) 在每次迭代中重新计算，更新为 \( \hat{\beta} = (X' \cdot W \cdot X)^{-1} X' \cdot W \cdot y \)。<sup>[4](https://www.john-fox.ca/Companion/appendices/Appendix-Robust-Regression.pdf)</sup><sup> • </sup><sup>[13](https://seehuhn.github.io/MATH3714/S18-m-est.html)</sup> 标准误来自三明治协方差 \( \hat{V} = \hat{Q}^{-1}\hat{\Omega}\hat{Q}^{-1} \)，其中 \( \hat{\Omega} = (1/n) \sum \psi_{i} \cdot \psi_{i}' \)，\( \hat{Q} \) 来自二阶导数；即使对于似然模型，也推荐使用稳健三明治形式而非逆Hessian形式。<sup>[3](https://www.huhuaping.com/projects/hansenEM/chapters_eng/chpt22-m-est.html)</sup> 对于一般误差分布，一个经验法则将Huber常数设为 \( k = 1.345 \cdot \mathrm{MAD}/0.6745 \)，由LAD残差计算。<sup>[14](https://www.mdpi.com/2227-7390/14/7/1138)</sup>

## 起源

该方法由Peter J. Huber在《位置参数的稳健估计》（The Annals of Mathematical Statistics，1964年）中引入。<sup>[1](https://doi.org/10.1214/aoms/1177703732)</sup> 动机问题是稳健性：在污染正态模型 \( F = (1-\varepsilon)\Phi + \varepsilon H \) 下，样本均值可能表现极差，看似温和的偏差会使其方差爆炸。<sup>[1](https://doi.org/10.1214/aoms/1177703732)</sup> Huber还证明，当假设模型只是近似为真时，最大似然最优性甚至不是近似为真的，他将这种形式的估计量命名为M估计量。<sup>[11](https://infoscience.epfl.ch/server/api/core/bitstreams/982f0e82-170a-4bc3-9148-7d69c07a2274/content)</sup> Frank R. Hampel 1974年发表在JASA的论文《影响曲线及其在稳健估计中的作用》提供了影响函数的形式化，使局部稳健性可度量。<sup>[15](https://doi.org/10.1080/01621459.1974.10482962)</sup> Huber于1973年在《稳健回归：渐近理论、猜想与蒙特卡洛》中将估计量扩展到回归<sup>[16](https://doi.org/10.1214/aos/1176342503)</sup>，Ricardo Antonio Maronna于1976年发展了位置和散布的多元M估计量。<sup>[17](https://doi.org/10.1214/aos/1176343347)</sup>

## 变体

主要的位置估计量在其 \( \psi \) 函数上不同。Huber得分是线性且有界的；LAD估计量使用 \( \rho(t) = |t| \)；Tukey双平方和Hampel三段得分是再下降的，即当 \( |u| \to \infty \) 时 \( \psi(u) \to 0 \)，对大的残差给予零权重。<sup>[13](https://seehuhn.github.io/MATH3714/S18-m-est.html)</sup> 在标准正态下达到95%渐近效率的调优常数包括 \( k = 1.345 \)（Huber）、\( c = 1.3998 \)（Fair）、\( c = 2.3849 \)（Cauchy）、\( c = 4.6851 \)（Tukey双权重）和 \( c = 2.9846 \)（Welsch）。<sup>[18](http://www-sop.inria.fr/odyssee/software/old%5Frobotvis/Tutorial-Estim/node24.html)</sup> 再下降估计量是唯一具有有限方差敏感度 \( \mathrm{VS}(\psi, f) = \int (\mathrm{IF})^{2} dx \) 的估计量；均值、截尾均值和Huber估计量都具有无限方差敏感度。<sup>[11](https://infoscience.epfl.ch/server/api/core/bitstreams/982f0e82-170a-4bc3-9148-7d69c07a2274/content)</sup>

对于回归，Mallows型和Schweppe型广义M估计量降低高杠杆点的权重，但无法区分好杠杆点和坏杠杆点，牺牲了效率。<sup>[7](https://faculty.ucr.edu/~weixiny/material/yu&yao17article%20cissc-Robust%20linear%20regression%20A%20review%20and%20comparison.pdf)</sup> Victor J. Yohai 1987年发表在Annals的论文引入了MM估计量，通过三阶段程序在正态误差下同时达到0.5的崩溃点和高效率：一致的高崩溃点初始估计、从其残差得到的误差尺度M估计、以及使用再下降 \( \psi \) 的回归M估计。<sup>[19](https://doi.org/10.1214/aos/1176350366)</sup> Yohai和Ruben H. Zamar 1988年发表在JASA的论文引入了tau估计，通过最小化应用于残差的新尺度估计 \( \tau \) 来定义，结合了相同的两个性质。<sup>[20](https://doi.org/10.1080/01621459.1988.10478611)</sup>

## 应用

通过M估计的稳健回归是统计软件中的标准功能：R的MASS包中的rlm拟合Huber M估计量，method = 'MM'给出双平方MM估计，SAS PROC ROBUSTREG提供十种权重函数（Andrews、Bisquare、Cauchy、Fair、Hampel、Huber、Logistic、Median、Talworth、Welsch），默认设置为95%高斯效率。<sup>[4](https://www.john-fox.ca/Companion/appendices/Appendix-Robust-Regression.pdf)</sup><sup> • </sup><sup>[21](https://go.documentation.sas.com/api/docsets/statug/v_023/content/statug_rreg_details01.htm)</sup> 在计量经济学中，带三明治协方差的m估计量是最小二乘稳健推断的基础。<sup>[3](https://www.huhuaping.com/projects/hansenEM/chapters_eng/chpt22-m-est.html)</sup> 在计算机视觉中，M估计量在几何拟合问题中用增长较慢的函数替代平方残差，通过IRLS实现。<sup>[18](http://www-sop.inria.fr/odyssee/software/old%5Frobotvis/Tutorial-Estim/node24.html)</sup> 在现代机器学习和高维统计中，自适应Huber估计量让调优参数 \( \tau \) 随样本量发散，即使对于仅具有有限二阶矩的重尾误差，也能使偏差的尾概率达到亚高斯界。<sup>[22](https://pmc.ncbi.nlm.nih.gov/articles/PMC6133288/)</sup> 2026年JASA的一篇论文在对抗性污染下为Welsch M估计量建立了非渐近极小极大最优偏差界，在存在大离群值时具有改进的无偏性。<sup>[23](https://www.tandfonline.com/doi/full/10.1080/01621459.2026.2723310)</sup>

## 局限与替代方案

主要失效模式是杠杆。M估计能抵抗异常的y观测，但其在位置 \( x_{0} \) 的影响是无界的，因此单个离群的 \( x_{j} \) 几乎完全决定拟合；《数学百科全书》给出回归崩溃值为0，<sup>[6](https://encyclopediaofmath.org/wiki/M-estimator)</sup> 而比较综述报告为 \( 1/n \)，或对于 \( p \) 个预测变量为 \( 1/p \)，对于较大的p这非常小。<sup>[7](https://faculty.ucr.edu/~weixiny/material/yu&yao17article%20cissc-Robust%20linear%20regression%20A%20review%20and%20comparison.pdf)</sup><sup> • </sup><sup>[24](https://www.stat.tugraz.at/AJS/ausg121/121Filzmoser.pdf)</sup> 即使崩溃点名义上为 \( 1/2 \)，在高维中估计量可能在远低于50%的污染水平下崩溃，除非更改默认参数。<sup>[24](https://www.stat.tugraz.at/AJS/ausg121/121Filzmoser.pdf)</sup> 非凸 \( \rho \) 函数（Cauchy、Geman-McClure、Tukey双权重）减少大幅粗差的影响，但不保证唯一解；Huber提出的一个补救方法是先用凸 \( \rho \) 迭代至收敛，然后用非凸 \( \rho \) 进行几次迭代。<sup>[18](http://www-sop.inria.fr/odyssee/software/old%5Frobotvis/Tutorial-Estim/node24.html)</sup> 2024年JSTAT的一篇论文给出了M估计量在协变量和响应重尾污染下的尖锐渐近刻画，包括二阶及更高阶矩不存在的情况，并表明尽管Huber损失在最优调优位置参数 \( \delta \) 下是一致的，但在重尾噪声下的高维情形中是次优的。<sup>[25](https://google.iopscience.iop.org/article/10.1088/1742-5468/ad65e6)</sup> 2026年的一篇论文证明了Huber回归相对于OLS的渐近相对效率在所有连续对称误差分布上一致地具有严格正下界，而分位数回归的相应下界等于零。<sup>[14](https://www.mdpi.com/2227-7390/14/7/1138)</sup>

在替代方案中，S估计在正态误差下达到0.5的崩溃点和0.29的渐近效率。<sup>[7](https://faculty.ucr.edu/~weixiny/material/yu&yao17article%20cissc-Robust%20linear%20regression%20A%20review%20and%20comparison.pdf)</sup> MM估计量保留了S初始估计的高崩溃点和M估计量在正态下的效率。<sup>[4](https://www.john-fox.ca/Companion/appendices/Appendix-Robust-Regression.pdf)</sup> 对于L1估计量，崩溃点给出为 \( 1 - 1/\sqrt{2} \approx 0.29 \)，<sup>[4](https://www.john-fox.ca/Companion/appendices/Appendix-Robust-Regression.pdf)</sup> 或由于x空间离群值而为 \( 1/n \)。<sup>[13](https://seehuhn.github.io/MATH3714/S18-m-est.html)</sup> 在实践中，M估计量比L估计量和R估计量更受青睐，因为它们的形状由函数固定，其稳健性质可以先验确定。<sup>[26](http://www2.peq.coppe.ufrj.br/Pessoal/Professores/Arge/COQ897/DiegoMenezes_etal_2021.pdf)</sup>

## References

1. [Peter J. Huber (1964). Robust Estimation of a Location Parameter. The Annals of Mathematical Statistics.](https://doi.org/10.1214/aoms/1177703732)
2. [MATH 441 – Robust and Nonparametric Statistics (course notes, based on Huber & Ronchetti 2009)](https://lbelzile.bitbucket.io/notes/MATH441-Robust_and_Nonparametric_Statistics.pdf)
3. [Chapter 22: M-Estimators – Hansen Econometrics](https://www.huhuaping.com/projects/hansenEM/chapters_eng/chpt22-m-est.html)
4. [Robust Regression in R (Fox & Weisberg, appendix to An R Companion to Applied Regression)](https://www.john-fox.ca/Companion/appendices/Appendix-Robust-Regression.pdf)
5. [A smoothing principle for the Huber and other location M-estimators (Computational Statistics and Data Analysis, 2011)](https://people.math.ethz.ch/~stahel/hampel/HamFHR11.pdf)
6. [M-estimator (Encyclopedia of Mathematics)](https://encyclopediaofmath.org/wiki/M-estimator)
7. [Robust linear regression: A review and comparison (Yu & Yao, Communications in Statistics, Simulation and Computation, 2017)](https://faculty.ucr.edu/~weixiny/material/yu&yao17article%20cissc-Robust%20linear%20regression%20A%20review%20and%20comparison.pdf)
8. [Robust Fitting of Parametric Models Based on M-Estimation (ETH Zurich course material)](https://ethz.ch/content/dam/ethz/special-interest/math/statistics/sfs/Education/Advanced_Studies/course-material-1921/Robust/robstat20E.pdf)
9. [Highly Efficient Robust and Stable M-Estimates of Location (Shevlyakov et al., Mathematics 9:105, 2021)](https://mdpi-res.com/d_attachment/mathematics/mathematics-09-00105/article_deploy/mathematics-09-00105-v2.pdf?version=1610004177)
10. [Asymptotic efficiencies of M-, R-estimators and the sample mean (J. Jpn. Statist. Comput. Statist.)](https://www.jstage.jst.go.jp/article/jjscs1988/18/1/18_1_47/_pdf)
11. [Optimal redescending M-estimators (EPFL-hosted paper)](https://infoscience.epfl.ch/server/api/core/bitstreams/982f0e82-170a-4bc3-9148-7d69c07a2274/content)
12. [Global robustness of location and dispersion estimates (relative explosion rate)](https://www.sciencedirect.com/science/article/abs/pii/S0167715298002922)
13. [Section 18 M-Estimators | MATH3714 Linear Regression and Robustness](https://seehuhn.github.io/MATH3714/S18-m-est.html)
14. [Lower Bounds for the Asymptotic Relative Efficiency of Huber Regression](https://www.mdpi.com/2227-7390/14/7/1138)
15. [Frank R. Hampel (1974). The Influence Curve and its Role in Robust Estimation. Journal of the American Statistical Association.](https://doi.org/10.1080/01621459.1974.10482962)
16. [Peter J. Huber (1973). Robust Regression: Asymptotics, Conjectures and Monte Carlo. The Annals of Statistics.](https://doi.org/10.1214/aos/1176342503)
17. [Ricardo Antonio Maronna (1976). Robust $M$-Estimators of Multivariate Location and Scatter. The Annals of Statistics.](https://doi.org/10.1214/aos/1176343347)
18. [M-estimators (Zhang, INRIA tutorial on estimation in computer vision)](http://www-sop.inria.fr/odyssee/software/old%5Frobotvis/Tutorial-Estim/node24.html)
19. [Victor J. Yohai (1987). High Breakdown-Point and High Efficiency Robust Estimates for Regression. The Annals of Statistics.](https://doi.org/10.1214/aos/1176350366)
20. [Victor J. Yohai, Ruben H. Zamar (1988). High Breakdown-Point Estimates of Regression by Means of the Minimization of an Efficient Scale. Journal of the American Statistical Association.](https://doi.org/10.1080/01621459.1988.10478611)
21. [SAS/STAT PROC ROBUSTREG: M Estimation (official documentation)](https://go.documentation.sas.com/api/docsets/statug/v_023/content/statug_rreg_details01.htm)
22. [A new perspective on robust M-estimation: finite sample theory and applications to dependence-adjusted multiple testing (Annals of Statistics)](https://pmc.ncbi.nlm.nih.gov/articles/PMC6133288/)
23. [Robust Regression under Adversarial Contamination: Theory and Algorithms for the Welsch Estimator (JASA, 2026)](https://www.tandfonline.com/doi/full/10.1080/01621459.2026.2723310)
24. [Computing Robust Regression Estimators: Developments since Dutter (1977) (Filzmoser et al., Austrian Journal of Statistics)](https://www.stat.tugraz.at/AJS/ausg121/121Filzmoser.pdf)
25. [High-dimensional robust regression under heavy-tailed data: asymptotics and universality (JSTAT, 2024)](https://google.iopscience.iop.org/article/10.1088/1742-5468/ad65e6)
26. [A review on robust M-estimators for regression analysis (Menezes et al., 2021)](http://www2.peq.coppe.ufrj.br/Pessoal/Professores/Arge/COQ897/DiegoMenezes_etal_2021.pdf)

---
*Initially written Sep 29, 2026 · Edited: Oct 15, 2026; Oct 21, 2026*

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

Copyright 2026 Edgepedia

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

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

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