To get the mean absolute deviation, we first need the mean of the set. The mean is calculated by the sum of the values divided by the number of data:

To get the means absolute deviation, we have to get the absolute difference between each data and the mean, sum them up and divide by the number of data:
