Interquartile range (IQR)

The interquartile range (IQR) is the spread of the middle half of the data, equal to the third quartile minus the first quartile.

The interquartile range measures how spread out the middle 50 percent of the data is, so it ignores the extreme quarters. You compute it as IQR=Q3Q1\text{IQR} = Q_3 - Q_1, the third quartile minus the first quartile. For example, if Q1=3Q_1 = 3 and Q3=9Q_3 = 9, then the IQR is 93=69 - 3 = 6. Because it drops the top and bottom quarters, the IQR is resistant to outliers and drives the 1.5 times IQR rule for flagging them.

More describing data terms, or browse the full statistics glossary.