Measures of variability

Analytika TeamLast reviewed 6 min read

An average on its own hides half the story. Two classes can both average 65% on an exam, one with everyone between 60 and 70, the other with scores from 20 to 100. Measures of variability capture that difference. They’re reported alongside every measure of central tendency, and they sit underneath every statistical test.

The four measures, using real data

We’ll use fuel economy (miles per gallon) for the 32 cars in R’s mtcars dataset, which has a mean of 20.09 mpg.

MeasureHow it’s calculatedMPG example
RangeMaximum − minimum33.9 − 10.4 = 23.5
Interquartile range (IQR)Q3 − Q1, the spread of the middle 50%22.80 − 15.43 = 7.38
VarianceAverage squared distance from the mean (dividing by n − 1)36.32 mpg²
Standard deviationSquare root of the variance6.03 mpg

Range

Quick and intuitive, but determined entirely by the two most extreme values. One unusual car changes it completely, and it tends to grow with sample size. Fine as extra context (“scores ranged from 12 to 98”), but weak as the main summary. See range and interquartile range.

Interquartile range

The range of the middle half of the data, from the 25th percentile (Q1) to the 75th (Q3). It ignores the top and bottom quarters, so outliers barely affect it. It’s the natural partner for the median, and it’s the box in a box plot.

Variance

The average of the squared distances from the mean. It’s central to statistical theory: ANOVA literally analyses it. But its units are squared (mpg²), which makes it hard to interpret directly. See variance.

Standard deviation

The square root of the variance, back in the original units. Roughly, it’s the typical distance of a value from the mean. For roughly normal data, about two-thirds of values fall within one SD of the mean. See standard deviation.

Which one should you report?

DataReport
Continuous, roughly symmetricMean and standard deviation
Continuous, skewed or with outliersMedian and IQR (often with the range)
Ordinal (such as single rating items)Median and IQR, plus frequencies
CategoricalNo spread measure. Report counts and percentages.

Robust vs sensitive measures

The range, variance and SD all react strongly to extreme values. The SD and variance do because squaring magnifies large distances. The IQR is robust: change the largest value from 33.9 to 339 and the IQR doesn’t move, while the SD balloons. That’s why skewed variables such as income are summarised with the median and IQR. See outliers for how to spot the values that cause trouble.

Why variability matters for tests

Every test compares a signal (a difference or relationship) with the noise in the data, and that noise is variability. The same 5-point difference between two groups is convincing when scores vary by ±2 and unremarkable when they vary by ±20. Less variable data give smaller standard errors, narrower confidence intervals and more powerful tests.

Our free descriptive statistics calculator gives all four measures for any column you paste in.

More in Descriptive statistics

Try it with the free tools

Run this on your own data

Upload a dataset and ask your question in plain English. Analytika checks the assumptions, picks the test, runs it, and writes the results up in APA format.

Try it free