Skip to main content
Mathematics LibreTexts

44.3: Quartiles and Interquartile Range

  • Page ID
    40883
  • \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \) \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)\(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\) \(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\)\(\newcommand{\AA}{\unicode[.8,0]{x212B}}\)

    Lesson

    Let's look at other measures for describing distributions.

    Exercise \(\PageIndex{1}\): Notice and Wonder: Two Parties

    Here are dot plots that show the ages of people at two different parties. The mean of each distribution is marked with a triangle.

    clipboard_e3ba9c586ca52bb2d36bf1e638e6365c7.png
    Figure \(\PageIndex{1}\): Two dot plots from 5 to 45 by 5’s. Age in years. Top dot plot labeled data set A. Bottom dot plot labeled data set B.There is a red triangle indicated at 15 on “data set A” and at 20 on “data set B”. The data for “data set A” are as follows: 8 years, 12 dots. 10 years, 3 dots. 12 years, 1 dot. 15 years, red triangle. 36 years, 1 dot. 42 years, 1 dot. 44 years, 2 dots. The data for “data set B” are as follows: 7 years, 1 dot. 8 years, 1 dot. 9 years, 1 dot. 10 years, 2 dots. 15 years, 1 dot. 16 years, 1 dot. 20 years, 2 dots and 1 red triangle. 22 years, 1 dot. 23 years, 1 dot. 24 years, 1 dot. 28 years, 1 dot. 30 years, 1 dot. 33 years, 1 dot. 35 years, 1 dot. 38 years, 1 dot. 42 years, 1 dot.

    What do you notice and what do you wonder about the distributions in the two dot plots?

    Exercise \(\PageIndex{2}\): The Five-Number Summary

    Here are the ages of the people at one party, listed from least to greatest.

    \(7\qquad 8\qquad 9\qquad 10\qquad 10\qquad 11\qquad 12\qquad 15\qquad 16\qquad 20\qquad 20\qquad 22\qquad 23\qquad 24\qquad 28\qquad 30\qquad 33\qquad 35\qquad 38\qquad 42\)

      1. Find the median of the data set and label it “50th percentile.” This splits the data into an upper half and a lower half.
      2. Find the middle value of the lower half of the data, without including the median. Label this value “25th percentile.”
      3. Find the middle value of the upper half of the data, without including the median. Label this value “75th percentile.”
    1. You have split the data set into four pieces. Each of the three values that split the data is called a quartile.
      • We call the 25th percentile the first quartile. Write “Q1” next to that number.
      • The median can be called the second quartile. Write “Q2” next to that number.
      • We call the 75th percentile the third quartile. Write “Q3” next to that number.
    2. Label the lowest value in the set “minimum” and the greatest value “maximum.”
    3. The values you have identified make up the five-number summary for the data set. Record them here.
      minimum: _____ Q1: _____ Q2: _____ Q3: _____ maximum: _____
    4. The median of this data set is 20. This tells us that half of the people at the party were 20 years old or younger, and the other half were 20 or older. What do each of these other values tell us about the ages of the people at the party?
      1. the third quartile
      2. the minimum
      3. the maximum

    Are you ready for more?

    There was another party where 21 people attended. Here is the five-number summary of their ages.

    minimum: 5 Q1: 6 Q2: 27 Q3: 32 maximum: 60

    1. Do you think this party had more children or fewer children than the earlier one? Explain your reasoning.
    2. Were there more children or adults at this party? Explain your reasoning.

    Exercise \(\PageIndex{3}\): Range and Interquartile Range

    1. Here is a dot plot that shows the lengths of Elena’s bus rides to school, over 12 days.
    clipboard_e54e33f0523d335757ec4b43f5eefaa04.png
    Figure \(\PageIndex{2}\)

    Write the five-number summary for this data set. Show your reasoning.

    1. The range is one way to describe the spread of values in a data set. It is the difference between the maximum and minimum. What is the range of Elena’s travel times?
    2. Another way to describe the spread of values in a data set is the interquartile range (IQR). It is the difference between the upper quartile and the lower quartile.
    1. What is the interquartile range (IQR) of Elena’s travel times?
    2. What fraction of the data values are between the lower and upper quartiles?
    1. Here are two more dot plots.
    clipboard_e50f281dd20abfbe26fe52d53437b7c7f.png
    Figure \(\PageIndex{3}\): Two dot plots from 14 to 28 by 2's. Top dot plot labeled data set A. Bottom dot plot labeled data set B. Top dot plot beginning at 14, number of dots above each increment of 1 is 0, 1, 3, 3, 1, 0, 0, 3, 1, 2, 3, 4, 1, 3, 1. Bottom dot plot beginning at 14, number of dots above each increment of 1 is 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 3, 8, 2, 6, 3.

    Without doing any calculations, predict:

    1. Which data set has the smaller range?
    2. Which data set has the smaller IQR?
    1. Check your predictions by calculating the range and IQR for the data in each dot plot.

    Summary

    Earlier we learned that the mean is a measure of the center of a distribution and the MAD is a measure of the variability (or spread) that goes with the mean. There is also a measure of spread that goes with the median. It is called the interquartile range (IQR).

    Finding the IQR involves splitting a data set into fourths. Each of the three values that splits the data into fourths is called a quartile.

    • The median, or second quartile (Q2), splits the data into two halves.
    • The first quartile (Q1) is the middle value of the lower half of the data.
    • The third quartile (Q3) is the middle value of the upper half of the data.

    For example, here is a data set with 11 values.

    \(12\) \(19\) \(20\) \(21\) \(22\) \(33\) \(34\) \(35\) \(40\) \(40\) \(49\)
    Q1 Q2 Q3
    Table \(\PageIndex{1}\)
    • The median is 33.
    • The first quartile is 20. It is the median of the numbers less than 33.
    • The third quartile 40. It is the median of the numbers greater than 33.

    The difference between the maximum and minimum values of a data set is the range. The difference between Q3 and Q1 is the interquartile range (IQR). Because the distance between Q1 and Q3 includes the middle two-fourths of the distribution, the values between those two quartiles are sometimes called the middle half of the data.

    The bigger the IQR, the more spread out the middle half of the data values are. The smaller the IQR, the closer together the middle half of the data values are. This is why we can use the IQR as a measure of spread.

    A five-number summary can be used to summarize a distribution. It includes the minimum, first quartile, median, third quartile, and maximum of the data set. For the previous example, the five-number summary is 12, 20, 33, 40, and 49. These numbers are marked with diamonds on the dot plot.

    clipboard_ed576f1ad313a22b6020e3bffd9a190a0.png
    Figure \(\PageIndex{4}\): A dot plot. The numbers 10 through 50, in increments of 5, are indicated. There are diamonds indicated at 12, 20, 33, 40 and 49. The data are as follows: 12, 1 dot; 19, 1 dot; 20, 1 dot; 21, 1 dot; 22, 1 dot; 33, 1 dot; 34, 1 dot; 35, 1 dot; 40, 1 dot; 49, 2 dots.

    Different data sets can have the same five-number summary. For instance, here is another data set with the same minimum, maximum, and quartiles as the previous example.

    clipboard_e075e501a282edfb89612467ed6c7d86d.png
    Figure \(\PageIndex{5}\): A dot plot. The numbers 10 through 50, in increments of 5, are indicated. There are diamonds indicated at 12, 20, 33, 40, and 49. The data are as follows: 12, 1 dot; 14, 1 dot; 16, 1 dot; 18, 1 dot; 20, 1 dot; 24, 1 dot; 26, 1 dot; 28, 1 dot; 31, 1 dot; 33, 2 dots; 36, 1 dot; 38, 1 dot; 39, 1 dot; 40, 1 dot; 44, 1 dot; 46, 1 dot; 48, 1 dot; 49, 1 dot.

    Glossary Entries

    Definition: Interquartile Range (IQR)

    The interquartile range is one way to measure how spread out a data set is. We sometimes call this the IQR. To find the interquartile range we subtract the first quartile from the third quartile.

    For example, the IQR of this data set is 20 because \(50-30=20\).

    \(22\) \(29\) \(30\) \(31\) \(32\) \(43\) \(44\) \(45\) \(50\) \(50\) \(59\)
    Q1 Q2 Q3
    Table \(\PageIndex{2}\)

    Definition: Median

    The median is one way to measure the center of a data set. It is the middle number when the data set is listed in order.

    For the data set 7, 9, 12, 13, 14, the median is 12.

    For the data set 3, 5, 6, 8, 11, 12, there are two numbers in the middle. The median is the average of these two numbers. \(6+8=14\) and \(14\div 2=7\).

    Definition: Quartile

    Quartiles are the numbers that divide a data set into four sections that each have the same number of values.

    For example, in this data set the first quartile is 30. The second quartile is the same thing as the median, which is 43. The third quartile is 50.

    \(22\) \(29\) \(30\) \(31\) \(32\) \(43\) \(44\) \(45\) \(50\) \(50\) \(59\)
    Q1 Q2 Q3
    Table \(\PageIndex{3}\)

    Definition: Range

    The range is the distance between the smallest and largest values in a data set. For example, for the data set 3, 5, 6, 8, 11, 12, the range is 9, because \(12-3=9\).

    Practice

    Exercise \(\PageIndex{4}\)

    Suppose that there are 20 numbers in a data set and that they are all different.

    1. How many of the values in this data set are between the first quartile and the third quartile?
    2. How many of the values in this data set are between the first quartile and the median?

    Exercise \(\PageIndex{5}\)

    In a word game, 1 letter is worth 1 point. This dot plot shows the scores for 20 common words.

    clipboard_e6ffcd9a26ea4d8a7a7a10436b2587fb2.png
    Figure \(\PageIndex{6}\)
    1. What is the median score?
    2. What is the first quartile (Q1)?
    3. What is the third quartile (Q3)?
    4. What is the interquartile range (IQR)?

    Exercise \(\PageIndex{6}\)

    Mai and Priya each played 10 games of bowling and recorded the scores. Mai’s median score was 120, and her IQR was 5. Priya’s median score was 118, and her IQR was 15. Whose scores probably had less variability? Explain how you know.

    Exercise \(\PageIndex{7}\)

    Here are five dot plots that show the amounts of time that ten sixth-grade students in five countries took to get to school. Match each dot plot with the appropriate median and IQR.

    clipboard_e9d8437d84791babd560976728e838aa7.png
    Figure \(\PageIndex{7}\): Five dot plots for "travel time in minutes" labeled “United States”, “Canada”, “Australia”, “New Zealand”, and “South Africa”. Each dot plot has the numbers 0 through 60, in increments of 10. There are also tick marks midway between. The approximate data for "United States" are as follows: 2 minutes, 2 dots; 7 minutes, 2 dots; 8 minutes, 3 dots; 11 minutes, 1 dot; 17 minutes, 1 dot; 20 minutes, 1 dot. The approximate data for "Canada" are as follows: 1 minute, 1 dot; 2 minutes, 1 dot; 5 minutes, 2 dots; 7 minutes, 2 dots; 10 minutes, 1 dot; 15 minutes, 1 dot; 28 minutes, 1 dot; 30 minutes, 1 dot. The approximate data for "Australia" are as follows: 5 minutes, 1 dot; 7 minutes, 1 dot; 9 minutes, 1 dot; 15 minutes, 2 dots; 20 minutes, 3 dots; 25 minutes, 1 dot; 45 minutes, 1 dot. The approximate data for "New Zealand" are as follows: 3 minutes, 1 dot; 6 minutes, 1 dot; 7 minutes, 1 dot; 10 minutes, 2 dots; 15 minutes, 3 dots; 20 minutes, 1 dot; 24 minutes, 1 dot. The approximate data for "South Africa" are as follows: 5 minutes, 2 dots; 10 minutes, 2 dots; 15 minutes, 2 dots; 30 minutes, 1 dot; 40 minutes, 1 dot; 45 minutes, 1 dot; 60 minutes, 1 dot.
    1. Median: 17.5, IQR: 11
    2. Median: 15, IQR: 30
    3. Median: 8, IQR: 4
    4. Median: 7, IQR: 10
    5. Median: 12.5, IQR: 8

    Exercise \(\PageIndex{8}\)

    Draw and label an appropriate pair of axes and plot the points. \(A=(10,50), B=(30,25), C=(0,30), D=(20,35)\)

    (From Unit 7.3.2)

    Exercise \(\PageIndex{9}\)

    There are 20 pennies in a jar. If 16% of the coins in the jar are pennies, how many coins are there in the jar?

    (From Unit 6.2.2)


    44.3: Quartiles and Interquartile Range is shared under a CC BY 4.0 license and was authored, remixed, and/or curated by LibreTexts.

    • Was this article helpful?