Mean absolute deviation formula
MAD = Σ|x − x̄| ÷ n
It answers the most natural question about spread: on average, how far is a value from the mean? Compare it with the standard deviation, which answers a slightly different question by squaring first. In the example 2, 4, 6, 8, 10, 12, 30, the value 30 adds 20 to the MAD total but 400 to the sum of squares, which is why the SD reacts more to outliers.