Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Data Manipulation > Statistics > Descriptive Statistics >
Mathematica > Mathematics and Algorithms > Statistics > Descriptive Statistics >

Median

Updated In 7 Graphic
Median[list]
gives the median of the elements in list.
Median[dist]
gives the median of the symbolic distribution dist.
  • 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, ...}]}.
Find the middle value in the list:
Average the two middle values:
Median of a symbolic distribution:
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]=
Median works with any real numeric quantities:
Median finds medians of elements in each column:
Obtain results at any precision:
Compute results for a large vector or matrix:
Obtain a robust estimate of location when outliers are present:
Extreme values have a large influence on the Mean:
Medians of random reals approach a Gaussian distribution:
Theoretical curve:
Median is equivalent to a parametrized Quantile:
For nearly symmetric samples, Median and Mean are nearly the same:
The Median of absolute deviations from the Median is MedianDeviation:
MovingMedian is a sequence of medians:
Median requires numeric values:
New in 5 | Last modified in 7
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team