Mean Deviation
The mean deviation (average absolute deviation, AAD) is calculated as the mean of the absolute difference between a value and the mean value of the group:

where
is the average value of the group
- n is the number of values in the group (Count)
Parent topic: Aggregations and statistical measures