Quartiles split a sorted dataset into four equal-size parts:
- Q1 (25th percentile): one quarter below.
- Q2 (median, 50th): half below.
- Q3 (75th percentile): three quarters below.
Interquartile range (IQR) = , a robust measure of spread:
- Insensitive to outliers (unlike ).
- Spans the "middle 50%" of the data.
The 5-number summary () is the basis of the box plot: box from Q1 to Q3 with median line, whiskers extending to the most extreme values within , points beyond flagged as outliers.
Quartiles, like all percentiles, are non-parametric — no assumption about distribution shape, making them safer than mean/std for skewed or unknown distributions.