CCalclabhub

Statistics

Interquartile range

Subtract the lower quartile from the upper quartile. The result is the width of the central fifty per cent of the sorted observations and is expressed in the original units.

Last updated

The Formula

IQR = Q3 - Q1

Subtract the lower quartile from the upper quartile. The result is the width of the central fifty per cent of the sorted observations and is expressed in the original units.

SymbolMeaning
IQRInterquartile range
Q1Lower quartile
Q3Upper quartile

What Each Symbol Means

IQRsame as data

Interquartile range

The spread of the middle half of the data, 11 for the default values.

Q1same as data

Lower quartile

The mean of x1 and x2 in this five-value model, equal to 5 by default.

Q3same as data

Upper quartile

The mean of x4 and x5 in this five-value model, equal to 16 by default.

See It Worked With Real Numbers

A formula on its own does not tell you which number goes where. The how to calculate the interquartile range page applies this equation to a concrete case, shows every intermediate step, and names the mistakes that produce a wrong answer even when the algebra is right.

Where This Formula Appears

This equation is the working core of How To Calculate The Interquartile Range, filed under Math. Every number the guide produces comes from substituting into this one line.

Common Questions

What is the formula for Interquartile range?

The formula for Interquartile range is IQR = Q3 - Q1. Subtract the lower quartile from the upper quartile. The result is the width of the central fifty per cent of the sorted observations and is expressed in the original units.

What does each symbol in Interquartile range stand for?

IQR is interquartile range; Q1 is lower quartile; Q3 is upper quartile.

What units should I use with Interquartile range?

Substitute IQR in same as data, Q1 in same as data, Q3 in same as data. Convert every input to those units before you start, because the equation only returns the right answer when the units on both sides agree.

What is a common mistake when using Interquartile range?

Forgetting to sort the input values. The expressions average the first two and last two entries, so they only produce quartiles when the list is in ascending order. Entering the numbers in the order they were collected gives an arbitrary difference between two averages. Sort the five values first, and re-sort after any edit, before reading the output.