The box plot (box-and-whisker diagram) summarises a distribution with five numbers, highlighting its centre, spread and any anomalous values.

Definition — Box plot (box-and-whisker diagram)

Graphical summary of a distribution through five numbers:

  • Q1Q_1 (first quartile): 25%25\% of the data are Q1\le Q_1;
  • Q2Q_2 = median: 50%50\%;
  • Q3Q_3 (third quartile): 75%75\%;
  • IQR (interquartile range) =Q3Q1=Q_3-Q_1: robust spread.

The box goes from Q1Q_1 to Q3Q_3 with a median line at Q2Q_2. The “whiskers” extend to the smallest and largest non-outlier values: typically data beyond Q11,5IQRQ_1-1,5\,\text{IQR} or Q3+1,5IQRQ_3+1,5\,\text{IQR} are declared outliers.

Example — Box plot of the marks

On the ordered marks 4,5,6,6,7,7,7,8,9,104,5,6,6,7,7,7,8,9,10: Q1=6Q_1=6 (third value), Q2=7Q_2=7, Q3=8Q_3=8. IQR =2=2. Whiskers: 44 (min) and 1010 (max), none is an outlier because 4>63=34>6-3=3 and 10<8+3=1110<8+3=11.

Box plot of the marks: box from Q1=6Q_1=6 to Q3=8Q_3=8, median at 77, whiskers from 44 to 1010.

The box plot is particularly useful for comparing several distributions (e.g. the marks of three parallel classes): five numbers per class, side by side, immediately show differences in centre and spread.

Topics: Probabilita
Concepts: Box plot · Iqr · Mediana · Outlier · Quartile
Methods: Box plot
Skills: Interpretare grafico