๐ง Waitโฆ Whatโs the Interquartile Range?
Great question!
The Interquartile Range, or IQR, is a way to measure how spread out the middle 50% of your data is. It helps you understand how โtightly packedโ or โspread outโ your values areโwithout being tricked by extreme values (aka outliers).
In short:
IQR = Q3 โ Q1
Where:
- Q1 (1st Quartile) is the median of the lower half of your data
- Q3 (3rd Quartile) is the median of the upper half of your data
Table of Contents
๐งฎ Step-by-Step: How to Calculate IQR
Letโs walk through it together with an example!
๐ Example Data Set
4, 7, 10, 15, 18, 21, 25, 29, 33
Arrange the numbers in order
(Already done โ )
Find the Median (Middle Value)
There are 9 numbers, so the middle one is: Median = 18
(This just helps us split the data into halves.)
Split the data into two halves
- Lower half:
4, 7, 10, 15
- Upper half:
21, 25, 29, 33
(Exclude the median if there’s an odd number of values.)
Find Q1 and Q3
- Q1 = Median of lower half =
(7 + 10)/2 = 8.5
- Q3 = Median of upper half =
(25 + 29)/2 = 27
Subtract to find the IQR
IQR = Q3 โ Q1
IQR = 27 โ 8.5 = 18.5
๐ So, the IQR is 18.5!

๐ก Why Is IQR Useful?
- It tells you where the โmiddle chunkโ of your data lies.
- It ignores outliers (super high or low numbers).
- It’s great for comparing consistency between data sets.
โ ๏ธ Quick Tips
- Always sort your data first!
- If you have an even number of values, finding medians means averaging the middle two.
- IQR is especially handy when youโre looking at box plots or checking for outliers (which are usually 1.5รIQR above Q3 or below Q1).
๐ฆ Wrapping It Up
The Interquartile Range is like the heart of your dataโit tells you how tightly your core values are packed. Itโs a super handy tool in statistics, data science, and even school test scores.
Just remember: โก๏ธ IQR = Q3 โ Q1
โฆand youโre golden!