Average deviation from the mean. |
||
Syntax |
d = AvgDev(Data) |
|
Argument |
Name |
Description |
Data |
A vector of data. |
|
Output |
Name |
Description |
d |
A scalar that is the average difference between the vector elements and the average of the vector elements. |
|
Example |
For a given data [1,2,3,4,5] find the average deviation from the mean. |
|
Syntax |
||
d = AvgDev([1,2,3,4,5]) |
||
Result |
||
D = 1.2 |
||
Comments |
The sign of each element is not taken into consideration when calculating the deviation. The sign of each element is taken into consideration when calculating the average of the elements. |
|
See Also: |