How to calculate mean absolute deviation
Introduction:
Mean Absolute Deviation (MAD) is a statistical measurement that provides insight into the variability of a dataset. By calculating the MAD, you can determine the average distance each data point lies away from the mean value, which helps identify the presence of outliers and potential data inconsistencies. In this article, we’ll walk you through the process of calculating Mean Absolute Deviation step-by-step.
Step 1: Calculate the Mean
To begin, find the mean (average) of your dataset. To do so, add up all the values in your dataset and divide the sum by the total number of entries.
Mean = (Sum of data values) / (Total number of entries)
Step 2: Determine the Absolute Deviations
Next, calculate the absolute deviations for each data point in your dataset. To do this, simply subtract the mean value from each data point; then, take the absolute value of each result. This will give you an array of positive values representing how far each data point deviates from the mean.
Absolute Deviation = |Data Value – Mean|
Step 3: Sum Up Absolute Deviations
After determining all absolute deviations, add them up to calculate their total sum.
Step 4: Calculate Mean Absolute Deviation
Finally, divide the total sum obtained in Step 3 by the total number of entries in your dataset. This will give you your Mean Absolute Deviation.
Mean Absolute Deviation = (Sum of absolute deviations) / (Total number of entries)
Example:
Consider a simple dataset containing five numbers: {4, 6, 8, 12, 14}.
1. Calculate the mean:
(4 + 6 + 8 + 12 + 14) / 5 = 8.8
2. Determine absolute deviations:
|4 – 8.8| = 4.8
|6 – 8.8| = 2.8
|8 – 8.8| = 0.8
|12 – 8.8| = 3.2
|14 – 8.8| = 5.2
3. Sum up absolute deviations:
4.8 + 2.8 + 0.8 + 3.2 + 5.2 =16.8
4. Calculate the MAD:
16.8 / 5 = 3.36
Conclusion:
The Mean Absolute Deviation of our example dataset is calculated to be approximately 3.36, indicating the average distance of each data point from the mean value (rounded to two decimal places). By understanding how MAD works and how to calculate it, you can develop a better understanding of your dataset and identify potential issues or outliers that may warrant further investigation or analysis.