question about Mean absolute deviation formula

221 Views Asked by At

$$\frac{\sum_{i=1}^{n}(x_i-\bar x)}{n}$$

This method will not work for calculating the mean deviation. Instead we have:

$$\frac{\sum_{i=1}^{n}|x_i-\bar x|}{n}.$$

I'm not quite understanding why we need to use absolute value. I read that if we don't use absolute value, we will always get zero, but I'm not understanding why. Absolute value isn't always used when dealing with differences, so why in this case?

Thanks.

3

There are 3 best solutions below

0
On

$\dfrac{\sum_{i=1}^{n}(x_i-\bar x)}{n} = \frac{\sum_{i=1}^n x_i}{n} - \frac{\sum_{i=1}^n \bar{x}}{n} = \bar{x} - \frac{n \bar{x}}{n} = \bar{x} - \bar{x} = 0$ (so the average deviation from the mean is $0$ - this makes sense from what an average means). The other answer justifies why you want the absolute value (or some other actual distance metric - distances are non-negative)

0
On

\begin{align} 13 - 5 & = 8 \\ 5 - 13 & = -8 \\ \\ |13-5| & = 8 \\ |5 - 13| & = 8 \end{align}

The absolute value of the number you get by subtracting is the distance between the two numbers. Distances are never negative. The mean absolute deviation is the average distance from the mean.

0
On

If you don't use absolute values, you get $$\frac1n\sum_ix_i -\frac1n\sum_i\bar{x} = \bar{x} - \frac{n}{n}\bar{x} = 0.$$