Unlike the (total) range, the interquartile range is a robust statistic, having a breakdown point of 25%, and is thus often preferred to the total range.
The IQR is used to build box plots, simple graphical representations of a probability distribution.
For a symmetric distribution (so the median equals the midhinge, the average of the first and third quartiles), half the IQR equals the median absolute deviation (MAD).
The median is the corresponding measure of central tendency.
Data set in a table:
| i | x[i] | Quartile |
|---|---|---|
| 1 | 102 | |
| 2 | 104 | |
| 3 | 105 | Q1 |
| 4 | 107 | |
| 5 | 108 | |
| 6 | 109 | Q2 (median) |
| 7 | 110 | |
| 8 | 112 | |
| 9 | 115 | Q3 |
| 10 | 118 | |
| 11 | 118 |
From this table, the width of the interquartile range is 115 − 105 = 10.
Data set in a plain-text box plot:
+-----+-+
o * |-------| | |---|
+-----+-+
+---+---+---+---+---+---+---+---+---+---+---+---+ number line
0 1 2 3 4 5 6 7 8 9 10 11 12
For this data set:
[insert equations here]
The interquartile range and median of some common distributions are shown below
| Distribution | Median | IQR |
|---|---|---|
| Normal | μ | 2 Φ−1(0.75) ≈ 1.349 |
| Laplace | μ | 2b ln(2) |
| Cauchy | μ |