Boxplots

A chart of the median, quartiles and whiskers that shows spread and flags outliers, and is best used to compare spread across groups (for example revenue by product category).

When to use

Choose a boxplot when the question is spread and outliers across groups, versus a histogram for the distribution of one variable. Outliers are the points beyond Q1−1.5 IQRQ_1 - 1.5\,\text{IQR} or Q3+1.5 IQRQ_3 + 1.5\,\text{IQR}, and the lecture says to investigate before deleting them.

See DS Lec 2.

Appears in