Mean squared error
In statistics, the mean squared error or MSE of an estimator is the expected value of the square of the "error." The error is the amount by which the estimator differs from the quantity to be estimated. The difference occurs because of randomness or because the estimator doesn't account for information that could produce a more accurate estimate.
Definition and basic properties
The MSE of an estimator <math>\hat{\theta}</math> with respect to the estimated parameter <math>\theta</math> is defined as
- <math>\operatorname{MSE}(\hat{\theta})=\operatorname{E}((\hat{\theta}-\theta)^2).</math>
It can be shown that the MSE is the sum of the variance and the square of bias of the estimator
- <math>\operatorname{MSE}(\hat{\theta})=\operatorname{Var}\left(\hat{\theta}\right)+ \left(\operatorname{Bias}(\hat{\theta},\theta)\right)^2.</math>
In that sense, the MSE assesses the quality of the estimator in terms of its variation and unbiasedness. Note that the MSE is not equivalent to the expected value of the absolute error.
The root mean squared error (RMSE) (or root mean squared deviation (RMSD)) is then simply defined as the square root of the MSE.
- <math>\operatorname{RMSE}(\hat{\theta}) = \sqrt{\operatorname{MSE}(\hat{\theta})}.</math>
The defined MSE (as well as the RMSE) is a random variable, that needs to be estimated itself. This is usually done by the sample mean
- <math>\operatorname{\widehat{MSE}}(\hat{\theta}) = \frac{1}{n} \sum_{j=1}^n \left(\theta_j-\theta\right)^2</math>
with <math>\theta_j</math> being realizations of the estimator <math>\hat{\theta}</math> of size <math>n</math>.
Examples
Suppose we have a random sample of size n from a normally distributed population, <math>X_1,\dots,X_n\sim\operatorname{N}(\mu,\sigma^2)</math>.
Some commonly-used estimators of the true parameters of the population, μ and σ2, are:
| True value | Estimator | Mean squared error |
|---|---|---|
| θ = μ | <math>\hat{\theta}</math> = the unbiased estimator of the sample mean, <math>\overline{X}=\frac{1}{n}\sum_{i=1}^n(X_i)</math> | <math>\operatorname{MSE}(\overline{X})=\operatorname{E}((\overline{X}-\mu)^2)=\left(\frac{\sigma}{\sqrt{n}}\right)^2</math> |
| θ = σ2 | <math>\hat{\theta}</math> = the unbiased estimator of the sample variance, <math>S^2 = \frac{1}{n-1}\sum_{i=1}^n\left(X_i-\overline{X}\,\right)^2</math> | <math>\operatorname{MSE}(S^2)=\operatorname{E}((S^2-\sigma^2)^2)=\operatorname{var}(S^2)</math> |
Notice how these examples also illustrate one facet of the bias-variance decomposition. The MSE of unbiased estimators are just their variance. The MSE of a biased estimator would have a non-zero bias term as well as a variance term. Note that the estimator that minimizes the MSE is not necessarily unbiased; it could compensate for the bias with a smaller variance. In the example above, a biased estimator for the variance, <math>S^2 = \frac{1}{n}\sum_{i=1}^n\left(X_i-\overline{X}\,\right)^2</math>, actually has a smaller mean squared error than the formula given, despite being biased by <math>- \frac{1}{n} \sigma^2</math>.
Interpretation
An MSE of zero, meaning that the estimator <math>\hat{\theta}</math> predicts observations of the parameter <math>\theta</math> with perfect accuracy, is the ideal and forms the basis for the least squares method of regression analysis.
While particular values of MSE other than zero are meaningless in and of themselves, they may be used for comparative purposes. Two or more statistical models may be compared using their MSEs as a measure of how well they explain a given set of observations: The unbiased model with the smallest MSE is generally interpreted as best explaining the variability in the observations.
Both Analysis of Variance and Linear Regression techniques estimate MSE as part of the analysis and use the estimated MSE to determine the statistical significance of the factors or predictors under study. The goal of Design of Experiments is to construct experiments in such a way that when the observations are analyzed, the MSE is close to zero relative to the magnitude of at least one of the estimated treatment effects.
MSE is also used in several stepwise regression techniques as part of the determination as to how many predictors from a candidate set to include in a model for a given set of observations.
Applications
- In statistical modelling, the MSE is defined as the difference between the actual observations and the response predicted by the model and is used to determine whether the model does not fit the data or whether the model can be simplified by removing terms.
- In Bioinformatics, the RMSD is the measure of the average distance between the backbones of superimposed proteins.
- In GIS, the RMSE is one measure used to assess the accuracy of spatial analysis and remote sensing.
- In Imaging Science, the RMSD is one measure used to assess how well a method to reconstruct an image performs relative to the original image.
See also
Table of Contents In Alphabetical Order | By Individual Diseases | Signs and Symptoms | Physical Examination | Lab Tests | Drugs
Editor Tools Become an Editor | Editors Help Menu | Create a Page | Edit a Page | Upload a Picture or File | Printable version | Permanent link | Maintain Pages | What Pages Link HereThere is no pharmaceutical or device industry support for this site and we need your viewer supported Donations | Editorial Board | Governance | Licensing | Disclaimers | Avoid Plagiarism | Policies