HOME

TheInfoList



OR:

In
statistics Statistics (from German language, German: ', "description of a State (polity), state, a country") is the discipline that concerns the collection, organization, analysis, interpretation, and presentation of data. In applying statistics to a s ...
, the mean squared error (MSE) or mean squared deviation (MSD) of an
estimator In statistics, an estimator is a rule for calculating an estimate of a given quantity based on Sample (statistics), observed data: thus the rule (the estimator), the quantity of interest (the estimand) and its result (the estimate) are distinguish ...
(of a procedure for estimating an unobserved quantity) measures the
average In colloquial, ordinary language, an average is a single number or value that best represents a set of data. The type of average taken as most typically representative of a list of numbers is the arithmetic mean the sum of the numbers divided by ...
of the squares of the errors—that is, the average squared difference between the estimated values and the
true value The True Value Company is an American wholesaler and Hardware store brand. The corporate headquarters are located in Chicago. Historically True Value was a cooperative owned by retailers, but in 2018 it was purchased by ACON Investments. In Oc ...
. MSE is a
risk function In mathematical optimization and decision theory, a loss function or cost function (sometimes also called an error function) is a function that maps an event or values of one or more variables onto a real number intuitively representing some "cost ...
, corresponding to the
expected value In probability theory, the expected value (also called expectation, expectancy, expectation operator, mathematical expectation, mean, expectation value, or first Moment (mathematics), moment) is a generalization of the weighted average. Informa ...
of the squared error loss. The fact that MSE is almost always strictly positive (and not zero) is because of
randomness In common usage, randomness is the apparent or actual lack of definite pattern or predictability in information. A random sequence of events, symbols or steps often has no order and does not follow an intelligible pattern or combination. ...
or because the estimator does not account for information that could produce a more accurate estimate. In
machine learning Machine learning (ML) is a field of study in artificial intelligence concerned with the development and study of Computational statistics, statistical algorithms that can learn from data and generalise to unseen data, and thus perform Task ( ...
, specifically
empirical risk minimization In statistical learning theory, the principle of empirical risk minimization defines a family of learning algorithms based on evaluating performance over a known and fixed dataset. The core idea is based on an application of the law of large num ...
, MSE may refer to the ''empirical'' risk (the average loss on an observed data set), as an estimate of the true MSE (the true risk: the average loss on the actual population distribution). The MSE is a measure of the quality of an estimator. As it is derived from the square of
Euclidean distance In mathematics, the Euclidean distance between two points in Euclidean space is the length of the line segment between them. It can be calculated from the Cartesian coordinates of the points using the Pythagorean theorem, and therefore is o ...
, it is always a positive value that decreases as the error approaches zero. The MSE is the second moment (about the origin) of the error, and thus incorporates both the
variance In probability theory and statistics, variance is the expected value of the squared deviation from the mean of a random variable. The standard deviation (SD) is obtained as the square root of the variance. Variance is a measure of dispersion ...
of the estimator (how widely spread the estimates are from one data sample to another) and its
bias Bias is a disproportionate weight ''in favor of'' or ''against'' an idea or thing, usually in a way that is inaccurate, closed-minded, prejudicial, or unfair. Biases can be innate or learned. People may develop biases for or against an individ ...
(how far off the average estimated value is from the true value). For an
unbiased estimator In statistics, the bias of an estimator (or bias function) is the difference between this estimator's expected value and the true value of the parameter being estimated. An estimator or decision rule with zero bias is called ''unbiased''. In stat ...
, the MSE is the variance of the estimator. Like the variance, MSE has the same units of measurement as the square of the quantity being estimated. In an analogy to
standard deviation In statistics, the standard deviation is a measure of the amount of variation of the values of a variable about its Expected value, mean. A low standard Deviation (statistics), deviation indicates that the values tend to be close to the mean ( ...
, taking the square root of MSE yields the ''root-mean-square error'' or ''
root-mean-square deviation The root mean square deviation (RMSD) or root mean square error (RMSE) is either one of two closely related and frequently used measures of the differences between true or predicted values on the one hand and observed values or an estimator on th ...
'' (RMSE or RMSD), which has the same units as the quantity being estimated; for an unbiased estimator, the RMSE is the square root of the
variance In probability theory and statistics, variance is the expected value of the squared deviation from the mean of a random variable. The standard deviation (SD) is obtained as the square root of the variance. Variance is a measure of dispersion ...
, known as the
standard error The standard error (SE) of a statistic (usually an estimator of a parameter, like the average or mean) is the standard deviation of its sampling distribution or an estimate of that standard deviation. In other words, it is the standard deviati ...
.


Definition and basic properties

The MSE either assesses the quality of a '' predictor'' (i.e., a function mapping arbitrary inputs to a sample of values of some
random variable A random variable (also called random quantity, aleatory variable, or stochastic variable) is a Mathematics, mathematical formalization of a quantity or object which depends on randomness, random events. The term 'random variable' in its mathema ...
), or of an ''
estimator In statistics, an estimator is a rule for calculating an estimate of a given quantity based on Sample (statistics), observed data: thus the rule (the estimator), the quantity of interest (the estimand) and its result (the estimate) are distinguish ...
'' (i.e., a
mathematical function In mathematics, a function from a set (mathematics), set to a set assigns to each element of exactly one element of .; the words ''map'', ''mapping'', ''transformation'', ''correspondence'', and ''operator'' are sometimes used synonymously. ...
mapping a sample of data to an estimate of a
parameter A parameter (), generally, is any characteristic that can help in defining or classifying a particular system (meaning an event, project, object, situation, etc.). That is, a parameter is an element of a system that is useful, or critical, when ...
of the
population Population is a set of humans or other organisms in a given region or area. Governments conduct a census to quantify the resident population size within a given jurisdiction. The term is also applied to non-human animals, microorganisms, and pl ...
from which the data is sampled). In the context of prediction, understanding the
prediction interval In statistical inference, specifically predictive inference, a prediction interval is an estimate of an interval (statistics), interval in which a future observation will fall, with a certain probability, given what has already been observed. Pr ...
can also be useful as it provides a range within which a future observation will fall, with a certain probability. The definition of an MSE differs according to whether one is describing a predictor or an estimator.


Predictor

If a vector of n predictions is generated from a sample of n data points on all variables, and Y is the vector of observed values of the variable being predicted, with \hat being the predicted values (e.g. as from a least-squares fit), then the within-sample MSE of the predictor is computed as :\operatorname=\frac \sum_^n \left(Y_i-\hat\right)^2 In other words, the MSE is the ''mean'' \left(\frac \sum_^n \right) of the ''squares of the errors'' \left(Y_i-\hat\right)^2. This is an easily computable quantity for a particular sample (and hence is sample-dependent). In
matrix Matrix (: matrices or matrixes) or MATRIX may refer to: Science and mathematics * Matrix (mathematics), a rectangular array of numbers, symbols or expressions * Matrix (logic), part of a formula in prenex normal form * Matrix (biology), the m ...
notation, :\operatorname=\frac\sum_^n(e_i)^2=\frac\mathbf e^\mathsf T \mathbf e where e_i is (Y_i-\hat) and \mathbf e is a n \times 1 column vector. The MSE can also be computed on ''q ''data points that were not used in estimating the model, either because they were held back for this purpose, or because these data have been newly obtained. Within this process, known as cross-validation, the MSE is often called the
test MSE Test(s), testing, or TEST may refer to: * Test (assessment), an educational assessment intended to measure the respondents' knowledge or other abilities Arts and entertainment * ''Test'' (2013 film), an American film * ''Test'' (2014 film) ...
, and is computed as :\operatorname = \frac \sum_^ \left(Y_i-\hat\right)^2


Estimator

The MSE of an estimator \hat with respect to an unknown parameter \theta is defined as :\operatorname(\hat)=\operatorname_\left \hat-\theta)^2\right This definition depends on the unknown parameter, therefore the MSE is a ''priori property'' of an estimator. The MSE could be a function of unknown parameters, in which case any ''estimator'' of the MSE based on estimates of these parameters would be a function of the data (and thus a random variable). If the estimator \hat is derived as a sample statistic and is used to estimate some population parameter, then the expectation is with respect to the
sampling distribution In statistics, a sampling distribution or finite-sample distribution is the probability distribution of a given random-sample-based statistic. For an arbitrarily large number of samples where each sample, involving multiple observations (data poi ...
of the sample statistic. The MSE can be written as the sum of the
variance In probability theory and statistics, variance is the expected value of the squared deviation from the mean of a random variable. The standard deviation (SD) is obtained as the square root of the variance. Variance is a measure of dispersion ...
of the estimator and the squared
bias Bias is a disproportionate weight ''in favor of'' or ''against'' an idea or thing, usually in a way that is inaccurate, closed-minded, prejudicial, or unfair. Biases can be innate or learned. People may develop biases for or against an individ ...
of the estimator, providing a useful way to calculate the MSE and implying that in the case of unbiased estimators, the MSE and variance are equivalent. :\operatorname(\hat)=\operatorname_(\hat)+ \operatorname(\hat,\theta)^2.


Proof of variance and bias relationship

\begin \operatorname(\hat) &= \operatorname_\theta \left \hat-\theta)^2 \right \\ &= \operatorname_\theta\left left(\hat-\operatorname_\theta [\hat\theta\operatorname_\theta[\hat\theta">hat\theta.html" ;"title="left(\hat-\operatorname_\theta [\hat\theta">left(\hat-\operatorname_\theta [\hat\theta\operatorname_\theta[\hat\theta\theta\right)^2\right]\\ &= \operatorname_\theta\left left(\hat-\operatorname_\theta[\hat\thetaright)^2 +2\left (\hat-\operatorname_\theta hat\theta\right ) \left (\operatorname_\theta hat\theta\theta \right )+\left( \operatorname_\theta hat\theta\theta \right)^2\right] \\ &= \operatorname_\theta\left left(\hat-\operatorname_\theta[\hat\thetaright)^2\right">hat\theta.html" ;"title="left(\hat-\operatorname_\theta[\hat\theta">left(\hat-\operatorname_\theta[\hat\thetaright)^2\right\operatorname_\theta\left[2 \left (\hat-\operatorname_\theta hat\theta\right ) \left (\operatorname_\theta hat\theta\theta \right ) \right] + \operatorname_\theta\left [ \left(\operatorname_\theta hat\theta\theta\right)^2 \right] \\ &= \operatorname_\theta\left left(\hat-\operatorname_\theta[\hat\thetaright)^2\right">hat\theta.html" ;"title="left(\hat-\operatorname_\theta[\hat\theta">left(\hat-\operatorname_\theta[\hat\thetaright)^2\right 2 \left(\operatorname_\theta hat\theta\theta\right) \operatorname_\theta\left[\hat-\operatorname_\theta hat\theta\right] + \left(\operatorname_\theta hat\theta\theta\right)^2 && \operatorname_\theta hat\theta\theta = \text \\ &= \operatorname_\theta\left left(\hat-\operatorname_\theta[\hat\thetaright)^2\right">hat\theta.html" ;"title="left(\hat-\operatorname_\theta[\hat\theta">left(\hat-\operatorname_\theta[\hat\thetaright)^2\right 2 \left(\operatorname_\theta hat\theta\theta\right) \left ( \operatorname_\theta
hat A hat is a Headgear, head covering which is worn for various reasons, including protection against weather conditions, ceremonial reasons such as university graduation, religious reasons, safety, or as a fashion accessory. Hats which incorpor ...
\operatorname_\theta hat\theta\right )+ \left(\operatorname_\theta hat\theta\theta\right)^2 && \operatorname_\theta hat\theta= \text \\ &= \operatorname_\theta\left left(\hat\theta-\operatorname_\theta[\hat\thetaright)^2\right">hat\theta.html" ;"title="left(\hat\theta-\operatorname_\theta[\hat\theta">left(\hat\theta-\operatorname_\theta[\hat\thetaright)^2\right\left(\operatorname_\theta hat\theta\theta\right)^2\\ &= \operatorname_\theta(\hat\theta)+ \operatorname_\theta(\hat\theta,\theta)^2 \end An even shorter proof can be achieved using the well-known formula that for a random variable X, \mathbb(X^2) = \operatorname(X) + (\mathbb(X))^2. By substituting X with, \hat\theta-\theta, we have :\begin \operatorname(\hat) &= \mathbb[(\hat\theta-\theta)^2] \\ &= \operatorname(\hat - \theta) + (\mathbb[\hat\theta - \theta])^2 \\ &= \operatorname(\hat\theta) + \operatorname^2(\hat\theta,\theta) \end But in real modeling case, MSE could be described as the addition of model variance, model bias, and irreducible uncertainty (see
Bias–variance tradeoff In statistics and machine learning, the bias–variance tradeoff describes the relationship between a model's complexity, the accuracy of its predictions, and how well it can make predictions on previously unseen data that were not used to train ...
). According to the relationship, the MSE of the estimators could be simply used for the
efficiency Efficiency is the often measurable ability to avoid making mistakes or wasting materials, energy, efforts, money, and time while performing a task. In a more general sense, it is the ability to do things well, successfully, and without waste. ...
comparison, which includes the information of estimator variance and bias. This is called MSE criterion.


In regression

In regression analysis, plotting is a more natural way to view the overall trend of the whole data. The mean of the distance from each point to the predicted regression model can be calculated, and shown as the mean squared error. The squaring is critical to reduce the complexity with negative signs. To minimize MSE, the model could be more accurate, which would mean the model is closer to actual data. One example of a linear regression using this method is the least squares method—which evaluates appropriateness of linear regression model to model bivariate dataset, but whose limitation is related to known distribution of the data. The term ''mean squared error'' is sometimes used to refer to the unbiased estimate of error variance: the residual sum of squares divided by the number of
degrees of freedom In many scientific fields, the degrees of freedom of a system is the number of parameters of the system that may vary independently. For example, a point in the plane has two degrees of freedom for translation: its two coordinates; a non-infinite ...
. This definition for a known, computed quantity differs from the above definition for the computed MSE of a predictor, in that a different denominator is used. The denominator is the sample size reduced by the number of model parameters estimated from the same data, (''n''−''p'') for ''p''
regressor A variable is considered dependent if it depends on (or is hypothesized to depend on) an independent variable. Dependent variables are studied under the supposition or demand that they depend, by some law or rule (e.g., by a mathematical function ...
s or (''n''−''p''−1) if an intercept is used (see
errors and residuals in statistics In statistics and optimization, errors and residuals are two closely related and easily confused measures of the deviation of an observed value of an element of a statistical sample from its "true value" (not necessarily observable). The erro ...
for more details). Although the MSE (as defined in this article) is not an unbiased estimator of the error variance, it is
consistent In deductive logic, a consistent theory is one that does not lead to a logical contradiction. A theory T is consistent if there is no formula \varphi such that both \varphi and its negation \lnot\varphi are elements of the set of consequences ...
, given the consistency of the predictor. In regression analysis, "mean squared error", often referred to as mean squared prediction error or "out-of-sample mean squared error", can also refer to the mean value of the
squared deviations A square is a regular quadrilateral with four equal sides and four right angles. Square or Squares may also refer to: Mathematics and science *Square (algebra), multiplying a number or expression by itself *Square (cipher), a cryptographic block ...
of the predictions from the true values, over an out-of-sample test space, generated by a model estimated over a particular sample space. This also is a known, computed quantity, and it varies by sample and by out-of-sample test space. In the context of
gradient descent Gradient descent is a method for unconstrained mathematical optimization. It is a first-order iterative algorithm for minimizing a differentiable multivariate function. The idea is to take repeated steps in the opposite direction of the gradi ...
algorithms, it is common to introduce a factor of 1/2 to the MSE for ease of computation after taking the derivative. So a value which is technically half the mean of squared errors may be called the MSE.


Examples


Mean

Suppose we have a random sample of size n from a population, X_1,\dots,X_n. Suppose the sample units were chosen with replacement. That is, the n units are selected one at a time, and previously selected units are still eligible for selection for all n draws. The usual estimator for the population mean \mu is the sample average :\overline=\frac\sum_^n X_i which has an expected value equal to the true mean \mu (so it is unbiased) and a mean squared error of :\operatorname\left(\overline\right)=\operatorname\left left(\overline-\mu\right)^2\right\left(\frac\sigma\right)^2= \frac where \sigma^2 is the population variance. For a
Gaussian distribution In probability theory and statistics, a normal distribution or Gaussian distribution is a type of continuous probability distribution for a real number, real-valued random variable. The general form of its probability density function is f(x ...
this is the best unbiased estimator of the population mean, that is the one with the lowest MSE (and hence variance) among all unbiased estimators. One can check that the MSE above equals the inverse of the
Fisher information In mathematical statistics, the Fisher information is a way of measuring the amount of information that an observable random variable ''X'' carries about an unknown parameter ''θ'' of a distribution that models ''X''. Formally, it is the variance ...
(see
Cramér–Rao bound In estimation theory and statistics, the Cramér–Rao bound (CRB) relates to estimation of a deterministic (fixed, though unknown) parameter. The result is named in honor of Harald Cramér and Calyampudi Radhakrishna Rao, but has also been d ...
). But the same sample mean is not the best estimator of the population mean, say, for a uniform distribution.


Variance

The usual estimator for the variance is the ''corrected
sample variance In probability theory and statistics, variance is the expected value of the squared deviation from the mean of a random variable. The standard deviation (SD) is obtained as the square root of the variance. Variance is a measure of dispersion, ...
:'' :S^2_ = \frac\sum_^n\left(X_i-\overline \right)^2 =\frac\left(\sum_^n X_i^2-n\overline^2\right). This is unbiased (its expected value is \sigma^2), hence also called the ''unbiased sample variance,'' and its MSE is :\operatorname(S^2_)= \frac \left(\mu_4-\frac\sigma^4\right) =\frac \left(\gamma_2+\frac\right)\sigma^4, where \mu_4 is the fourth
central moment In probability theory and statistics, a central moment is a moment of a probability distribution of a random variable about the random variable's mean; that is, it is the expected value of a specified integer power of the deviation of the random ...
of the distribution or population, and \gamma_2=\mu_4/\sigma^4-3 is the
excess kurtosis In probability theory and statistics, kurtosis (from , ''kyrtos'' or ''kurtos'', meaning "curved, arching") refers to the degree of “tailedness” in the probability distribution of a real-valued random variable. Similar to skewness, kurtosi ...
. However, one can use other estimators for \sigma^2 which are proportional to S^2_, and an appropriate choice can always give a lower mean squared error. If we define :S^2_a = \fracS^2_= \frac\sum_^n\left(X_i-\overline\,\right)^2 then we calculate: :\begin \operatorname(S^2_a) &=\operatorname\left left(\frac S^2_-\sigma^2\right)^2 \right\\ &= \operatorname\left \frac S^4_ -2 \left ( \frac S^2_ \right ) \sigma^2 + \sigma^4 \right \\ &= \frac \operatorname\left S^4_ \right - 2 \left ( \frac\right ) \operatorname\left S^2_ \right \sigma^2 + \sigma^4 \\ &= \frac \operatorname\left S^4_ \right - 2 \left ( \frac\right ) \sigma^4 + \sigma^4 && \operatorname\left S^2_ \right = \sigma^2 \\ &= \frac \left ( \frac + \frac \right ) \sigma^4- 2 \left ( \frac\right ) \sigma^4+\sigma^4 && \operatorname\left S^4_ \right = \operatorname(S^2_) + \sigma^4 \\ &=\frac \left ((n-1)\gamma_2+n^2+n \right ) \sigma^4- 2 \left ( \frac\right ) \sigma^4+\sigma^4 \end This is minimized when :a=\frac = n+1+\frac\gamma_2. For a
Gaussian distribution In probability theory and statistics, a normal distribution or Gaussian distribution is a type of continuous probability distribution for a real number, real-valued random variable. The general form of its probability density function is f(x ...
, where \gamma_2=0, this means that the MSE is minimized when dividing the sum by a=n+1. The minimum excess kurtosis is \gamma_2=-2, which is achieved by a
Bernoulli distribution In probability theory and statistics, the Bernoulli distribution, named after Swiss mathematician Jacob Bernoulli, is the discrete probability distribution of a random variable which takes the value 1 with probability p and the value 0 with pro ...
with ''p'' = 1/2 (a coin flip), and the MSE is minimized for a=n-1+\tfrac. Hence regardless of the kurtosis, we get a "better" estimate (in the sense of having a lower MSE) by scaling down the unbiased estimator a little bit; this is a simple example of a shrinkage estimator: one "shrinks" the estimator towards zero (scales down the unbiased estimator). Further, while the corrected sample variance is the best unbiased estimator (minimum mean squared error among unbiased estimators) of variance for Gaussian distributions, if the distribution is not Gaussian, then even among unbiased estimators, the best unbiased estimator of the variance may not be S^2_.


Gaussian distribution

The following table gives several estimators of the true parameters of the population, μ and σ2, for the Gaussian case.


Interpretation

An MSE of zero, meaning that the estimator \hat predicts observations of the parameter \theta with perfect accuracy, is ideal (but typically not possible). Values of MSE may be used for comparative purposes. Two or more
statistical model A statistical model is a mathematical model that embodies a set of statistical assumptions concerning the generation of Sample (statistics), sample data (and similar data from a larger Statistical population, population). A statistical model repre ...
s may be compared using their MSEs—as a measure of how well they explain a given set of observations: An unbiased estimator (estimated from a statistical model) with the smallest variance among all unbiased estimators is the ''best unbiased estimator'' or MVUE (
Minimum-Variance Unbiased Estimator In statistics a minimum-variance unbiased estimator (MVUE) or uniformly minimum-variance unbiased estimator (UMVUE) is an unbiased estimator that has lower variance than any other unbiased estimator for all possible values of the parameter. For pra ...
). Both
analysis of variance Analysis of variance (ANOVA) is a family of statistical methods used to compare the Mean, means of two or more groups by analyzing variance. Specifically, ANOVA compares the amount of variation ''between'' the group means to the amount of variati ...
and
linear regression In statistics, linear regression is a statistical model, model that estimates the relationship between a Scalar (mathematics), scalar response (dependent variable) and one or more explanatory variables (regressor or independent variable). A mode ...
techniques estimate the MSE as part of the analysis and use the estimated MSE to determine the
statistical significance In statistical hypothesis testing, a result has statistical significance when a result at least as "extreme" would be very infrequent if the null hypothesis were true. More precisely, a study's defined significance level, denoted by \alpha, is the ...
of the factors or predictors under study. The goal of
experimental design The design of experiments (DOE), also known as experiment design or experimental design, is the design of any task that aims to describe and explain the variation of information under conditions that are hypothesized to reflect the variation. ...
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. In
one-way analysis of variance In statistics, one-way analysis of variance (or one-way ANOVA) is a technique to compare whether two or more samples' means are significantly different (using the F distribution). This analysis of variance technique requires a numeric Dependent and ...
, MSE can be calculated by the division of the sum of squared errors and the degree of freedom. Also, the f-value is the ratio of the mean squared treatment and the MSE. MSE is also used in several
stepwise regression In statistics, stepwise regression is a method of fitting regression models in which the choice of predictive variables is carried out by an automatic procedure. In each step, a variable is considered for addition to or subtraction from the set of ...
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

Minimizing MSE is a key criterion in selecting estimators; see minimum mean-square error. Among unbiased estimators, minimizing the MSE is equivalent to minimizing the variance, and the estimator that does this is the minimum variance unbiased estimator. However, a biased estimator may have lower MSE; see estimator bias. In statistical modelling the MSE can represent the difference between the actual observations and the observation values predicted by the model. In this context, it is used to determine the extent to which the model fits the data as well as whether removing some explanatory variables is possible without significantly harming the model's predictive ability. In
forecasting Forecasting is the process of making predictions based on past and present data. Later these can be compared with what actually happens. For example, a company might Estimation, estimate their revenue in the next year, then compare it against the ...
and
prediction A prediction (Latin ''præ-'', "before," and ''dictum'', "something said") or forecast is a statement about a future event or about future data. Predictions are often, but not always, based upon experience or knowledge of forecasters. There ...
, the
Brier score The Brier score is a strictly proper scoring rule that measures the accuracy of probabilistic predictions. For unidimensional predictions, it is strictly equivalent to the mean squared error as applied to predicted probabilities. The Brier score ...
is a measure of forecast skill based on MSE.


Loss function

Squared error loss is one of the most widely used
loss function In mathematical optimization and decision theory, a loss function or cost function (sometimes also called an error function) is a function that maps an event or values of one or more variables onto a real number intuitively representing some "cost ...
s in statistics, though its widespread use stems more from mathematical convenience than considerations of actual loss in applications.
Carl Friedrich Gauss Johann Carl Friedrich Gauss (; ; ; 30 April 177723 February 1855) was a German mathematician, astronomer, geodesist, and physicist, who contributed to many fields in mathematics and science. He was director of the Göttingen Observatory and ...
, who introduced the use of mean squared error, was aware of its arbitrariness and was in agreement with objections to it on these grounds. The mathematical benefits of mean squared error are particularly evident in its use at analyzing the performance of
linear regression In statistics, linear regression is a statistical model, model that estimates the relationship between a Scalar (mathematics), scalar response (dependent variable) and one or more explanatory variables (regressor or independent variable). A mode ...
, as it allows one to partition the variation in a dataset into variation explained by the model and variation explained by randomness.


Criticism

The use of mean squared error without question has been criticized by the decision theorist James Berger. Mean squared error is the negative of the expected value of one specific
utility function In economics, utility is a measure of a certain person's satisfaction from a certain state of the world. Over time, the term has been used with at least two meanings. * In a Normative economics, normative context, utility refers to a goal or ob ...
, the quadratic utility function, which may not be the appropriate utility function to use under a given set of circumstances. There are, however, some scenarios where mean squared error can serve as a good approximation to a loss function occurring naturally in an application. Like
variance In probability theory and statistics, variance is the expected value of the squared deviation from the mean of a random variable. The standard deviation (SD) is obtained as the square root of the variance. Variance is a measure of dispersion ...
, mean squared error has the disadvantage of heavily weighting
outliers In statistics, an outlier is a data point that differs significantly from other observations. An outlier may be due to a variability in the measurement, an indication of novel data, or it may be the result of experimental error; the latter ar ...
. This is a result of the squaring of each term, which effectively weights large errors more heavily than small ones. This property, undesirable in many applications, has led researchers to use alternatives such as the mean absolute error, or those based on the
median The median of a set of numbers is the value separating the higher half from the lower half of a Sample (statistics), data sample, a statistical population, population, or a probability distribution. For a data set, it may be thought of as the “ ...
.


See also

*
Bias–variance tradeoff In statistics and machine learning, the bias–variance tradeoff describes the relationship between a model's complexity, the accuracy of its predictions, and how well it can make predictions on previously unseen data that were not used to train ...
*
Hodges' estimator In statistics, Hodges' estimator (or the Hodges–Le Cam estimator), named for Joseph Lawson Hodges Jr., Joseph Hodges, is a famous counterexample of an estimator which is "superefficient", i.e. it attains smaller asymptotic variance than regular e ...
* James–Stein estimator * Mean percentage error * Mean square quantization error * Reduced chi-squared statistic * Mean squared displacement * Mean squared prediction error *
Minimum mean square error In statistics and signal processing, a minimum mean square error (MMSE) estimator is an estimation method which minimizes the mean square error (MSE), which is a common measure of estimator quality, of the fitted values of a dependent variable. I ...
*
Overfitting In mathematical modeling, overfitting is "the production of an analysis that corresponds too closely or exactly to a particular set of data, and may therefore fail to fit to additional data or predict future observations reliably". An overfi ...
*
Peak signal-to-noise ratio Peak signal-to-noise ratio (PSNR) is an engineering term for the ratio between the maximum possible power of a signal and the power of corrupting noise that affects the fidelity of its representation. Because many signals have a very wide dynamic ...


Notes


References

{{reflist Point estimation performance Statistical deviation and dispersion Loss functions Least squares