Mean Absolute Deviation
Mean Absolute Deviation
Step 2: Calculate how far away each data point is from the mean using
positive distances. These are called absolute deviations.
Following these steps in the example below is probably the best way to learn
about mean absolute deviation, but here is a more formal way to write the
steps in a formula:
\text{MAD}=\dfrac{\sum{\lvert x_i-\bar{x} \rvert}}
{n}MAD=n∑∣xi−xˉ∣start text, M, A, D, end text, equals, start fraction,
sum, open vertical bar, x, start subscript, i, end subscript, minus, x, with, \bar,
on top, close vertical bar, divided by, n, end fraction
Example
Erica enjoys posting pictures of her cat online. Here's how many "likes" the
past 666 pictures each received:
101010, 151515, 151515, 171717, 181818, 212121
Step 2: Calculate the distance between each data point and the mean.
Data
point Distance from mean
\lvert 10-16 \rvert =6∣10−16∣=6open vertical bar, 10,
101010 minus, 16, close vertical bar, equals, 6
\lvert 15-16 \rvert =1∣15−16∣=1open vertical bar, 15,
151515 minus, 16, close vertical bar, equals, 1
\lvert 15-16 \rvert =1∣15−16∣=1open vertical bar, 15,
151515 minus, 16, close vertical bar, equals, 1
\lvert 17-16 \rvert =1∣17−16∣=1open vertical bar, 17,
171717 minus, 16, close vertical bar, equals, 1
\lvert 18-16 \rvert =2∣18−16∣=2open vertical bar, 18,
181818 minus, 16, close vertical bar, equals, 2
\lvert 21-16 \rvert =5∣21−16∣=5open vertical bar, 21,
212121 minus, 16, close vertical bar, equals, 5
Step 3: Add the distances together.
6+1+1+1+2+5=166+1+1+1+2+5=166, plus, 1, plus, 1, plus, 1,
plus, 2, plus, 5, equals, 16
Step 4: Divide the sum by the number of data points.
\text{MAD}=\dfrac{16}{6}\approx2.67MAD=616≈2.67start text, M, A, D,
end text, equals, start fraction, 16, divided by, 6, end fraction, approximately
equals, 2, point, 67 likes