Average Absolute Deviation?
8 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
What is the coding in matlab to find the AAD?
0 commentaires
Réponses (4)
John D'Errico
le 16 Mar 2016
1. Compute the deviation. (You have not said what the deviation is from, so I cannot answer that.)
2. Compute the absolute value of the deviations. abs will suffice.
help abs
3. Use mean to compute the average.
help mean
Image Analyst
le 16 Mar 2016
Modifié(e) : Image Analyst
le 16 Mar 2016
We usually find the median absolute deviation is a better measure https://en.wikipedia.org/wiki/Median_absolute_deviation because the measure itself is less affected by outliers.
On a global basis you can do
mad = median(abs(array(:) - median(array(:))))
We often use it to find outliers in the data.
0 commentaires
Meg Noah
le 8 Août 2025
Modifié(e) : Meg Noah
le 8 Août 2025
The Average Absolute Deviation (AAD) is the mean of deviations from a central point (central tendency).

If the central point is the mean of the data set, then the AAD is also referred to as the Mean Absolute Deviation (MAD).
If the central point is the median of the data set, then the AAD is also referred to as the Median Absolute Deviation, which can also be abbreviated as MAD.
If the central point is the mode of the data set, then the AAD is the Mode Absolute Deviation.
The central point can be determined other ways as well.
To add to the confusion of this, the Median Absolute Deviation can also be mathematically defined as:

Example:
rng default
X = randi([1 10],1,20)
meanAbsoluteDeviation = mean(abs(X-mean(X)))
medianAbsoluteDeviation = mean(abs(X-median(X)))
medianAbsoluteDeviation2 = median(abs(X-median(X)))
modeAbsoluteDeviation = mean(abs(X-mode(X)))
0 commentaires
Voir également
Catégories
En savoir plus sur Sources and Sinks dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!