Function Repository Resource:

MultivariateMedianDeviation

Source Notebook

Find the median Euclidean distance from the median of the elements of multivariate data

Contributed by: Wolfram Research

ResourceFunction["MultivariateMedianDeviation"][matrix]

gives the median Euclidean distance from the median of the elements in matrix.

Details and Options

ResourceFunction["MultivariateMedianDeviation"] is a univariate measure of median deviation for multivariate data.
The multivariate median deviation is given by the median of the list , where matrix={x1,x2,,xn} and is the median of matrix.
The following option can be given:
"MedianMethod"Medianthe median to use
Valid settings for "MedianMethod" are "Median", "SimplexMedian", "ConvexHullMedian" and "SpatialMedian".

Examples

Basic Examples (1) 

MultivariateMedianDeviation for bivariate data:

In[1]:=
ResourceFunction[
 "MultivariateMedianDeviation"][{{1, 2}, {3, 4}, {5, 6}, {8, 10}}]
Out[1]=

Options (1) 

MedianMethod (1) 

MultivariateMedianDeviation using a simplex median:

In[2]:=
ResourceFunction[
 "MultivariateMedianDeviation"][{{1, 2}, {3, 4}, {5, 6}, {8, 10}}, "MedianMethod" -> "SimplexMedian"]
Out[2]=

Requirements

Wolfram Language 11.3 (March 2018) or above

Version History

  • 1.0.0 – 20 February 2019

Related Resources

License Information