Given the values of song lengths, in minutes
To calculate the mean absolute deviation (MAD) of the lengths of the songs you have to calculate the absolute difference between each value and the sample mean, add all results, and divide it by the sample size, following the formula:
Where
MAD is the mean absolute deviation
xi is each observation of the sample
X[bar] is the sample mean
n is the sample size
The first step is to calculate the sample mean:
To do so you have to add all values and divide them by the number of observations:
The number of observations is n=9 songs
You can calculate the sample mean as follows:
Once you have determined the sample mean, you can proceed to calculate the mean absolute deviation:
The mean absolute deviation is 0.57 minutes