Average Absolute Deviation?

12 Ansichten (letzte 30 Tage)
Delany MacDonald
Delany MacDonald am 16 Mär. 2016
Bearbeitet: Image Analyst am 16 Mär. 2016
What is the coding in matlab to find the AAD?

Antworten (3)

John D'Errico
John D'Errico am 16 Mär. 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
  1 Kommentar
Delany MacDonald
Delany MacDonald am 16 Mär. 2016
If its standard deviation would it be y= std(x) then absy = abs(y) then meany = mean(absy)?

Melden Sie sich an, um zu kommentieren.


Walter Roberson
Walter Roberson am 16 Mär. 2016
mean( abs(x - mean(x)) )

Image Analyst
Image Analyst am 16 Mär. 2016
Bearbeitet: Image Analyst am 16 Mär. 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.

Kategorien

Mehr zu Descriptive Statistics and Visualization finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by