Interquartile range

The interquartile range of a set of numbers is the difference between the third quartile (sometimes called the upper quartile) and the first quartile (sometimes called the lower quartile).

But what is a quartile?

Quartiles

A quartile is, as it sounds, (a multiple of) a quarter of the way through a set of data. It’s the value that you get when you go to the number 1/4 of the way into your dataset (as well as 2/4 and 3/4 of the way in).

Usually, we just focus on:

Finding the first quartile

The first quartile is half way through the lower half of the dataset.

That means that we can find it like this:

  1. Arrange the numbers in order from smallest to largest.
  2. Find the median of the dataset.
  3. Get rid of the median, and everything above it.
    • Doing that leaves us with the lower half of the dataset.
  4. Find the median of the lower half of the dataset.
    • That median is the first quartile.

Finding the third quartile

The third quartile is half way through the upper half of the dataset.

So, similarly to finding the first quartile, we can find it like this:

  1. Arrange the numbers in order from smallest to largest.
  2. Find the median of the dataset.
  3. Get rid of the median, and everything below it.
    • Doing that leaves us with the upper half of the dataset.
  4. Find the median of the upper half of the dataset.
    • That median is the third quartile.

Interquartile range

The interquartile range is the difference between the third quartile and the first quartile.

interquartile range = third quartile - first quartile

Examples

Find the lower quartile of \{1, 4, 9, 16, 25\}

Find the upper quartile of \{1, 4, 9, 16, 25\}

Find the interquartile range of \{1, 4, 9, 16, 25\}

Find the interquartile range of \{3, 1, 4, 1, 5, 9, 2, 6, 5, 8, 11\}