01 / 21

Percentiles &
Interquartile Range

Learn to compute and interpret percentiles, find \( Q_1 \), \( Q_2 \), and \( Q_3 \), and calculate the IQR to measure data spread.

Business Analytics

What Are Percentiles?

A percentile tells you the percentage of data values that fall at or below a given value. If your test score is at the 85th percentile, then 85% of all scores are at or below yours.

Percentiles are widely used in business analytics: customer satisfaction scores, employee performance rankings, revenue benchmarks, and standardized testing all rely on percentile thinking.

Visualizing Percentiles on a Number Line

\(0\)
\( Q_1 (P_{25}) \)
\( Q_2 (P_{50}) \)
\( Q_3 (P_{75}) \)
\(100\)
\(25\%\)
\(25\%\)
\(25\%\)
\(25\%\)
\( \text{IQR} = Q_3 - Q_1 \)

Why Percentiles Matter in Business

Benchmarking
Compare your company's KPIs to industry percentiles to see where you stand.
Outlier Detection
Values far outside the IQR signal potential data quality issues or unusual events.
Fair Comparison
Percentiles work with any distribution shape, unlike the mean which assumes symmetry.

Whether you are analyzing customer wait times, employee salaries, or quarterly revenue, percentiles give a robust, distribution-free way to describe position within a data set.

The Quartile Formulas

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

Interquartile Range: IQR

$$ \text{IQR} = \color{#f87171}{Q_3} - \color{#818cf8}{Q_1} $$

The IQR measures the spread of the middle 50% of data. It is resistant to outliers because it ignores the lowest 25% and the highest 25%.

IQR vs. Range vs. Std Dev

Measure Formula Resistant? Best For
Range \( \text{Max} - \text{Min} \) No Quick overview
IQR \( Q_3 - Q_1 \) Yes Skewed data / outliers
Std Dev \( \sigma = \sqrt{\frac{\sum(x_i - \bar{x})^2}{n}} \) No Symmetric data

How to Compute Quartiles & IQR

1
Sort the data in ascending order.
2
Find \( n \): the total number of data points.
3
Calculate locators: \( L_1 = \frac{25}{100} \cdot n \), \( L_2 = \frac{50}{100} \cdot n \), \( L_3 = \frac{75}{100} \cdot n \).
4
Apply the locator rule: round up if not whole, or average positions \( L \) and \( L+1 \) if whole.
5
Compute IQR: \( \text{IQR} = Q_3 - Q_1 \).

Example 1: Customer Wait Times

A coffee shop recorded wait times (in minutes) for 12 customers:

1
\( L_1 = \frac{25}{100} \cdot 12 = 3 \) (whole number) → \( Q_1 = \frac{\text{3rd} + \text{4th}}{2} = \frac{4+5}{2} = \) \( 4.5 \)
2
\( L_2 = \frac{50}{100} \cdot 12 = 6 \) (whole) → \( Q_2 = \frac{\text{6th} + \text{7th}}{2} = \frac{6+7}{2} = \) \( 6.5 \)
3
\( L_3 = \frac{75}{100} \cdot 12 = 9 \) (whole) → \( Q_3 = \frac{\text{9th} + \text{10th}}{2} = \frac{9+10}{2} = \) \( 9.5 \)

Example 1: Box Plot

0 2 4 6 8 10 12 14 16
\( \text{Min}=2 \)
\( Q_1=4.5 \)
\( Q_2=6.5 \)
\( Q_3=9.5 \)
\( \text{Max}=15 \)
\( \text{IQR}=5 \)

The box plot (box-and-whisker diagram) is the visual representation of the five-number summary: Min, \( Q_1 \), \( Q_2 \), \( Q_3 \), Max. The green bracket marks the IQR.

Example 2: Sales Data (Odd \( n \))

Daily sales revenue ($K) for a store over 9 days:

1
\( L_1 = \frac{25}{100} \cdot 9 = 2.25 \) → round up to 3 → \( Q_1 = \) 3rd value = \( 18 \)
2
\( L_2 = \frac{50}{100} \cdot 9 = 4.5 \) → round up to 5 → \( Q_2 = \) 5th value = \( 25 \)
3
\( L_3 = \frac{75}{100} \cdot 9 = 6.75 \) → round up to 7 → \( Q_3 = \) 7th value = \( 31 \)

Example 3: Finding the 90th Percentile

Using the same 12 wait-time values: 2, 3, 4, 5, 5, 6, 7, 8, 9, 10, 12, 15

1
We want \( P_{90} \). Compute the locator: \( L = \frac{90}{100} \cdot 12 = 10.8 \)
2
\( 10.8 \) is not whole → round up to 11.
3
\( P_{90} = \) 11th value = \(12\) minutes.

Outlier Detection with IQR

From Example 1: \( Q_1 = 4.5 \), \( Q_3 = 9.5 \), \( \text{IQR} = 5 \).

Lower Fence
\( 4.5 - 1.5 \times 5 = -3 \)
No values below this.
Upper Fence
\( 9.5 + 1.5 \times 5 = 17 \)
Max is \(15\), so no outliers.

Interpreting Percentile Rank

Sometimes you know a data value and need its percentile rank. The formula is:

Example: In our 12-customer data set, what is the percentile rank of a \(7\)-minute wait?

1
Values \( \leq 7 \): 2, 3, 4, 5, 5, 6, 7 → count = \(7\)
2
\( \frac{7}{12} \times 100 \approx 58.3 \) → approximately the 58th percentile

Meaning: about 58% of customers waited \(7\) minutes or less.

Common Mistakes

✕ Forgetting to Sort
The locator formula only works on sorted data. Unsorted data gives wrong positions.
✕ Wrong Rounding Rule
When \( L \) is not whole, always round up: not to the nearest integer, not down.
✕ Confusing \( Q_2 \) with Mean
The median (\( Q_2 \)) is the middle value, not the arithmetic mean. They differ in skewed data.

Quick Reference Summary

Term Symbol Meaning
\( P_k \) \( k \)-th percentile \( k\% \) of values are at or below this
\( Q_1 \) \( P_{25} \) 25th percentile (lower quartile)
\( Q_2 \) \( P_{50} \) 50th percentile (median)
\( Q_3 \) \( P_{75} \) 75th percentile (upper quartile)
\( \text{IQR} \) \( Q_3 - Q_1 \) Spread of the middle 50%
Outlier Fences \( Q_1 - 1.5 \cdot \text{IQR} \), \( Q_3 + 1.5 \cdot \text{IQR} \) Boundaries for outlier detection

Question 1 of 5

A sorted data set has 20 values. Using the locator method, what position gives \( Q_1 \)?

Question 2 of 5

For the data set 3, 7, 8, 12, 14, 18, 21, 25, what is the IQR?

Question 3 of 5

If \( Q_1 = 20 \), \( Q_3 = 50 \), and \( \text{IQR} = 30 \), which value would be classified as an outlier?

Question 4 of 5

A student says "My test score is at the 60th percentile, so I scored 60%." Is this correct?

Question 5 of 5

Which measure of spread is most resistant to outliers?