### Mean absolute deviation

"Mean deviation" redirects here. For the book, see Mean Deviation (book).

In statistics, the absolute deviation of an element of a data set is the absolute difference between that element and a given point. Typically the deviation is reckoned from the central value, being construed as some type of average, most often the median or sometimes the mean of the data set.

$D_i = |x_i-m\left(X\right)|$

where

Di is the absolute deviation,
xi is the data element
and m(X) is the chosen measure of central tendency of the data set—sometimes the mean ($\overline\left\{x\right\}$), but most often the median.

## Measures of dispersion

Several measures of statistical dispersion are defined in terms of the absolute deviation.

### Average absolute deviation

The average absolute deviation, or simply average deviation of a data set is the average of the absolute deviations and is a summary statistic of statistical dispersion or variability. In its general form, the average used can be the mean, median, mode, or the result of another measure of central tendency.

The average absolute deviation of a set {x1, x2, ..., xn} is

$\frac\left\{1\right\}\left\{n\right\}\sum_\left\{i=1\right\}^n |x_i-m\left(X\right)|.$

The choice of measure of central tendency, $m\left(X\right)$, has a marked effect on the value of the average deviation. For example, for the data set {2, 2, 3, 4, 14}:

Measure of central tendency $m\left(X\right)$ Average absolute deviation
Mean = 5 2 - 5| + |2 - 5| + |3 - 5| + |4 - 5| + |14 - 5|}{5} = 3.6
Median = 3 2 - 3| + |2 - 3| + |3 - 3| + |4 - 3| + |14 - 3|}{5} = 2.8
Mode = 2 2 - 2| + |2 - 2| + |3 - 2| + |4 - 2| + |14 - 2|}{5} = 3.0

The average absolute deviation from the median is less than or equal to the average absolute deviation from the mean. In fact, the average absolute deviation from the median is always less than or equal to the average absolute deviation from any other fixed number.

The average absolute deviation from the mean is less than or equal to the standard deviation; one way of proving this relies on Jensen's inequality.

For the normal distribution, the ratio of mean absolute deviation to standard deviation is $\sqrt\left\{2/\pi\right\} = 0.79788456\dots$. Thus if X is a normally distributed random variable with expected value 0 then

$\frac\left\{ E|X| \right\}\left\{ \sqrt\left\{E\left(X^2\right)\right\} \right\} = \sqrt\left\{\frac\left\{2\right\}\left\{\pi\right\}\right\}.$

In other words, for a normal distribution, mean absolute deviation is about 0.8 times the standard deviation.

#### Mean absolute deviation (MAD)

The mean absolute deviation (MAD), also referred to as the mean deviation (or sometimes average absolute deviation, though see above for a distinction), is the mean of the absolute deviations of a set of data about the data's mean. In other words, it is the average distance of the data set from its mean. Because the MAD is a simpler measure of variability than the standard deviation, it can be used as pedagogical tool to help motivate the standard deviation.

This method forecast accuracy is very closely related to the mean squared error (MSE) method which is just the average squared error of the forecasts. Although these methods are very closely related MAD is more commonly used because it does not require squaring.

More recently, the mean absolute deviation about mean is expressed as a covariance between a random variable and its under/over indicator functions; as

$D_m = E|X-\mu|=2Cov\left(X,I_O\right)$

where

Dm is the expected value of the absolute deviation about mean,
"Cov" is the covariance between the random variable X and the over indicator function ($I_\left\{O\right\}$).

and the over indicator function is defined as

\begin{cases} 1 &\text{if } x >\mu, \\ 0 &\text{else } \end{cases}

Based on this representation new correlation coefficients are derived. These correlation coefficients ensure high stability of statistical inference when we deal with distributions that are not symmetric and for which the normal distribution is not an appropriate approximation. Moreover an easy and simple way for a semi decomposition of Pietra’s index of inequality is obtained.

### Average absolute deviation about median

Mean absolute deviation about median (MAD median) offers a direct measure of the scale of a random variable about its median

$D_\left\{med\right\} = E|X-median|$

For the normal distribution we have $D_\left\{med\right\} = \sigma \sqrt\left(2/\pi\right)$. Since the median minimizes the average absolute distance, we have $D_\left\{med\right\} <= D_\left\{mean\right\}$. By using the general dispersion function Habib (2011) defined MAD about median as

$D_\left\{med\right\} = E|X-median|=2Cov\left(X,I_O\right)$

where the indicator function is

\begin{cases} 1 &\text{if } x > median, \\ 0 &\text{else } \end{cases} This representation allows for obtaining MAD median correlation coefficients;

#### Median absolute deviation (MAD)

The median absolute deviation (also MAD) is the median of the absolute deviation from the median. It is a robust estimator of dispersion.

For the example {2, 2, 3, 4, 14}: 3 is the median, so the absolute deviations from the median are {1, 1, 0, 1, 11} (reordered as {0, 1, 1, 1, 11}) with a median of 1, in this case unaffected by the value of the outlier 14, so the median absolute deviation (also called MAD) is 1.

#### Maximum absolute deviation

The maximum absolute deviation about a point is the maximum of the absolute deviations of a sample from that point. While not strictly a measure of central tendency, the maximum absolute deviation can be found using the formula for the average absolute deviation as above with $m\left(X\right)=\text\left\{max\right\}\left(X\right)$, where $\text\left\{max\right\}\left(X\right)$ is the sample maximum. The maximum absolute deviation cannot be less than half the range.

## Minimization

The measures of statistical dispersion derived from absolute deviation characterize various measures of central tendency as minimizing dispersion: The median is the measure of central tendency most associated with the absolute deviation. Some location parameters can be compared as follows:

• L2 norm statistics: the mean minimizes the mean squared error
• L1 norm statistics: the median minimizes average absolute deviation,
• L norm statistics: the mid-range minimizes the maximum absolute deviation
• trimmed L norm statistics: for example, the midhinge (average of first and third quartiles) which minimizes the median absolute deviation of the whole distribution, also minimizes the maximum absolute deviation of the distribution after the top and bottom 25% have been trimmed off.

## Estimation

The mean absolute deviation of a sample is a biased estimator of the mean absolute deviation of the population. In order for the absolute deviation to be an unbiased estimator, the expected value (average) of all the sample absolute deviations must equal the population absolute deviation. However, it does not. For the population 1,2,3 both the population absolute deviation about the median and the population absolute deviation about the mean are 2/3. The average of all the sample absolute deviations about the mean of size 3 that can be drawn from the population is 44/81, while the average of all the sample absolute deviations about the median is 4/9. Therefore the absolute deviation is a biased estimator.