Gini's mean difference: the average distance between two observations

Take any two different observations. How far apart are they, on average? Drag the blue points and watch all pairwise distances (arcs above, bars below).

GMD = average of |xi − xj| over all pairs i < j = 2 / (n·(n−1)) · Σi<j |xi − xj|
New sample from n 8
Gini's mean difference
–
Standard deviation s
–
GMD / s
–
For normal data about 1.13
Change since this sample
–
Pick two observations at random:

The GMD is exactly the expected distance between two observations drawn at random (without putting the first back). The experiment above shows it: the average of many random pairs settles at the GMD.

Like the standard deviation it measures spread, but it works with plain distances instead of squared deviations from the mean. That makes it less sensitive to single extreme values: push one point to the edge and compare how much s and the GMD grow. For normally distributed data GMD = 2σ/√π ≈ 1.13 σ. (The Gini coefficient of inequality is GMD / (2 · mean).)