Interquartile Range (IQR)
April 12, 2026
Problem
Calculate IQR for {1, 3, 5, 7, 9, 11, 13, 15, 17}. Show IQR as the middle 50%.
Explanation
What is the IQR?
The interquartile range = . It measures the spread of the middle 50% of the data, ignoring the extreme 25% on each end. It's robust to outliers (unlike range or standard deviation).
Step-by-step: {1, 3, 5, 7, 9, 11, 13, 15, 17}
. Median = 9 (5th value).
Q1 = median of {1, 3, 5, 7} =
Q3 = median of {11, 13, 15, 17} =
IQR vs Range vs SD
- Range (): Uses only extremes. Very sensitive to outliers.
- IQR (): Uses only the middle 50%. Robust to outliers.
- SD: Uses all data. Moderately sensitive to outliers.
Try it in the visualization
The data is sorted. The middle 50% is highlighted. Q1 and Q3 are marked, and the IQR is shown as the distance between them.
Interactive Visualization
Parameters
Your turn
Got your own math or physics problem?
Turn any problem into an interactive visualization like this one — powered by AI, generated in seconds. Free to try, no credit card required.
Sign Up Free to Try It30 free visualizations every day