Quartiles and the IQR
The interquartile range (IQR) measures how spread out the middle 50% of your data is. A small IQR means the data clusters tightly around the median; a large IQR indicates more variability. Because it uses only the middle values, the IQR is resistant to outliers — unlike the range (max − min) or the standard deviation, which are heavily influenced by extreme values.
The IQR is the foundation of box-and-whisker plots. The box spans Q1 to Q3, the line inside the box marks Q2 (median), and the whiskers extend to the Tukey fences.