Interquartile Range (IQR)
You'll learn how to measure the spread of the middle 50% of your data, ignoring outliers.
What Is the IQR?
The Interquartile Range (IQR) is a measure of variability that tells you how spread out the middle half of your data is. Unlike the range (which uses the minimum and maximum values), the IQR focuses on the middle 50% of your dataset, making it resistant to outliers and extreme values.
Understanding Quartiles
Think of your data as a line of people sorted by height. Quartiles divide this line into four equal parts:
- Q1 (First Quartile): The value at the 25% mark — one quarter of your data falls below this point
- Q3 (Third Quartile): The value at the 75% mark — three quarters of your data falls below this point
The median you learned earlier sits right between them at Q2 (50%).
Calculating the IQR
The formula is beautifully simple:
IQR = Q3 − Q1
That's it! You subtract the first quartile from the third quartile. This gives you the range that contains the middle 50% of your observations.
Why Use IQR?
Imagine measuring household income in a neighborhood where most families earn 80,000, but one billionaire lives there. The range and standard deviation would be wildly inflated by that outlier. The IQR, however, would still accurately reflect the typical spread of incomes because it ignores the extreme value.
The IQR works alongside the median (another outlier-resistant measure) to give you a robust picture of your data's center and spread.
Key Takeaway: The IQR measures the spread of the middle 50% of your data by calculating Q3 − Q1, making it an excellent choice when outliers might distort other variability measures.