# James–Stein estimator

The **James–Stein estimator** is a biased estimator of the mean, [math]\displaystyle{ \boldsymbol\theta }[/math], of (possibly) correlated Gaussian distributed random variables [math]\displaystyle{ Y = \{Y_1, Y_2, ..., Y_m\} }[/math] with unknown means [math]\displaystyle{ \{\boldsymbol\theta_1, \boldsymbol\theta_2, ..., \boldsymbol\theta_m\} }[/math].

It arose sequentially in two main published papers. The earlier version of the estimator was developed in 1956,^{[1]} when Charles Stein reached a relatively shocking conclusion that while the then-usual estimate of the mean, the sample mean, is admissible when [math]\displaystyle{ m \leq 2 }[/math], it is inadmissible when [math]\displaystyle{ m \geq 3 }[/math]. Stein proposed a possible improvement to the estimator that shrinks the sample means [math]\displaystyle{ {\boldsymbol\theta_i} }[/math] towards a more central mean vector [math]\displaystyle{ \boldsymbol\nu }[/math] (which can be chosen a priori or commonly as the "average of averages" of the sample means, given all samples share the same size). This observation is commonly referred to as **Stein's example or paradox**. In 1961, Willard James and Charles Stein simplified the original process.^{[2]}

It can be shown that the James–Stein estimator dominates the "ordinary" least squares approach, meaning the James–Stein estimator has a lower or equal mean squared error than the "ordinary" least square estimator.

Similar to the Hodges' estimator, the James-Stein estimator is superefficient and non-regular at [math]\displaystyle{ \theta=0 }[/math].^{[3]}

## Setting

Let [math]\displaystyle{ {\mathbf Y} \sim N_m({\boldsymbol \theta}, \sigma^2 I),\, }[/math]where the vector [math]\displaystyle{ \boldsymbol\theta }[/math] is the unknown mean of [math]\displaystyle{ {\mathbf Y} }[/math], which is [math]\displaystyle{ m }[/math]-variate normally distributed and with known covariance matrix [math]\displaystyle{ \sigma^2 I }[/math].

We are interested in obtaining an estimate, [math]\displaystyle{ \widehat{\boldsymbol \theta} }[/math], of [math]\displaystyle{ \boldsymbol\theta }[/math], based on a single observation, [math]\displaystyle{ {\mathbf y} }[/math], of [math]\displaystyle{ {\mathbf Y} }[/math].

In real-world application, this is a common situation in which a set of parameters is sampled, and the samples are corrupted by independent Gaussian noise. Since this noise has mean of zero, it may be reasonable to use the samples themselves as an estimate of the parameters. This approach is the least squares estimator, which is [math]\displaystyle{ \widehat{\boldsymbol \theta}_{LS} = {\mathbf y} }[/math].

Stein demonstrated that in terms of mean squared error [math]\displaystyle{ \operatorname{E} \left[ \left\| {\boldsymbol \theta}-\widehat {\boldsymbol \theta} \right\|^2 \right] }[/math], the least squares estimator, [math]\displaystyle{ \widehat{\boldsymbol \theta}_{LS} }[/math], is sub-optimal to a shrinkage based estimators, such as the **James–Stein estimator**, [math]\displaystyle{
\widehat{\boldsymbol \theta}_{JS}
}[/math].^{[1]} The paradoxical result, that there is a (possibly) better and never any worse estimate of [math]\displaystyle{ \boldsymbol\theta }[/math] in mean squared error as compared to the sample mean, became known as Stein's example.

## The James–Stein estimator

If [math]\displaystyle{ \sigma^2 }[/math] is known, the James–Stein estimator is given by

- [math]\displaystyle{ \widehat{\boldsymbol \theta}_{JS} = \left( 1 - \frac{(m-2) \sigma^2}{\|{\mathbf y}\|^2} \right) {\mathbf y}. }[/math]

James and Stein showed that the above estimator dominates [math]\displaystyle{ \widehat{\boldsymbol \theta}_{LS} }[/math] for any [math]\displaystyle{ m \ge 3 }[/math], meaning that the James–Stein estimator always achieves lower mean squared error (MSE) than the maximum likelihood estimator.^{[2]}^{[4]} By definition, this makes the least squares estimator inadmissible when [math]\displaystyle{ m \ge 3 }[/math].

Notice that if [math]\displaystyle{ (m-2) \sigma^2\lt \|{\mathbf y}\|^2 }[/math] then this estimator simply takes the natural estimator [math]\displaystyle{ \mathbf y }[/math] 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 dimension [math]\displaystyle{ m }[/math]. Then there exists an estimator of the James–Stein type that shrinks toward

*, namely*

**ν**- [math]\displaystyle{ \widehat{\boldsymbol \theta}_{JS} = \left( 1 - \frac{(m-2) \sigma^2}{\|{\mathbf y} - {\boldsymbol\nu}\|^2} \right) ({\mathbf y}-{\boldsymbol\nu}) + {\boldsymbol\nu}, \qquad m\ge 3. }[/math]

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 [math]\displaystyle{ \|{\boldsymbol\theta - \boldsymbol\nu}\| }[/math] 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. Nonetheless, James and Stein's result is that*

**θ***any*finite guess

*improves the expected MSE over the maximum-likelihood estimator, which is tantamount to using an infinite*

**ν***, surely a poor guess.*

**ν**## 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 [math]\displaystyle{ \sim N(0, A) }[/math], where

*A*is estimated from the data itself. Estimating

*A*only gives an advantage compared to the maximum-likelihood estimator when the dimension [math]\displaystyle{ m }[/math] is large enough; hence it does not work for [math]\displaystyle{ m\leq 2 }[/math]. The James–Stein estimator is a member of a class of Bayesian estimators that dominate the maximum-likelihood estimator.

^{[5]}

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 squared 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.

The James–Stein estimator has also found use in fundamental quantum theory, where the estimator has been used to improve the theoretical bounds of the entropic uncertainty principle for more than three measurements.^{[6]}

An intuitive derivation and interpretation is given by the Galtonian perspective.^{[7]} Under this interpretation, we aim to predict the population means using the imperfectly measured sample means. The equation of the OLS estimator in a hypothetical regression of the population means on the sample means gives an estimator of the form of either the James–Stein estimator (when we force the OLS intercept to equal 0) or of the Efron-Morris estimator (when we allow the intercept to vary).

## Improvements

Despite the intuition that the James–Stein estimator shrinks the maximum-likelihood estimate [math]\displaystyle{ {\mathbf y} }[/math] *toward* [math]\displaystyle{ \boldsymbol\nu }[/math], the estimate actually moves *away* from [math]\displaystyle{ \boldsymbol\nu }[/math] for small values of [math]\displaystyle{ \|{\mathbf y} - {\boldsymbol\nu} \|, }[/math] as the multiplier on [math]\displaystyle{ {\mathbf y} - {\boldsymbol\nu} }[/math] is then 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

- [math]\displaystyle{ \widehat{\boldsymbol \theta}_{JS+} = \left( 1 - \frac{(m-3) \sigma^2}{\|{\mathbf y} - {\boldsymbol\nu}\|^2} \right)^+ ({\mathbf y}-{\boldsymbol\nu}) + {\boldsymbol\nu}, m \ge 4. }[/math]

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

It turns out, however, that the positive-part estimator is also inadmissible.^{[4]} 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.^{[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 [math]\displaystyle{ \sigma^2 }[/math] is unknown, by replacing it with the standard estimator of the variance, [math]\displaystyle{ \widehat{\sigma}^2 = \frac{1}{m}\sum ( y_i-\overline{y} )^2 }[/math]. The dominance result still holds under the same condition, namely, [math]\displaystyle{ m \gt 2 }[/math].
^{[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 [math]\displaystyle{ n }[/math] vectors are available, the results are similar:^{[citation needed]}

- [math]\displaystyle{ \widehat{\boldsymbol \theta}_{JS} = \left( 1 - \frac{(m-2) \frac{\sigma^2}{n}}{\|{\overline{\mathbf y}}\|^2} \right) {\overline{\mathbf y}}, }[/math]

- where [math]\displaystyle{ {\overline{\mathbf y}} }[/math] is the [math]\displaystyle{ m }[/math]-length average of the [math]\displaystyle{ n }[/math] observations.

- 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.
^{[9]}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.^{[9]} - 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.
^{[10]}It is quite difficult to obtain explicit estimators improving upon the usual estimator without specific restrictions on the underlying distributions.^{[4]}

## See also

## References

- ↑
^{1.0}^{1.1}Stein, C. (1956), "Inadmissibility of the usual estimator for the mean of a multivariate distribution",*Proc. Third Berkeley Symp. Math. Statist. Prob.*,**1**, pp. 197–206, http://projecteuclid.org/euclid.bsmsp/1200501656 - ↑
^{2.0}^{2.1}^{2.2}James, W.; Stein, C. (1961), "Estimation with quadratic loss",*Proc. Fourth Berkeley Symp. Math. Statist. Prob.*,**1**, pp. 361–379, http://projecteuclid.org/euclid.bsmsp/1200512173 - ↑ Beran, R. (1995). THE ROLE OF HAJEK’S CONVOLUTION THEOREM IN STATISTICAL THEORY
- ↑
^{4.0}^{4.1}^{4.2}Lehmann, E. L.; Casella, G. (1998),*Theory of Point Estimation*(2nd ed.), New York: Springer - ↑ Efron, B.; Morris, C. (1973). "Stein's Estimation Rule and Its Competitors—An Empirical Bayes Approach".
*Journal of the American Statistical Association*(American Statistical Association)**68**(341): 117–130. doi:10.2307/2284155. - ↑ Stander, M. (2017),
*Using Stein's estimator to correct the bound on the entropic uncertainty principle for more than two measurements*, Bibcode: 2017arXiv170202440S - ↑ Stigler, Stephen M. (1990-02-01). "The 1988 Neyman Memorial Lecture: A Galtonian Perspective on Shrinkage Estimators".
*Statistical Science***5**(1). doi:10.1214/ss/1177012274. ISSN 0883-4237. - ↑ Anderson, T. W. (1984),
*An Introduction to Multivariate Statistical Analysis*(2nd ed.), New York: John Wiley & Sons - ↑
^{9.0}^{9.1}Bock, M. E. (1975), "Minimax estimators of the mean of a multivariate normal distribution",*Annals of Statistics***3**(1): 209–218, doi:10.1214/aos/1176343009 - ↑ "On the admissibility of invariant estimators of one or more location parameters",
*Annals of Mathematical Statistics***37**(5): 1087–1136, 1966, doi:10.1214/aoms/1177699259

## Further reading

- Judge, George G.; Bock, M. E. (1978).
*The Statistical Implications of Pre-Test and Stein-Rule Estimators in Econometrics*. New York: North Holland. pp. 229–257. ISBN 0-7204-0729-X.

Original source: https://en.wikipedia.org/wiki/James–Stein estimator.
Read more |