Topics in this sectionQuartiles and Interquartile Range2 topics
- Quartiles
- Interquartile Range
When we want to know how spread out a set of numbers is, we use measures of spread. One of the most useful measures is called the interquartile range, or IQR. It tells us the width of the middle 50% of the data — the numbers that lie between the 25th percentile and the 75th percentile.
To find the IQR, we first need to understand quartiles. A quartile is a value that divides a sorted data set into four equal parts.
- Q1 (the first quartile) is the value below which 25% of the data falls. It is the median of the lower half of the data.
- Q2 (the second quartile) is simply the median — the middle value that divides the data into two equal halves.
- Q3 (the third quartile) is the value below which 75% of the data falls. It is the median of the upper half of the data.
The interquartile range is the difference between the third quartile and the first quartile:
IQR=Q3−Q1
This calculation gives us the range of the middle 50% of the data. It is a helpful measure because it ignores the extreme lowest and highest values, focusing on where most of the data actually sits.
A trader recorded the price of one jerry can of sorghum (in South Sudanese pounds) over 12 days at the Wau market:
| Day | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Price (SSP) | 180 | 195 | 200 | 210 | 215 | 220 | 225 | 230 | 240 | 250 | 260 | 280 |
Step 1: Confirm the data is ordered — it already is, from smallest to largest.
Step 2: Find Q2 (the median). With 12 numbers, the median is the average of the 6th and 7th values:
Q2=2220+225=222.5 SSP
Step 3: Find Q1. The lower half has 6 numbers: 180, 195, 200, 210, 215, 220. The median of these 6 numbers is the average of the 3rd and 4th values:
Q1=2200+210=205 SSP
Step 4: Find Q3. The upper half has 6 numbers: 225, 230, 240, 250, 260, 280. The median of these is the average of the 3rd and 4th values:
Q3=2240+250=245 SSP
Step 5: Calculate the IQR:
IQR=Q3−Q1=245−205=40 SSP
This means the middle 50% of sorghum prices during these 12 days fell within a SSP 40 range — between SSP 205 and SSP 245.
The IQR tells us about the spread of the central portion of our data. A small IQR means the middle values are close together — the data is consistent. A large IQR means there is more variation in the middle 50% of the data.
The IQR is also used to identify outliers. Any value that falls below Q1−1.5×IQR or above Q3+1.5×IQR is considered unusually far from the center. This helps traders, health workers, and teachers notice unusual numbers in their data.
In a county health clinic in Malakal, a nurse records the weights (in kg) of 20 children visiting over a week. Using the IQR, the nurse can see whether most children are in a similar weight range or if there is wide variation — information that helps identify which children may need nutritional support. The IQR focuses on the typical child, ignoring extreme weights that might skew the average.
Question
What does the interquartile range (IQR) measure?
Sign in to submit your answer and have it count toward your mastery.
Sign in to practiceTutor
Stuck? Ask me anything about this topic.
Sign in to ask the Sonza AI Tutor about this question.
Sign in to askDiscussions
No questions yet