Quartile vs IQR

Both terms below come up in the same part of the course, and students mix them up. Here is each one defined on its own, side by side, so you can see where they part company.

Quartile

Describing data

A quartile is one of three values that divide an ordered data set into four groups of roughly equal size.

Quartiles split ordered data into four parts, marked by the first quartile Q1Q_1, the median, and the third quartile Q3Q_3. The first quartile is the median of the lower half and the third quartile is the median of the upper half. For example, in 2, 4, 6, 8, 10 the median is 6, so you exclude it and get Q1=3Q_1 = 3 and Q3=9Q_3 = 9. This site uses the median-excluded convention (the TI-84 method), which drops the overall median when the count is odd.

Full entry for quartile

Interquartile range (IQR)

Describing data

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.

Full entry for IQR

Where each one fits in the course