STATISTICSDescriptive StatisticsStatistics Calculator
📊

Dispersion Calculator

Free dispersion calculator. Compute range, IQR, variance, standard deviation, MAD, coefficient of va

Run CalculatorExplore data analysis and statistical calculations

Why This Statistical Analysis Matters

Why: Statistical calculator for analysis.

How: Enter inputs and compute results.

Dispersion — All Measures of Spread

Range, IQR, Variance, SD, MAD, CV, Relative Range, Quartile Deviation. Side-by-side comparison.

Presets — Click to Load

Inputs

Dispersion Measures (n=15)
Range
23.0000
IQR
9.5000
s (SD)
6.5101
MAD
5.2889
CV (%)
7.69%
Relative Range (%)
27.17%
Quartile Dev.
4.7500
Variance (s²)
42.3810
Mean: 84.6667Min: 72.0000Max: 95.0000Q1: 80.0000 | Q3: 89.5000

Data Spread Visualization

Dispersion Measures Comparison

For educational and informational purposes only. Verify with a qualified professional.

Key Takeaways

  • Dispersion measures how spread out data is — Range, IQR, Variance, SD, MAD, CV, Relative Range, Quartile Deviation
  • Range = max − min (simple but sensitive to outliers)
  • IQR = Q3 − Q1 (robust; middle 50% spread)
  • Variance & SD: Population divides by N; sample divides by n−1 (Bessel's correction)
  • MAD = mean of |xᵢ − x̄| (less sensitive to outliers than SD)
  • CV = (SD/mean)×100% — relative measure for comparing different scales
  • Quartile Deviation = IQR/2 — semi-interquartile range

Did You Know?

📊Karl Pearson introduced the standard deviation and coefficient of variation in the early 1900s. SD became the dominant measure of spread in statistics.
🏭Six Sigma quality control targets SD so small that 99.99966% of output falls within spec — only 3.4 defects per million.
📏MAD (Mean Absolute Deviation) is more robust than SD — a single outlier has less impact. Used in robust statistics.
💰In finance, dispersion = risk. Higher SD of returns means more volatile investments. CV compares risk across different asset classes.
🔬Quartile deviation (QD) is half the IQR. It measures spread around the median and is resistant to extreme values.
📈Relative Range = (Range/mean)×100% — unitless, like CV. Useful when comparing datasets with different means.

Formulas Reference

Range = max − min

Total spread of the data

IQR = Q3 − Q1

Interquartile range; spread of middle 50%

Variance (sample) = Σ(xᵢ−x̄)²/(n−1)

Population: divide by N

SD = √Variance

Standard deviation in original units

MAD = Σ|xᵢ−x̄|/n

Mean absolute deviation

CV = (SD/mean)×100%

Coefficient of variation (relative)

Relative Range = (Range/mean)×100%

Range as percentage of mean

Quartile Deviation = IQR/2

Semi-interquartile range

When to Use Each Measure

Range & IQR

Range for quick overview; IQR when outliers are present. IQR is robust.

Variance & SD

Standard choice for symmetric, roughly normal data. SD in same units as data.

MAD

When outliers distort SD. MAD is less sensitive to extreme values.

CV & Relative Range

Compare variability across datasets with different units or scales.

Population vs Sample

Population: Use when you have data for every member (e.g., all students in a class). Variance = Σ(x−μ)²/N. Sample: Use when data is a subset. Variance = Σ(x−x̄)²/(n−1). The n−1 (Bessel's correction) gives an unbiased estimate of the population variance.

Step-by-Step Calculation Guide

Step 1 — Sort the data: Arrange all values in ascending order. This is required for computing quartiles, min, max, and range.

Step 2 — Compute the mean: Sum all values and divide by n. The mean is the center for variance, SD, MAD, CV, and relative range.

Step 3 — Range: Subtract the minimum from the maximum. Simple but sensitive to outliers.

Step 4 — Quartiles: Q1 = 25th percentile, Q3 = 75th percentile (linear interpolation). IQR = Q3 − Q1. Quartile deviation = IQR/2.

Step 5 — Variance: Sum of squared deviations from the mean. Divide by N (population) or n−1 (sample). SD = √Variance.

Step 6 — MAD: Sum of absolute deviations from the mean, divided by n.

Step 7 — CV and Relative Range: CV = (SD/mean)×100%; Relative Range = (Range/mean)×100%.

Interpretation Benchmarks

CV RangeInterpretation
< 10%Very low variability — data clusters tightly
10% – 20%Low to moderate variability
20% – 30%Moderate variability — typical for many datasets
> 30%High variability — wide spread relative to mean

Frequently Asked Questions

What is the difference between range and IQR?

Range = max − min; it uses only the two extreme values and is very sensitive to outliers. IQR = Q3 − Q1; it uses the middle 50% of the data and is robust to outliers.

Why use MAD instead of standard deviation?

MAD (mean absolute deviation) is less sensitive to outliers because it uses absolute values instead of squares. A single extreme value has less impact on MAD than on SD.

When is CV useful?

CV = (SD/mean)×100% is unitless. Use it to compare variability across datasets with different units (e.g., heights in cm vs weights in kg) or different scales (e.g., $10 stock vs $500 stock).

What is quartile deviation?

Quartile deviation = IQR/2. It measures the typical deviation from the median (since the median lies between Q1 and Q3). Also called semi-interquartile range.

Population vs sample variance?

Population variance divides by N; sample variance divides by n−1. Use sample when your data is a subset of a larger group. Sample variance is an unbiased estimator of the population variance.

Can dispersion measures be negative?

No. Range, IQR, variance, SD, MAD, CV, relative range, and quartile deviation are all non-negative. They measure spread, which is always ≥ 0.

How do I choose between SD and IQR?

Use SD for symmetric, roughly normal data. Use IQR when you have outliers or skewed data. IQR is robust; SD is more powerful for normal distributions.

What if the mean is zero?

CV and relative range are undefined when mean = 0. Use absolute measures (SD, MAD, range, IQR) instead. For data centered at zero, report SD or MAD.

Comparison Table

MeasureRobust to outliers?Units
RangeNoSame as data
IQRYesSame as data
SDNoSame as data
MADModerateSame as data
CVNo% (unitless)
Relative RangeNo% (unitless)
Quartile DeviationYesSame as data

Applications

Quality Control

Low dispersion = consistent process. SD and IQR monitor manufacturing variability.

Finance

Dispersion = risk. SD of returns measures volatility. CV compares risk across assets.

Research

Report SD with mean; IQR with median. Use MAD for skewed data.

Education

Test score spread: range for quick view; SD for detailed analysis.

Worked Example

Data: 3, 7, 8, 5, 12, 14, 21, 13, 18

Sorted: 3, 5, 7, 8, 12, 13, 14, 18, 21

Range: 21 − 3 = 18

Mean: 101/9 ≈ 11.22

Q1: 6, Q3: 16, IQR: 10, QD: 5

Variance (sample): Σ(x−x̄)²/8 ≈ 36.69, SD: ≈ 6.06

MAD: Σ|x−x̄|/9 ≈ 4.44

CV: (6.06/11.22)×100 ≈ 54%

Mathematical Properties

  • Range is the simplest measure but uses only two values. It increases with sample size (more data → more extreme values possible).
  • IQR is scale-invariant for linear transformations: IQR(aX+b) = |a|×IQR(X).
  • Variance is additive for independent random variables: Var(X+Y) = Var(X) + Var(Y) when X,Y independent.
  • SD has the same units as the data. Variance has squared units.
  • CV is scale-invariant: CV(aX) = CV(X) for a > 0. It is not location-invariant.
  • MAD satisfies 0 ≤ MAD ≤ SD for any dataset. MAD = SD only when all deviations have the same magnitude.

Excel & Software

Excel: Range = MAX−MIN. IQR: QUARTILE.EXC. Variance: VAR.S or VAR.P. SD: STDEV.S or STDEV.P. Python: numpy.ptp(), scipy.stats.iqr(), numpy.var(), numpy.std(). R: range(), IQR(), var(), sd().

Outlier Impact Example

Data: 10, 12, 14, 16, 18. Mean=14, SD≈2.83, IQR=6. Add outlier 100. New mean≈28.3, SD≈35.4, Range 8→90. IQR stays 6. This shows IQR and QD are robust; Range and SD are sensitive.

Detailed Example: All Measures

For data 2, 4, 6, 8, 10 (n=5): Sorted = 2,4,6,8,10. Sum=30, Mean=6. Deviations: −4,−2,0,2,4. Squared: 16,4,0,4,16. Sum squared=40. Variance (pop)=40/5=8, Variance (sample)=40/4=10. SD(pop)=√8≈2.83, SD(sample)=√10≈3.16. MAD = (4+2+0+2+4)/5 = 2.4. Range=8, Q1=3, Q3=8, IQR=5, QD=2.5. CV = (3.16/6)×100 ≈ 52.7%. Relative Range = (8/6)×100 ≈ 133%.

Choosing the Right Measure

Symmetric, normal data: Report mean ± SD. Use variance for statistical tests.

Skewed data: Report median and IQR. Avoid SD and variance.

Comparing different units: Use CV or relative range.

Quality control: SD for process capability; IQR for robustness.

Finance: SD of returns = volatility. CV for risk-adjusted comparison.

Relationships Between Measures

For normal distributions, IQR ≈ 1.35×SD. Range ≈ 4×SD for small samples (n<20) but increases with n. MAD is always ≤ SD; the ratio MAD/SD depends on the distribution shape. For uniform data, MAD/SD ≈ 0.5. Quartile deviation = IQR/2, so QD ≈ 0.675×SD for normal data.

Data Entry Tips

  • Separate values with commas, spaces, tabs, or newlines — any combination works.
  • Non-numeric values are ignored. Paste directly from Excel or CSV.
  • Duplicate values are kept and affect all measures.
  • For large datasets (100+ values), the calculator remains responsive.
  • Use the presets to quickly explore different dispersion scenarios.

Further Reading

NIST e-Handbook of Statistical Methods, Khan Academy Statistics, OpenIntro Statistics, Wolfram MathWorld (Standard Deviation, Quartile). For robust statistics, see Huber (1981) on MAD and related estimators.

Preset Descriptions

  • Exam Scores: Typical class distribution. Low to moderate dispersion (CV ~10–15%).
  • Income: High dispersion from income inequality. CV often 50%+.
  • Manufacturing: Tight tolerances. Very low dispersion (CV < 5%).
  • Temperature: Daily variation. Moderate dispersion.
  • Measurements: Repeated length measurements. Low dispersion.
  • Stock Returns: Volatile. Can have negative values; CV interpretation varies.
  • Race Times: Athletic performance. Moderate dispersion, often right-skewed.

Chart Interpretation

The Data Spread chart plots each value in order. Look for clusters, gaps, and outliers. The Dispersion Measures bar chart compares Range, IQR, SD, MAD, and Quartile Deviation. Note that Range and SD are often larger than IQR and MAD when outliers exist. Use the chart to see which measures dominate for your dataset.

Second Worked Example

Data: 100, 102, 104, 106, 108. Mean=104, Range=8, SD(pop)=√8≈2.83, CV=(2.83/104)×100≈2.7% (low). Compare to 10, 12, 14, 16, 18: same range and SD, but mean=14, CV≈20.2% (moderate). Same absolute spread, different relative spread — CV captures this.

Bessel's Correction Explained

Sample variance divides by n−1 instead of n because the sample mean x̄ is computed from the same data, making deviations (xᵢ−x̄) slightly smaller on average than (xᵢ−μ). Dividing by n−1 corrects this bias, giving an unbiased estimate of the population variance. For n=2, sample variance = (x₁−x₂)²/2; for n=1, variance is undefined.

Quick Reference: All Formulas

Range = max − min
IQR = Q3 − Q1
Variance(sample) = Σ(x−x̄)²/(n−1)
Variance(pop) = Σ(x−μ)²/N
SD = √Variance
MAD = Σ|x−x̄|/n
CV = (SD/mean)×100%
Relative Range = (Range/mean)×100%
Quartile Deviation = IQR/2

Typical CV Ranges by Domain

Exam scores: 10–20%. Manufacturing: <5%. Stock returns: 20–50%. Income: 40–80%. Lab measurements: <10%. Heights: ~5%. Use these as benchmarks when interpreting your results.

Why Multiple Measures?

No single measure captures all aspects of dispersion. Range is simple but sensitive. IQR is robust. SD is standard for normal data. MAD resists outliers. CV enables cross-scale comparison. Reporting several measures (e.g., mean ± SD and median [IQR]) gives a complete picture. This calculator computes all at once for side-by-side comparison.

Sample Size Considerations

For n<5, quartiles and IQR can be unstable. For n≥30, the sample SD is a good estimate of σ. Range tends to increase with n (more data → more extreme values). CV is less reliable when the mean is close to zero. Always report n alongside your dispersion measures.

Third Worked Example: Skewed Data

Data: 1, 2, 3, 4, 100 (right-skewed). Mean=22, Median=3. Range=99, IQR=2.5, SD≈43.2, MAD=19.2. The mean is pulled right by the outlier; SD is huge. IQR and median are robust. For such data, report median [IQR] rather than mean ± SD.

Units and Scale

Range, IQR, SD, and MAD have the same units as the data. Variance has squared units. CV and Relative Range are unitless (%). When you change units (e.g., meters to centimeters), absolute measures scale; CV and Relative Range stay the same.

Interpreting the Comparison Chart

The bar chart shows Range, IQR, SD, MAD, and Quartile Deviation. If Range is much larger than IQR, you likely have outliers. If SD and MAD are similar, the distribution is roughly symmetric. If SD >> MAD, there are large deviations (possibly outliers). Use this visual to quickly assess your data's spread characteristics.

Copy and Share

After computing, you can copy the results for reports or presentations. Include n, mean, and key dispersion measures. For publication, state whether population or sample variance was used. The side-by-side layout makes it easy to compare multiple datasets.

Related Concepts

Standard Error = SD/√n (uncertainty in the mean). Skewness and kurtosis describe distribution shape. Outlier detection often uses 1.5×IQR rule. The Empirical Rule (68-95-99.7) applies when data is approximately normal. See related calculators for Z-scores, normal distribution, and five-number summary.

Final Notes

This calculator provides a comprehensive view of dispersion. Use it for homework, research, quality control, or exploratory data analysis. All calculations update in real time as you type. The seven presets demonstrate real-world applications across domains. Choose population when you have complete data; sample when you have a subset. The charts and side-by-side comparison help you understand which measures best describe your data.

For symmetric data, report mean ± SD. For skewed data, report median [IQR]. Use CV when comparing across different units or scales.

Dispersion Calculator — All measures in one place. Range, IQR, Variance, SD, MAD, CV, Relative Range, Quartile Deviation.

Educational content: 9+ subsections. Formulas, FAQs, worked examples, applications, interpretation guides.

Summary

This calculator computes all major measures of dispersion: Range, IQR, Variance (pop & sample), SD, MAD, CV, Relative Range, Quartile Deviation. Use presets for real-world data. Charts show data spread and measure comparison.

Disclaimer: Choose population vs sample based on whether your data represents the entire group or a subset. For most research, use sample (n−1).

👈 START HERE
⬅️Jump in and explore the concept!
AI

Related Calculators