Skip to content

Interquartile Range

  • Summarizes the spread of the middle 50% of a dataset.
  • Computed from the 25th and 75th percentiles, so it is robust to extreme values.
  • Commonly used alongside mean and median to characterize a distribution.

The interquartile range (IQR) is a measure of the dispersion of a dataset. It is calculated as the difference between the 75th and 25th percentiles of a dataset. These percentiles are also known as the first and third quartiles.

To compute the IQR:

  • Sort the data in ascending order.
  • Find the 25th percentile (first quartile) and the 75th percentile (third quartile).
  • Subtract the 25th percentile from the 75th percentile.

Because the IQR uses the central 50% of the data, it is not affected by extreme values or outliers. In contrast, the range (maximum minus minimum) is greatly affected by extreme values, making the IQR a more robust measure of dispersion than the range.

Dataset: 1, 2, 3, 4, 5, 6, 7, 8, 9

Sorted: 1, 2, 3, 4, 5, 6, 7, 8, 9

25th percentile (average of 2nd and 3rd values): 2+32=2.5\frac{2+3}{2} = 2.5

75th percentile (average of 7th and 8th values): 7+82=7.5\frac{7+8}{2} = 7.5

IQR: 7.52.5=57.5 - 2.5 = 5

In this example, the IQR is 5.

Dataset: 1, 1, 2, 2, 3, 3, 4, 4, 5, 5

Sorted: 1, 1, 2, 2, 3, 3, 4, 4, 5, 5

25th percentile (average of 2nd and 3rd values): 1+22=1.5\frac{1+2}{2} = 1.5

75th percentile (average of 7th and 8th values): 4+42=4\frac{4+4}{2} = 4

IQR: 41.5=2.54 - 1.5 = 2.5

In this example, the IQR is 2.5. If an extreme value such as 100 is added to this dataset, the IQR remains 2.5 because the extreme value does not affect the 25th and 75th percentiles.

  • Used in conjunction with measures of central tendency (mean, median) to provide a more complete picture of a dataset’s distribution.
  • Comparing IQRs across datasets helps assess relative dispersion.
  • A large IQR combined with a low median may indicate a skewed distribution; a small IQR with a high mean may indicate a more evenly distributed dataset.
  • The IQR is not affected by extreme values or outliers because those values are outside the central 50% used in the calculation.
  • The range is sensitive to extreme values; the presence of outliers can greatly change the range but not the IQR.
  • Percentiles
  • Quartiles
  • Range
  • Mean
  • Median
  • Outliers