Dispersion Calculator

Dispersion Calculator

See every common measure of spread for your data side by side: range, interquartile range, variance, standard deviation, mean and median absolute deviation, and coefficient of variation.

Range · IQR · s² · s · mean and median absolute deviation · CV

Enter at least four numbers to compare the measures of spread

What is Dispersion?

Dispersion is how spread out a set of data is. Two groups can share the same average and still be completely different: one tightly clustered, the other scattered widely. Measures of dispersion put a number on that difference.

Each measure answers a slightly different question. The range is the full width; the IQR is the width of the middle half; the standard deviation is a typical distance from the mean; the absolute deviations do the same without squaring; and the coefficient of variation expresses spread relative to the mean.

The biggest practical difference between them is robustness: how much a single extreme or mistyped value can change the answer. That decides which ones to trust on messy, real-world data.

Measures of Dispersion

Definitions as given in the NIST/SEMATECH e-Handbook of Statistical Methods. See Sources.

1. Based on position

Range = max − min
IQR = Q3 − Q1

2. Based on distance from the mean

Variance s² = Σ(x − x̄)² ÷ (n − 1) · standard deviation s = √s²
Mean absolute deviation = Σ|x − x̄| ÷ n
Coefficient of variation = s ÷ |x̄| × 100%

3. Based on distance from the median

Median absolute deviation = median of |x − median|

Multiplied by 1.4826, the median absolute deviation estimates the standard deviation for bell-shaped data, without being inflated by outliers.

Worked Example: Books Read by 15 Students

Given:
Books read in a term: 4, 8, 6, 5, 3, 7, 9, 2, 8, 6, 5, 4, 7, 3, 6.
Step 1:
Sort and find the centre:
2, 3, 3, 4, 4, 5, 5, 6, 6, 6, 7, 7, 8, 8, 9 · mean 5.53 · median 6
Step 2:
Position-based measures:
Range 9 − 2 = 7 · Q1 = 4, Q3 = 7 → IQR = 3
Step 3:
Distance-based measures:
SD 2.07 · mean absolute deviation 1.70 · median absolute deviation 2 · CV 37.3%
Result:
A typical student is about 2 books from the middle.

With no outliers, all the measures tell a consistent story. The table below shows what happens when one value is mistyped.

Which Measures Survive an Outlier

The books example, then the same data with one student's 9 books mistyped as 90.

Spread measures before and after introducing an outlier
MeasureOriginalWith 90Robust?
Range788No: set by the two most extreme values
Interquartile range33Yes: ignores the outer quarters
Standard deviation (sample)2.065621.9495No: squares large deviations
Variance (sample)4.2667481.781No: squared, so outliers count even more
Mean absolute deviation1.697810.5422Partly: less sensitive than the SD
Median absolute deviation22Yes: the most robust here
Coefficient of variation37.33%200.76%No: built on the SD

Common Dispersion Mistakes

  • Mixing up the two "MADs". Mean absolute deviation and median absolute deviation share an abbreviation but are different measures. Spell out which you mean.
  • Comparing spreads measured in different units. A standard deviation of 5 kg and one of 5 cm can't be compared directly. The coefficient of variation removes the units.
  • Using the standard deviation for strongly skewed data. A few large values inflate it. The IQR or median absolute deviation describes the bulk of the data better.
  • Forgetting that variance is squared. A variance of 4.27 books² is a standard deviation of 2.07 books. Compare standard deviations, not variances, with the data.

Dispersion Calculator FAQs

Which measure of dispersion is best?

For roughly symmetric data without outliers, the standard deviation. For skewed data or data with outliers, the IQR or median absolute deviation. For comparing groups on different scales, the coefficient of variation.

Why multiply the median absolute deviation by 1.4826?

For bell-shaped data, that factor makes it an estimate of the standard deviation, so you get an SD-like number that outliers can’t inflate.

Is high dispersion bad?

Not by itself. It’s a problem for a manufacturing process that should be consistent, and perfectly normal for something naturally varied, such as incomes or ages.

Why does the variance use n − 1?

It corrects for the mean being estimated from the same sample, giving an unbiased estimate of the population variance.

What is a robust measure?

One that a few extreme or wrong values can’t change much. The median absolute deviation can tolerate up to half the data being wild before it breaks down; the standard deviation can be ruined by one bad value.

Which quartile method does this page use?

The textbook median-of-halves method. The IQR calculator lets you switch to Excel’s methods.

Can dispersion be zero?

Only if every value is the same. Then every measure on this page is zero (and the coefficient of variation is undefined if the mean is also zero).

How do I report spread in a paper?

Usually mean ± standard deviation for symmetric data and median with IQR (or Q1–Q3) for skewed data. Say which measure you’re reporting.

Sources

Related Tools