mad

mad(a, b, c, ...)

mad(A)

Try it yourself:

See also:

mad(): Mean Absolute Deviation

mad() measures average distance from a central value using absolute deviations. It is a robust, interpretable summary of spread: small values mean observations cluster closely around the chosen center.

Reading dispersion

Unlike variance, MAD does not square deviations, so extreme observations have less influence. It is useful for data quality checks and comparing consistency. Pair it with mean() or median() according to the intended center.

Use std() for standard deviation, abs() for individual deviations, and size() to ensure a data collection is nonempty. Missing values and units should be handled before analysis.

Try Mad in Calcul.io

Start with one of the editable examples above, then replace its arguments with your own values. Keeping the function on a separate calculator line makes the input and result easy to compare. For a longer workflow, assign the result to a variable or reference that line in the next expression.

Check the shown signature before adding optional arguments, and use the related-function links to compare operations with similar purposes.

All functions