WLJS LogoWLJS Notebook

MedianDeviation

MedianDeviation[data] gives the median absolute deviation from the median of the elements in data.

Examples

Calculate the median deviation of a list:

MedianDeviation[{1, 2, 3, 4, 100}]
(* 1 *)

More robust than standard deviation for outliers:

{StandardDeviation[{1, 2, 3, 4, 100}], MedianDeviation[{1, 2, 3, 4, 100}]}

Apply to a matrix (column-wise):

MedianDeviation[{{1, 2}, {3, 4}, {5, 100}}]

Please visit the official Wolfram Language Reference for more details.

On this page