Tutorials › Introduction to Statistics › The Interquartile Range as Middle-Half Spread

Center, Spread and Position · Tutorial 153 of 996

The Interquartile Range as Middle-Half Spread

Calculate the interquartile range from quartiles and explain what its width says about the middle half of a data set.

Beginner 9 min read

What You'll Learn

  • Define the interquartile range as the third quartile minus the first quartile.
  • Calculate the IQR using quartiles obtained under a stated convention.
  • Interpret the IQR as a width in the original measurement units.
  • Distinguish the IQR width from the interval between the quartiles.
  • Explain why ties can affect how many observations fall within the quartile endpoints.
  • Compare IQR values without confusing them with a measure of center.

Introduction

A summary of a data set should tell us not only where observations tend to fall, but also how spread out they are. The interquartile range, usually shortened to IQR, describes spread by focusing on the span from the first quartile to the third quartile. It is useful when the question is specifically about how wide the middle-half portion of the data is.

The IQR is a difference between two quartiles, not a measure of the location of the data. Its value is reported in the same units as the observations. To calculate it, first obtain \(Q_1\) and \(Q_3\) using a stated quartile convention; then subtract the first quartile from the third.

Definition: The interquartile range is the third quartile minus the first quartile: $$ \mathrm{IQR}=Q_3-Q_1. $$ Here, \(Q_1\) is the first quartile and \(Q_3\) is the third quartile. The IQR is the width of the interval from \(Q_1\) to \(Q_3\), expressed in the original units of the data.

Finding and Interpreting the IQR

Quartiles divide ordered data into four sections. The first quartile marks the lower-quarter boundary, and the third quartile marks the upper-quarter boundary. The interval from \(Q_1\) to \(Q_3\) spans the middle half of the distribution. For a finite data set, the exact quartile values depend on the convention used to calculate them. Use the convention specified for the data, and do not switch conventions partway through a calculation.

The IQR calculation itself is simple once the quartiles are known: subtract the lower endpoint from the upper endpoint. The result is a distance, so it cannot be negative when the quartiles are correctly ordered. For example, if a time measurement has \(Q_1=12\) minutes and \(Q_3=19\) minutes, the interval from the quartiles is 7 minutes wide.

Worked Example: Finding the IQR for Eight Measurements

A hypothetical group of eight students reports how many minutes it took each student to walk to campus. The ordered times are 12, 14, 15, 16, 18, 20, 22, and 26 minutes. Use the median-of-halves convention to find the IQR and interpret it.

There are eight values, so split the ordered observations into a lower half and an upper half:

Lower half: 12, 14, 15, 16. Its median is the mean of its two middle values: \(Q_1=(14+15)/2=14.5\) minutes.

Upper half: 18, 20, 22, 26. Its median is also the mean of its two middle values: \(Q_3=(20+22)/2=21\) minutes.

Now subtract the first quartile from the third quartile:

$$ \mathrm{IQR}=Q_3-Q_1=21-14.5=6.5\text{ minutes}. $$

Under this quartile convention, the span from the first to the third quartile is 6.5 minutes wide. In context, the middle-half span of these students’ walking times extends from 14.5 to 21 minutes. The IQR is the width of that span; it is not a claim that every student took a time within those endpoints.

Why Subtracting the Quartiles Gives a Width

The definition follows from measuring the distance between two points on a number line. If an interval begins at a lower endpoint \(a\) and ends at an upper endpoint \(b\), its width is \(b-a\). The quartile interval begins at \(Q_1\) and ends at \(Q_3\), so its width is \(Q_3-Q_1\).

Because the first quartile is at or below the third quartile, \(Q_1\leq Q_3\). Subtracting the lower endpoint from the upper endpoint therefore gives a nonnegative width. This also explains why reversing the subtraction would not give the IQR: \(Q_1-Q_3\) would be zero or negative, rather than the distance from the first quartile to the third.

$$ Q_1\leq Q_3 \quad\Longrightarrow\quad \mathrm{IQR}=Q_3-Q_1\geq 0. $$

The quartiles indicate the endpoints of the middle-half span, while the IQR reports only its width. Knowing the width does not, by itself, identify where that span is located. For instance, an IQR of 6 minutes could describe a quartile interval from 4 to 10 minutes or from 20 to 26 minutes.

Worked Example: Calculating Quartiles for Nine Values

Suppose a hypothetical set of nine commute times, in minutes, is already ordered as 5, 7, 8, 8, 10, 11, 13, 16, and 20. Use the median-of-halves convention to calculate and interpret the IQR.

The middle observation is 10 minutes. For the median-of-halves method, leave that overall median out when forming the two halves. The lower half is 5, 7, 8, 8. Its two middle values are 7 and 8, so \(Q_1=(7+8)/2=7.5\) minutes.

The upper half is 11, 13, 16, 20. Its two middle values are 13 and 16, so \(Q_3=(13+16)/2=14.5\) minutes.

Subtract the quartiles:

$$ \mathrm{IQR}=14.5-7.5=7\text{ minutes}. $$

The interval from \(Q_1=7.5\) minutes to \(Q_3=14.5\) minutes has a width of 7 minutes. Thus, the middle-half span of the commute times is 7 minutes wide under the stated convention. The value 7 minutes is not a commute time or a quartile; it is the difference between two times.

Comparing Middle-Half Spans

When two data sets measure the same variable in the same units, their IQRs can be compared as widths. A larger IQR means a wider span between the first and third quartiles. It does not tell us which group has the larger typical value, because the IQR measures spread rather than center. To describe where a group’s middle-half span lies, report its quartile endpoints as well as its IQR.

The comparison also requires matching units and a clear quartile convention. An IQR of 8 minutes can be compared with another IQR in minutes, but not directly with an IQR in kilometers as though the numbers measured the same thing.

Worked Example: Comparing Two IQRs

Two hypothetical teams record the time, in minutes, needed to complete a short task. Each team has eight recorded times. Using the median-of-halves convention, compare the width of their middle-half spans.

Team A’s ordered times are 2, 3, 4, 5, 6, 7, 8, and 9 minutes. The lower half is 2, 3, 4, 5, giving \(Q_1=(3+4)/2=3.5\) minutes. The upper half is 6, 7, 8, 9, giving \(Q_3=(7+8)/2=7.5\) minutes. Therefore:

$$ \mathrm{IQR}_A=7.5-3.5=4\text{ minutes}. $$

Team B’s ordered times are 2, 3, 4, 5, 10, 11, 12, and 13 minutes. The lower half gives \(Q_1=(3+4)/2=3.5\) minutes. The upper half gives \(Q_3=(11+12)/2=11.5\) minutes. Therefore:

$$ \mathrm{IQR}_B=11.5-3.5=8\text{ minutes}. $$

Team B’s IQR is 8 minutes, compared with 4 minutes for Team A. Thus, Team B’s quartile interval is 4 minutes wider than Team A’s. This comparison concerns the widths of the middle-half spans; the IQRs alone do not tell us the full positions of those spans or identify which team’s times are generally higher.

What the IQR Does and Does Not Say

The IQR is a compact way to describe the width of the middle-half span, but it does not provide a complete description of a data set. Two data sets can have the same IQR even when their quartile intervals are located in different places. They can also have the same quartiles but differ in the way values are arranged within or outside that interval. The IQR retains a particular piece of information—middle-half width—not every feature of the distribution.

There is also a small but important qualification to the phrase “the middle half.” Quartiles are boundaries, and data can contain ties or values exactly equal to a boundary. Consequently, the number of observations that fall inside the inclusive interval from \(Q_1\) to \(Q_3\) need not be exactly half the sample. The interpretation is that the quartiles mark the span associated with the middle half under the chosen convention, not that precisely 50% of the observed values must lie strictly between the endpoints.

Key takeaway: Find \(Q_1\) and \(Q_3\) using a consistent quartile convention, then calculate \(\mathrm{IQR}=Q_3-Q_1\). Interpret the result as the width, in the original units, of the span from the first quartile to the third quartile.

Common Mistakes

  • Subtracting in the wrong order. Writing \(Q_1-Q_3\) reverses the endpoints. The IQR is \(Q_3-Q_1\), which gives the nonnegative width from the lower quartile to the upper quartile.
  • Calling the IQR an interval. If \(Q_1=7\) and \(Q_3=12\), the interval is from 7 to 12, while the IQR is the width \(12-7=5\). Report the interval and the width distinctly.
  • Leaving out the units. If the measurements are in minutes, then the IQR is in minutes. An answer of “5” is incomplete when “5 minutes” is meaningful in context.
  • Treating the IQR as a center. A difference between quartiles describes width, not a typical observation. State the quartile endpoints if the location of the span matters.
  • Using inconsistent quartile conventions. Calculate both quartiles according to the same specified rule. Different conventions can yield different quartiles and therefore different IQRs for a finite data set.

Check Your Understanding

Try these questions without looking back.

  1. A data set has \(Q_1=18\) kilograms and \(Q_3=27\) kilograms. Calculate the IQR and state what it measures.
  2. A data set has a first quartile of 42 seconds and an IQR of 11 seconds. Find the third quartile.
  3. Explain the difference between an IQR of 6 hours and a quartile interval from 3 to 9 hours.
  4. Why must the IQR be calculated as the third quartile minus the first quartile rather than the reverse?
  5. Two groups have IQRs of 5 centimeters and 8 centimeters. What can you conclude about their middle-half spans, and what can you not conclude from those two values alone?