# 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 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 all close all

## Basic Examples(2)

Quartiles for a list of exact numbers:

 In:= Out= Quartiles of a parametric distribution:

 In:= Out= ## Possible Issues(1)

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