# James–Stein estimator

The **James–Stein estimator** is a biased estimator of the mean of Gaussian random vectors. It can be shown that the James–Stein estimator dominates the "ordinary" least squares approach, i.e., it has lower mean squared error on average. It is the best-known example of Stein's phenomenon.

An earlier version of the estimator was developed by Charles Stein in 1956,^{[1]}
and is sometimes referred to as **Stein's estimator**.{{ safesubst:#invoke:Unsubst||date=__DATE__ |$B=
{{#invoke:Category handler|main}}{{#invoke:Category handler|main}}^{[citation needed]}
}} The result was improved by Willard James and Charles Stein in 1961.^{[2]}

## Setting

Suppose * θ* is an unknown parameter vector of length , and let

**y**be a vector of observations (also of length ), such that the observations are normally distributed:

We are interested in obtaining an estimate of * θ*, based on a single observation vector

**y**.

This is an everyday situation in which a set of parameters is measured, and the measurements are corrupted by independent Gaussian noise. Since the noise has zero mean, it is very reasonable to use the measurements themselves as an estimate of the parameters. This is the approach of the least squares estimator, which is .

As a result, there was considerable shock and disbelief when Stein demonstrated that, in terms of mean squared error , this approach is suboptimal.^{[1]} The result became known as Stein's phenomenon.

## The James–Stein estimator

If is known, the James–Stein estimator is given by

James and Stein showed that the above estimator dominates for any , meaning that the James–Stein estimator always achieves lower MSE than the least squares estimator.^{[2]}^{[3]} By definition, this makes the least squares estimator inadmissible when .

Notice that if then this estimator simply takes the natural estimator and shrinks it towards the origin **0**. In fact this is not the only direction of shrinkage that works. Let * ν* be an arbitrary fixed vector of length . Then there exists a James–Stein estimator that shrinks toward

*, namely*

**ν**It is interesting to note that the James–Stein estimator dominates the usual estimator for any * ν*. A natural question to ask is whether the improvement over the usual estimator is independent of the choice of

*. The answer is no. The improvement is small if is large. Thus to get a very great improvement some knowledge of the location of*

**ν***is necessary. Of course this is the quantity we are trying to estimate so we don't have this knowledge a priori. But we may have some guess as to what the mean vector is. This can be considered a disadvantage of the estimator: the choice is not objective as it may depend on the beliefs of the researcher.*

**θ**## Interpretation

Seeing the James–Stein estimator as an Empirical Bayes method gives some intuition to this result: One assumes that * θ* itself is a random variable with Prior distribution , where

*A*is estimated from the data itself. Estimating

*A*only gives an advantage compared to the maximum-likelihood estimator when the dimension is large enough; hence it does not work for . The James–Stein estimator is a member of a class of Bayesian estimators that dominate the maximum-likelihood estimator.

^{[4]}

A consequence of the above discussion is the following counterintuitive result: When three or more unrelated parameters are measured, their total MSE can be reduced by using a combined estimator such as the James–Stein estimator; whereas when each parameter is estimated separately, the least squares (LS) estimator is admissible. A quirky example would be estimating the speed of light, tea consumption in Taiwan, and hog weight in Montana, all together. The James–Stein estimator always improves upon the *total* MSE, i.e., the sum of the expected errors of each component. Therefore, the total MSE in measuring light speed, tea consumption, and hog weight would improve by using the James–Stein estimator. However, any particular component (such as the speed of light) would improve for some parameter values, and deteriorate for others. Thus, although the James–Stein estimator dominates the LS estimator when three or more parameters are estimated, any single component does not dominate the respective component of the LS estimator.

The conclusion from this hypothetical example is that measurements should be combined if one is interested in minimizing their total MSE. For example, in a telecommunication setting, it is reasonable to combine channel tap measurements in a channel estimation scenario, as the goal is to minimize the total channel estimation error. Conversely, it is probably not reasonable to combine channel estimates of different users, since no user would want their channel estimate to deteriorate in order to improve the average network performance.{{ safesubst:#invoke:Unsubst||date=__DATE__ |$B=
{{#invoke:Category handler|main}}{{#invoke:Category handler|main}}^{[citation needed]}
}}

## Improvements

The basic James–Stein estimator has the peculiar property that for small values of the multiplier on is actually negative. This can be easily remedied by replacing this multiplier by zero when it is negative. The resulting estimator is called the *positive-part James–Stein estimator* and is given by

This estimator has a smaller risk than the basic James–Stein estimator. It follows that the basic James–Stein estimator is itself inadmissible.^{[5]}

It turns out, however, that the positive-part estimator is also inadmissible.^{[3]} This follows from a general result which requires admissible estimators to be smooth.

## Extensions

The James–Stein estimator may seem at first sight to be a result of some peculiarity of the problem setting. In fact, the estimator exemplifies a very wide-ranging effect, namely, the fact that the "ordinary" or least squares estimator is often inadmissible for simultaneous estimation of several parameters.{{ safesubst:#invoke:Unsubst||date=__DATE__ |$B=
{{#invoke:Category handler|main}}{{#invoke:Category handler|main}}^{[citation needed]}
}} This effect has been called Stein's phenomenon, and has been demonstrated for several different problem settings, some of which are briefly outlined below.

- James and Stein demonstrated that the estimator presented above can still be used when the variance is unknown, by replacing it with the standard estimator of the variance, . The dominance result still holds under the same condition, namely, .
^{[2]} - The results in this article are for the case when only a single observation vector
**y**is available. For the more general case when vectors are available, the results are similar:{{ safesubst:#invoke:Unsubst||date=__DATE__ |$B=

{{#invoke:Category handler|main}}{{#invoke:Category handler|main}}^{[citation needed]}
}}

- The work of James and Stein has been extended to the case of a general measurement covariance matrix, i.e., where measurements may be statistically dependent and may have differing variances.
^{[6]}A similar dominating estimator can be constructed, with a suitably generalized dominance condition. This can be used to construct a linear regression technique which outperforms the standard application of the LS estimator.^{[6]} - Stein's result has been extended to a wide class of distributions and loss functions. However, this theory provides only an existence result, in that explicit dominating estimators were not actually exhibited.
^{[7]}It is quite difficult to obtain explicit estimators improving upon the usual estimator without specific restrictions on the underlying distributions.^{[3]}

## See also

## References

- ↑
^{1.0}^{1.1}{{#invoke:citation/CS1|citation |CitationClass=citation }} - ↑
^{2.0}^{2.1}^{2.2}{{#invoke:citation/CS1|citation |CitationClass=citation }} - ↑
^{3.0}^{3.1}^{3.2}{{#invoke:citation/CS1|citation |CitationClass=citation }} - ↑ Template:Cite doi
- ↑ {{#invoke:citation/CS1|citation |CitationClass=citation }}
- ↑
^{6.0}^{6.1}{{#invoke:citation/CS1|citation |CitationClass=citation }} - ↑ {{#invoke:citation/CS1|citation |CitationClass=citation }}