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.

Details

  • Quartiles[list] is equivalent to Quantile[list,{1/4,1/2,3/4},{{1/2,0},{0,1}}]. »
  • 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[list,{{a,b},{c,d}}] uses the quantile definition specified by parameters a, b, c, d.

Examples

open allclose all

Basic Examples  (2)

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]=

Scope  (14)

Applications  (4)

Properties & Relations  (6)

Possible Issues  (1)

See Also

Quantile  InterquartileRange  QuartileDeviation  QuartileSkewness

Tutorials

Introduced in 2007
(6.0)
| Updated in 2017
(11.1)