What if at least half the distances are zero?
The MAD may be zero. This commonly occurs in rounded or repeated data.
Describe the spread of a numerical sample with a median-based measure. The result includes both common MAD scales.
Take the sample median and compute each absolute distance from it. The median of those distances is the raw MAD. The example has median 3 and raw MAD 1.
Multiplying the raw MAD by about 1.4826 puts it on a standard-deviation scale for a normal population. Both values are useful when comparing results across software.
The MAD may be zero. This commonly occurs in rounded or repeated data.
The median can be more resistant to isolated extremes than a measure using squared distances.