Percentiles &
Interquartile Range
Learn to compute and interpret percentiles and the IQR: essential tools for summarizing data spread in biostatistics.
Why Do Percentiles Matter?
When a doctor tells you a child is in the 85th percentile for height, they mean the child is taller than 85% of children the same age. Percentiles convert raw data into a relative ranking that is easy to interpret.
In biostatistics, percentiles help us define reference ranges (e.g., normal blood pressure), identify outliers, and compare individuals to a population: all without assuming a specific distribution shape.
Defining the \(k\)-th Percentile
The \(k\)-th percentile (\(P_k\)) is the value below which \(k\)% of the data falls when the data are sorted in ascending order.
Visualizing Quartiles on Data
Formal Definitions
The Locator Method
There are several conventions for computing percentiles. A common textbook method uses the locator formula:
Percentile vs Percentile Rank
| Percentile | Percentile Rank | |
|---|---|---|
| Question it answers | What value is at the \(k\)-th position? | What percent of data falls at or below \(x\)? |
| Input | A percentage \(k\) | A data value \(x\) |
| Output | A data value | A percentage |
| Example | \(P_{75} = 16.5\) | A blood pressure of \(110 \text{ mmHg}\) is at the 40th percentile. |
How to Compute \(Q_1\), \(Q_3\), and \(\text{IQR}\)
Worked Example: Even Dataset
Dataset (resting heart rates in \(\text{bpm}\), already sorted):
58, 60, 63, 65, 68, 70, 72, 74, 78, 82
Box Plot: Heart Rate Data
Worked Example: Odd Dataset
Dataset (blood glucose levels in \(\text{mg/dL}\), sorted):
78, 82, 85, 90, 95, 100, 105, 112, 130
Worked Example: \(90\)-th Percentile
Using the same heart rate data:
58, 60, 63, 65, 68, 70, 72, 74, 78, 82
IQR and Outlier Detection
The IQR is the foundation of the \(1.5 \times \text{IQR}\) rule for identifying outliers. A value is a potential outlier if it falls outside the fences:
Why Use IQR Over Range?
| IQR | Range | |
|---|---|---|
| Definition | \(Q_3 - Q_1\) | \(\text{Max} - \text{Min}\) |
| Sensitivity to outliers | Resistant | Very sensitive |
| Data used | Middle 50% | Only 2 extreme values |
| Best for | Skewed or outlier-prone data | Quick, rough estimate |
| Biostatistics use | Reference ranges, clinical cutoffs | Quality control checks |
Common Mistakes
Question 1 of 5
A dataset has \(Q_1 = 20\) and \(Q_3 = 50\). What is the \(\text{IQR}\)?
Question 2 of 5
For the sorted dataset 3, 5, 7, 8, 12, 14, 18, 20, what is \(Q_1\)?
Question 3 of 5
A patient's cholesterol level is at the 40th percentile. What does this mean?
Question 4 of 5
Given \(Q_1 = 40\), \(Q_3 = 60\), and \(\text{IQR} = 20\), what is the upper fence for outlier detection?
Question 5 of 5
Which measure of spread is most resistant to outliers?