This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)

Quartiles

Quartiles[list]
gives a list of the 1/4, 1/2, and 3/4 quantiles of the elements in list.
Quartiles[dist]
gives a list of the 1/4, 1/2, and 3/4 quantiles of the symbolic distribution dist.
  • The second quartile is equivalent to Median[list]. »
  • For even Length[list], the first quartile is equivalent to the median of the smallest elements in list.
  • For odd Length[list], the first quartile is equivalent to the average of the median of the smallest elements and the median of the smallest elements in list.
  • The third quartile is defined like the first, but with the largest rather than smallest elements.
Quartiles for a list of exact numbers:
Quartiles of a symbolic distribution:
Quartiles for a list of exact numbers:
In[1]:=
Click for copyable input
Out[1]=
 
Quartiles of a symbolic distribution:
In[1]:=
Click for copyable input
Out[1]=
Quartiles works with any real numeric quantities:
Quartiles by column for a matrix:
Obtain results at any precision:
Compute results for a large vector or matrix:
Quartiles are given by linearly interpolated Quantile values:
The second quartile is the Median:
InterquartileRange is the difference between the first and third quartiles:
QuartileDeviation is half the difference between the first and third quartiles:
QuartileSkewness is a skewness measure obtained from the quartiles:
Quartiles requires numeric values:
New in 6 | Last modified in 7