Median

Median[list]

gives the median of the elements in list.

Median[dist]

gives the median of the symbolic distribution dist.

Details

  • Median is a robust location estimator.
  • Median[list] gives the center element in the sorted version of list, or the average of the two center elements if list is of even length.
  • Median[{{x1,y1,},{x2,y2,},}] gives {Median[{x1,x2,}],Median[{y1,y2,}],}.
  • Median[dist] is the minimum of the set of number(s) m such that Probability[xm,xdist]1/2 and Probability[xm,xdist]1/2.

Examples

open allclose all

Basic Examples  (3)

Find the middle value in the list:

In[1]:=
Click for copyable input
Out[1]=

Average the two middle values:

In[1]:=
Click for copyable input
Out[1]=

Median of a symbolic distribution:

In[1]:=
Click for copyable input
Out[1]=

Scope  (15)

Applications  (7)

Properties & Relations  (6)

Possible Issues  (1)

Neat Examples  (1)

See Also

SpatialMedian  Mean  TrimmedMean  WinsorizedMean  BiweightLocation  Quantile  MedianDeviation  Sort  Max  Ordering  Standardize  MedianFilter  Commonest

Tutorials

Introduced in 2003
(5.0)
| Updated in 2008
(7.0)