01 / 20

Percentiles, Quartiles
& Boxplots

Master the tools that let you rank, summarize, and visualize any business dataset: from salary benchmarks to customer wait times.

Business Statistics

What Is a Percentile?

A percentile tells you what percentage of values in a dataset fall at or below a given value. If your salary is at the 80th percentile, you earn as much as or more than 80% of the people in the sample.

Percentiles are used everywhere in business: employee performance rankings, customer satisfaction scores, and delivery time benchmarks.

Quartiles: The Big Three

Quartiles split a sorted dataset into four equal parts. They are special percentiles:

\( Q_1 \)
25th percentile: the lower quarter boundary
\( Q_2 \)
50th percentile: the median of the dataset
\( Q_3 \)
75th percentile: the upper quarter boundary

Visualizing the Quartile Split

Min
\( Q_1 \)
\( Q_2 \)
\( Q_3 \)
Max
25% 25% 25% 25% IQR (middle 50%)

Each section contains exactly one-quarter of the sorted observations. The IQR spans from \( Q_1 \) to \( Q_3 \), covering the central half of the data.

The Percentile Locator Formula

To find the \( k \)-th percentile of \( n \) sorted values, first compute the locator:

1
If \( L \) is not a whole number: round up to the next integer. The percentile is the value at that position.
2
If \( L \) is a whole number: the percentile is the average of the values at positions \( L \) and \( L+1 \).

The Five-Number Summary

Every boxplot is built from exactly five statistics:

Min
Minimum value
\( Q_1 \)
25th percentile
\( Q_2 \)
Median
\( Q_3 \)
75th percentile
Max
Maximum value

Percentile vs. Percentile Rank

Percentile Percentile Rank
Input A rank position \( k \) A data value \( x \)
Output A data value \( P_k \) A percentage (0 to 100)
Question "What value sits at the 90th percentile?" "What percentile does $42k fall at?"
Formula \( L = \frac{k}{100} \times n \) \( \frac{\text{values} \leq x}{n} \times 100 \)

Anatomy of a Boxplot

\( Q_1 \)
Median
\( Q_3 \)
Outlier Lower Whisker Box (IQR) Upper Whisker
\(\text{IQR} = Q_3 - Q_1\)
Whiskers extend to the most extreme non-outlier values
Outlier fences: \( Q_1 - 1.5 \times \text{IQR} \) and \( Q_3 + 1.5 \times \text{IQR} \)

Detecting Outliers with Fences

A data point is an outlier if it falls outside the inner fences:

1
Mild outlier: between \( 1.5 \times \text{IQR} \) and \( 3 \times \text{IQR} \) from the box.
2
Extreme outlier: more than \( 3 \times \text{IQR} \) from the box.

How to Build a Boxplot

1
Sort the data from smallest to largest.
2
Find the median \( (Q_2) \): the middle value of the sorted list.
3
Find \( Q_1 \): the median of the lower half (below \( Q_2 \)).
4
Find \( Q_3 \): the median of the upper half (above \( Q_2 \)).
5
Compute IQR = \( Q_3 - Q_1 \), then the fences.
6
Draw the box, median line, whiskers to the most extreme non-outlier values, and plot outliers as individual points.

Example 1: Monthly Sales

A small business tracks monthly revenue (in $1,000s) for 12 months:

1
Median \( (Q_2) \): Average of positions 6 and 7: \( \frac{30 + 33}{2} = \) 31.5
2
\( Q_1 \): Median of lower half {15,18,22,25,27,30}: \( \frac{22+25}{2} = \) 23.5
3
\( Q_3 \): Median of upper half {33,35,38,42,45,60}: \( \frac{38+42}{2} = \) 40
4
IQR \( = 40 - 23.5 = \) 16.5

Example 1: The Boxplot

15 23.5 31.5 40 60 Min
\( Q_1 \)
\( Q_2 \)
\( Q_3 \)
Max Monthly Revenue ($1,000s)

Example 2: Customer Wait Times

A call center logs wait times (minutes) for 10 calls:

1
\( Q_2 \): \( \frac{6 + 7}{2} = \) 6.5
2
\( Q_1 \): Median of {2,3,4,5,6} = 4
3
\( Q_3 \): Median of {7,8,9,12,28} = 9
4
IQR = \( 9 - 4 = 5 \). Upper fence = \( 9 + 1.5(5) = \) 16.5
5
28 > 16.5, so 28 is an outlier. Upper whisker stops at 12.

Example 2: Boxplot with Outlier

2 4 6.5 9 12 28 0 10 20 30 Outlier! Call Center Wait Times (minutes)

Reading Boxplots for Skewness

Symmetric
Median is centered in the box; whiskers are roughly equal length.
Right-Skewed
Median sits closer to \( Q_1 \); right whisker is longer. Common in income data.
Left-Skewed
Median sits closer to \( Q_3 \); left whisker is longer. Common in test scores near max.

Common Mistakes to Avoid

✕ Forgetting to Sort
Quartiles only work on ordered data. Applying the locator formula to unsorted data gives meaningless results.
✕ Whiskers to Min/Max
Whiskers extend only to the most extreme non-outlier value, not necessarily to the min or max.
✕ Confusing IQR with Range
Range = Max - Min (all data). IQR = \( Q_3 - Q_1 \) (middle 50% only). They measure different spreads.

Question 1 of 5

A dataset has \( Q_1 = 20 \), \( Q_3 = 50 \). What is the IQR?

Question 2 of 5

Using the locator formula with \( n = 20 \), what position gives the 25th percentile?

Question 3 of 5

If \( Q_1 = 10 \), \( Q_3 = 30 \), and IQR = 20, what is the upper fence for outlier detection?

Question 4 of 5

On a boxplot, the median line is much closer to \( Q_1 \) than to \( Q_3 \), and the right whisker is much longer than the left. This suggests the data is:

Question 5 of 5

In a boxplot, whiskers extend to: