Average Absolute Deviation?

10 次查看(过去 30 天)
Delany MacDonald
Delany MacDonald 2016-3-16
What is the coding in matlab to find the AAD?

回答(3 个)

John D'Errico
John D'Errico 2016-3-16
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 个评论
Delany MacDonald
Delany MacDonald 2016-3-16
If its standard deviation would it be y= std(x) then absy = abs(y) then meany = mean(absy)?

请先登录,再进行评论。


Walter Roberson
Walter Roberson 2016-3-16
mean( abs(x - mean(x)) )

Image Analyst
Image Analyst 2016-3-16
编辑:Image Analyst 2016-3-16
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.

类别

Help CenterFile Exchange 中查找有关 Descriptive Statistics and Visualization 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by