Range and Interquartile Range
Learn how to measure the spread of data using range and IQR.
Intermediate25 min15 problems
Definition
Range and interquartile range (IQR) are measures of spread: they tell you how spread out the data values are.
Range
The range is the difference between the largest and smallest values:
Interquartile Range (IQR)
The IQR measures the spread of the middle 50% of the data:
Where:
- (first quartile, also called lower quartile) = median of the lower half
- (third quartile, also called upper quartile) = median of the upper half
How we split the data (in this whole lesson and in the box plot): order the values and find the median. With an odd number of values, leave the median out of both halves; with an even number, split the list exactly in the middle. Some textbooks use a slightly different rule, so their quartiles can differ a little.
The IQR is more reliable than the range when there are extreme values (outliers), because it only looks at the middle half of the data.
Try it now
What is the range of this data set: ?
Interactive Visual
Box Plot Builder
Min
12
Q1
16.5
Median
25
Q3
33
Max
42
IQR (Q3 - Q1):16.5
Range:30
Sorted data:
12; 15; 18; 22; 25; 28; 31; 35; 42
n = 9
Click on parts of the box plot to learn what they represent.
Box Plot Builder
Min
20
Q1
23
Median
25.5
Q3
29
Max
30
IQR (Q3 - Q1):6
Range:10
Outliers:100
Sorted data:
20; 22; 24; 25; 26; 28; 30; 100
n = 8
Click on parts of the box plot to learn what they represent.
Interactive Sandbox
Expression Calculator
Try these:
History
No calculations yet
Practice Problems
15 problemsProblem 1 of 15
Easy
What is the range of this data set: ?
Glossary
- Range
- The difference between the maximum and minimum values in a dataset
- Interquartile Range (IQR)
- The difference between the third quartile () and first quartile (), representing the spread of the middle 50% of data
- Quartile
- Values that divide an ordered dataset into four equal parts
- Q1 (First Quartile)
- The median of the lower half of the data; about 25% of the values lie below it
- Q3 (Third Quartile)
- The median of the upper half of the data; about 75% of the values lie below it
- Outlier
- A data point that is significantly different from other values in the dataset