descriptive statistics
Box Plots and Outliers
You should know: descriptive statistics
Overview
A box plot (or box-and-whisker plot) is a graphical summary of a data set's distribution using five key numbers: the minimum, first quartile (Q1), median, third quartile (Q3), and maximum. The 'box' spans from Q1 to Q3 (the interquartile range, IQR), with a line marking the median; 'whiskers' extend to the smallest and largest values within 1.5×IQR of the box. Values falling beyond 1.5×IQR from the nearest quartile are commonly flagged as outliers and plotted as individual points rather than included in the whiskers. Box plots make it easy to compare the spread, skewness, and central tendency of several data sets side by side, and to visually flag potential outliers for further investigation.
Intuition
The IQR captures the spread of the 'middle 50%' of the data, which is fairly resistant to extreme values (unlike the range or standard deviation). Multiplying the IQR by 1.5 and extending it past each quartile creates a reasonable buffer for typical variation; any point falling outside that buffer is flagged as unusually far from the bulk of the data — an outlier worth a second look, whether it's a data-entry error or a genuinely rare event.
Formal Definition
For an ordered data set with first quartile Q1 and third quartile Q3:
Worked Examples
The median (4th of 7 values) is 7. Lower half (excluding median): {2,4,5}, so Q1 is the median of that: 4. Upper half: {8,9,20}, so Q3 is the median of that: 9.
Compute the IQR.
Answer: Q1 = 4, Q3 = 9, IQR = 5.
Practice Problems
If Q1 = 10 and Q3 = 22, find the IQR and the upper fence.
If Q1 = 15 and Q3 = 25, find the lower fence. Is the value 5 an outlier?
A data set of household incomes has Q1 = $40,000 and Q3 = $70,000. A household reports $200,000. Determine if this is an outlier by the 1.5×IQR rule, and explain why box plots are useful for skewed data like income.
Quiz
Summary
- A box plot displays the five-number summary: minimum, Q1, median, Q3, and maximum, with whiskers typically bounded at 1.5×IQR from the box.
- The interquartile range IQR = Q3 − Q1 measures the spread of the middle 50% of the data and is resistant to extreme values.
- Points beyond 1.5×IQR past Q1 or Q3 are commonly flagged as outliers, worth investigating as errors or genuinely rare observations.
References
- WebsiteWikipedia — Box plot
Mathematics