Mean absolute error
In statistics, mean absolute error (MAE) is a measure of errors between paired observations expressing the same phenomenon.[src] Examples of Y versus X include comparisons of predicted versus observed, subsequent time versus initial time, and one technique of measurement versus an alternative technique of measurement.[src] MAE is calculated as the sum of absolute errors (i.e., the Manhattan distance) divided by the sample size: \mathrm{MAE} = \frac{\sum_{i=1}^n\left| y_i - x_i\right|}{n} =\frac{\sum_{i=1}^n\left| e_i \right|}{n}.[src] It is thus the arithmetic mean of the absolute errors |e_i| = |y_i - x_i| , where y_i is the prediction and x_i the true value.[src] Alternative formulations may include relative frequencies as weight factors.[src] The mean absolute error uses the same scale as the data being measured.[src] This is known as a scale-dependent accuracy measure and therefore cannot be used to make comparisons between predicted values that use different scales.[src] The mean absolute error is a common measure of forecast error in time series analysis, sometimes used in confusion with the more standard definition of mean absolute deviation.[src] The same confusion exists more generally in technical literature.[src]
In statistics, mean absolute error (MAE) is a measure of errors between paired observations expressing the same phenomenon.[src] Examples of Y versus X include comparisons of predicted versus observed, subsequent time versus initial time, and one technique of measurement versus an alternative technique of measurement.[src] MAE is calculated as the sum of absolute errors (i.e., the Manhattan distance) divided by the sample size: \mathrm{MAE} = \frac{\sum_{i=1}^n\left| y_i - x_i\right|}{n} =\frac{\sum_{i=1}^n\left| e_i \right|}{n}.[src] It is thus the arithmetic mean of the absolute errors |e_i| = |y_i - x_i| , where y_i is the prediction and x_i the true value.[src] Alternative formulations may include relative frequencies as weight factors.[src] The mean absolute error uses the same scale as the data being measured.[src] This is known as a scale-dependent accuracy measure and therefore cannot be used to make comparisons between predicted values that use different scales.[src] The mean absolute error is a common measure of forecast error in time series analysis, sometimes used in confusion with the more standard definition of mean absolute deviation.[src] The same confusion exists more generally in technical literature.[src] ==Quantity disagreement and allocation disagreement== In remote sensing the MAE is sometimes expressed as the sum of two components: quantity disagreement and allocation disagreement.[src] Quantity disagreement is the absolute value of the mean error: \left|\frac{\sum_{i=1}^n y_i-x_i}{n}\right|.[src] Allocation disagreement is MAE minus quantity disagreement.[src] It is also possible to identify the types of difference by looking at an (x,y) plot.[src] Quantity difference exists when the average of the X values does not equal the average of the Y values.[src] Allocation difference exists if and only if points reside on both sides of the identity (Y=X) line.[src] MAE is not identical to root-mean square error (RMSE), although some researchers report and interpret it that way.[src] The MAE is conceptually simpler and also easier to interpret than RMSE: it is simply the average absolute vertical or horizontal distance between each point in a scatter plot and the Y=X line.[src] In other words, MAE is the average absolute difference between X and Y.[src] Furthermore, each error contributes to MAE in proportion to the absolute value of the error.[src] This is in contrast to RMSE which involves squaring the differences, so that a few large differences will increase the RMSE to a greater degree than the MAE.[src] ===Optimality property=== The mean absolute error of a real variable c with respect to the random variable X is E(\left|X-c\right|).[src] Provided that the probability distribution of X is such that the above expectation exists, then m is a median of X if and only if m is a minimizer of the mean absolute error with respect to X.[src] In particular, m is a sample median if and only if m minimizes the arithmetic mean of the absolute deviations.[src] More generally, a median is defined as a minimum of E(|X-c| - |X| ), as discussed at Multivariate median (and specifically at Spatial median).[src] This optimization-based definition of the median is useful in statistical data-analysis, for example, in k-medians clustering .[src] Statement: The classifier minimising \mathbb{E}|y-\hat{y}| is \hat{f}(x)=\text{Median}(y|X=x) .[src] Proof: The Loss functions for classification is \begin{align} L &= \mathbb{E}[|y-a||X=x]\\ &= \int_{-\infty}^{\infty} |y-a| f_{Y|X}(y) \, dy \\ &= \int_{-\infty}^a (a-y)f_{Y|X}(y)\, dy+\int_a^{\infty}(y-a)f_{Y|X}(y)\, dy.\\ \end{align} Differentiating with respect to a gives \frac{\partial }{\partial a}L = \int_{-\infty}^af_{Y|X}(y)\, dy+\int_a^{\infty}-f_{Y|X}(y)\, dy=0 .[src] This means \int_{-\infty}^a f(y)\, dy = \int_a^{\infty} f(y)\, dy .[src] Hence, F_{Y|X}(a)=0.5 .[src] ==See also== Least absolute deviations Taxicab geometry Mean absolute percentage error Mean percentage error Symmetric mean absolute percentage error ==References==[src]
39 sentences · 39 cited inline · 0 references stored
References
No reference rows published for this article.
Cite this article
MLA
"Mean absolute error." encyclopegia.org, 2026, https://encyclopegia.org/wiki/mean-absolute-error. Accessed 26 November 2026.
Chicago
"Mean absolute error." encyclopegia.org. Accessed November 26, 2026. https://encyclopegia.org/wiki/mean-absolute-error.
APA
encyclopegia.org. (2026). Mean absolute error. Retrieved November 26, 2026, from https://encyclopegia.org/wiki/mean-absolute-error
Accessed November 26, 2026 · CC BY-SA 4.0 · citation page · JSON