Average Absolute Deviation?

조회 수: 11 (최근 30일)
Delany MacDonald
Delany MacDonald 2016년 3월 16일
편집: Image Analyst 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