# M-estimator

In statistics, M-estimators are a broad class of estimators, which are obtained as the minima of sums of functions of the data. Least-squares estimators are M-estimators. The definition of M-estimators was motivated by robust statistics, which contributed new types of M-estimators. The statistical procedure of evaluating an M-estimator on a data set is called M-estimation.

More generally, an M-estimator may be defined to be a zero of an estimating function.[1][2][3][4][5][6] This estimating function is often the derivative of another statistical function: For example, a maximum-likelihood estimate is often defined to be a zero of the derivative of the likelihood function with respect to the parameter: thus, a maximum-likelihood estimator is often a critical point of the score function.[7] In many applications, such M-estimators can be thought of as estimating characteristics of the population.

## Historical motivation

The method of least squares is a prototypical M-estimator, since the estimator is defined as a minimum of the sum of squares of the residuals.

Another popular M-estimator is maximum-likelihood estimation. For a family of probability density functions f parameterized by θ, a maximum likelihood estimator of θ is computed for each set of data by maximizing the likelihood function over the parameter space { θ } . When the observations are independent and identically distributed, a ML-estimate ${\displaystyle {\hat {\theta }}}$ satisfies

${\displaystyle {\widehat {\theta }}=\arg \max _{\displaystyle \theta }{\left(\prod _{i=1}^{n}f(x_{i},\theta )\right)}\,\!}$

or, equivalently,

${\displaystyle {\widehat {\theta }}=\arg \min _{\displaystyle \theta }{\left(-\sum _{i=1}^{n}\log {(f(x_{i},\theta ))}\right)}.\,\!}$

Maximum-likelihood estimators are often inefficient and biased for finite samples. For many regular problems, maximum-likelihood estimation performs well for "large samples", being an approximation of a posterior mode. If the problem is "regular", then any bias of the MLE (or posterior mode) decreases to zero when the sample-size increases to infinity. The performance of maximum-likelihood (and posterior-mode) estimators drops when the parametric family is mis-specified.

## Definition

In 1964, Peter Huber proposed generalizing maximum likelihood estimation to the minimization of

${\displaystyle \sum _{i=1}^{n}\rho (x_{i},\theta ),\,\!}$

where ρ is a function with certain properties (see below). The solutions

${\displaystyle {\hat {\theta }}=\arg \min _{\displaystyle \theta }\left(\sum _{i=1}^{n}\rho (x_{i},\theta )\right)\,\!}$

are called M-estimators ("M" for "maximum likelihood-type" (Huber, 1981, page 43)); other types of robust estimator include L-estimators, R-estimators and S-estimators. Maximum likelihood estimators (MLE) are thus a special case of M-estimators. With suitable rescaling, M-estimators are special cases of extremum estimators (in which more general functions of the observations can be used).

The function ρ, or its derivative, ψ, can be chosen in such a way to provide the estimator desirable properties (in terms of bias and efficiency) when the data are truly from the assumed distribution, and 'not bad' behaviour when the data are generated from a model that is, in some sense, close to the assumed distribution.

## Types of M-estimators

M-estimators are solutions, θ, which minimize

${\displaystyle \sum _{i=1}^{n}\rho (x_{i},\theta ).\,\!}$

This minimization can always be done directly. Often it is simpler to differentiate with respect to θ and solve for the root of the derivative. When this differentiation is possible, the M-estimator is said to be of ψ-type. Otherwise, the M-estimator is said to be of ρ-type.

In most practical cases, the M-estimators are of ψ-type.

### ρ-type

For positive integer r, let ${\displaystyle ({\mathcal {X}},\Sigma )}$ and ${\displaystyle (\Theta \subset \mathbb {R} ^{r},S)}$ be measure spaces. ${\displaystyle \theta \in \Theta }$ is a vector of parameters. An M-estimator of ρ-type T is defined through a measurable function ${\displaystyle \rho :{\mathcal {X}}\times \Theta \rightarrow \mathbb {R} }$. It maps a probability distribution F on ${\displaystyle {\mathcal {X}}}$ to the value ${\displaystyle T(F)\in \Theta }$ (if it exists) that minimizes ${\displaystyle \int _{\mathcal {X}}\rho (x,\theta )dF(x)}$:

${\displaystyle T(F):=\arg \min _{\theta \in \Theta }\int _{\mathcal {X}}\rho (x,\theta )dF(x)}$

### ψ-type

If ${\displaystyle \rho }$ is differentiable, the computation of ${\displaystyle {\widehat {\theta }}}$ is usually much easier. An M-estimator of ψ-type T is defined through a measurable function ${\displaystyle \psi :{\mathcal {X}}\times \Theta \rightarrow \mathbb {R} ^{r}}$. It maps a probability distribution F on ${\displaystyle {\mathcal {X}}}$ to the value ${\displaystyle T(F)\in \Theta }$ (if it exists) that solves the vector equation:

${\displaystyle \int _{\mathcal {X}}\psi (x,\theta )\,dF(x)=0}$
${\displaystyle \int _{\mathcal {X}}\psi (x,T(F))\,dF(x)=0}$

Such an estimator is not necessarily an M-estimator of ρ-type, but if ρ has a continuous first derivative with respect to ${\displaystyle \theta }$, then a necessary corresponding M-estimator of ψ-type to be an M-estimator of ρ-type is ${\displaystyle \psi (x,\theta )=\nabla _{\theta }\rho (x,\theta )}$. The previous definitions can easily be extended to finite samples.

If the function ψ decreases to zero as ${\displaystyle x\rightarrow \pm \infty }$, the estimator is called redescending. Such estimators have some additional desirable properties, such as complete rejection of gross outliers.

## Computation

For many choices of ρ or ψ, no closed form solution exists and an iterative approach to computation is required. It is possible to use standard function optimization algorithms, such as Newton-Raphson. However, in most cases an iteratively re-weighted least squares fitting algorithm can be performed; this is typically the preferred method.

For some choices of ψ, specifically, redescending functions, the solution may not be unique. The issue is particularly relevant in multivariate and regression problems. Thus, some care is needed to ensure that good starting points are chosen. Robust starting points, such as the median as an estimate of location and the median absolute deviation as a univariate estimate of scale, are common.

## Properties

### Distribution

It can be shown that M-estimators are asymptotically normally distributed. As such, Wald-type approaches to constructing confidence intervals and hypothesis tests can be used. However, since the theory is asymptotic, it will frequently be sensible to check the distribution, perhaps by examining the permutation or bootstrap distribution.

### Influence function

The influence function of an M-estimator of ${\displaystyle \psi }$-type is proportional to its defining ${\displaystyle \psi }$ function.

Let T be an M-estimator of ψ-type, and G be a probability distribution for which ${\displaystyle T(G)}$ is defined. Its influence function IF is

${\displaystyle \operatorname {IF} (x;T,G)=-{\frac {\psi (x,T(G))}{\int \left[{\frac {\partial \psi (y,\theta )}{\partial \theta }}\right]f(y)\mathrm {d} y}}}$

assuming the density function ${\displaystyle f(y)}$ exists. A proof of this property of M-estimators can be found in Huber (1981, Section 3.2).

## Applications

M-estimators can be constructed for location parameters and scale parameters in univariate and multivariate settings, as well as being used in robust regression.

## Examples

### Mean

Let (X1, ..., Xn) be a set of independent, identically distributed random variables, with distribution F.

If we define

${\displaystyle \rho (x,\theta )={\frac {(x-\theta )^{2}}{2}},\,\!}$

we note that this is minimized when θ is the mean of the Xs. Thus the mean is an M-estimator of ρ-type, with this ρ function.

As this ρ function is continuously differentiable in θ, the mean is thus also an M-estimator of ψ-type for ψ(x, θ) = θ − x.

## References

1. V. P. Godambe, editor. Estimating functions, volume 7 of Oxford Statistical Science Series. The Clarendon Press Oxford University Press, New York, 1991.
2. Christopher C. Heyde. Quasi-likelihood and its application: A general approach to optimal parameter estimation. Springer Series in Statistics. Springer-Verlag, New York, 1997.
3. D. L. McLeish and Christopher G. Small. The theory and applications of statistical inference functions, volume 44 of Lecture Notes in Statistics. Springer-Verlag, New York, 1988.
4. Parimal Mukhopadhyay. An Introduction to Estimating Functions. Alpha Science International, Ltd, 2004.
5. Christopher G. Small and Jinfang Wang. Numerical methods for nonlinear estimating equations, volume 29 of Oxford Statistical Science Series. The Clarendon Press Oxford University Press, New York, 2003.
6. Sara A. van de Geer. Empirical Processes in M-estimation: Applications of empirical process theory, volume 6 of Cambridge Series in Statistical and Probabilistic Mathematics. Cambridge University Press, Cambridge, 2000.
7. {{#invoke:Citation/CS1|citation |CitationClass=journal }}

• {{#invoke:citation/CS1|citation

|CitationClass=book }}

• {{#invoke:citation/CS1|citation

|CitationClass=book }}

• {{#invoke:citation/CS1|citation

|CitationClass=book }}

• {{#invoke:citation/CS1|citation

|CitationClass=book }}

• {{#invoke:citation/CS1|citation

|CitationClass=book }}

• {{#invoke:citation/CS1|citation

|CitationClass=book }}

• {{#invoke:citation/CS1|citation

|CitationClass=book }}

• {{#invoke:citation/CS1|citation

|CitationClass=citation }}

• {{#invoke:citation/CS1|citation

|CitationClass=book }}

• {{#invoke:Citation/CS1|citation

|CitationClass=journal }}

• {{#invoke:citation/CS1|citation

|CitationClass=book }}

• {{#invoke:citation/CS1|citation

|CitationClass=book }}

• {{#invoke:citation/CS1|citation

|CitationClass=book }}

• {{#invoke:citation/CS1|citation

|CitationClass=book }}