Skip to main content

Measuring Spread: Range, Variance, and Standard Deviation

Go beyond the average β€” learn to quantify how consistent or volatile your data is using range, IQR, variance, and standard deviation.

Lesson 5 of 10 Statistics & Probability Intermediate ⏱ 10 min read
πŸ”₯ Why This Matters

Two investment portfolios can have the same average annual return but completely different risk profiles. Two manufacturing processes can produce parts with the same mean diameter but one is wildly inconsistent. Knowing the center of your data is not enough β€” you need to know how spread out it is. Standard deviation is the language of risk in finance, quality in manufacturing, and significance in research. Understanding spread separates analysts who report numbers from those who understand them.

🎯 What You'll Learn
  • Calculate the range and interquartile range (IQR) as simple measures of spread
  • Compute population variance (\(\sigma^2\)) and standard deviation (\(\sigma\)) step by step
  • Interpret what a large vs. small standard deviation means about a dataset's consistency
πŸ“– Key Vocabulary
RangeMaximum value βˆ’ Minimum value. Quick but sensitive to outliers. Quartiles (Q1, Q2, Q3)Values that divide sorted data into four equal parts. Q2 is the median. IQR (Interquartile Range)Q3 βˆ’ Q1. The spread of the middle 50% of data β€” resistant to outliers. Variance (\(\sigma^2\))The average squared deviation from the mean. Measures how spread out values are. Standard Deviation (\(\sigma\))The square root of variance β€” in the same units as the original data. Mean Absolute Deviation (MAD)The average of the absolute differences from the mean β€” easier to interpret than variance.
Key Concept β€” Four Measures of Spread
\[ \text{Range} = x_{\max} - x_{\min} \qquad \text{IQR} = Q_3 - Q_1 \] \[ \sigma^2 = \frac{\sum (x_i - \mu)^2}{N} \qquad \text{(Population Variance)} \] \[ \sigma = \sqrt{\sigma^2} \qquad \text{(Population Standard Deviation)} \]

Use sample formulas (dividing by \(n-1\)) when working with a sample rather than the full population.

Same Mean, Very Different Spread

DatasetValuesMeanRangeStd Dev (\(\sigma\))
Consistent Team18, 19, 20, 21, 222041.41
Volatile Team5, 10, 20, 30, 35203011.40

Identical means, but the Volatile Team's Οƒ is 8Γ— larger β€” far less predictable.

Worked Example 1 β€” Basic: Range and IQR

Dataset: 4, 8, 15, 16, 23, 42. Find range and IQR.

\[ \text{Range} = 42 - 4 = \mathbf{38} \]

Sorted: 4, 8, 15, 16, 23, 42. Q1 = (4+8)/2 = 6. Q3 = (23+42)/2 = 32.5.

\[ \text{IQR} = 32.5 - 6 = \mathbf{26.5} \]
Worked Example 2 β€” Intermediate: Standard Deviation Step by Step

Find the population standard deviation of: 2, 4, 4, 4, 5, 5, 7, 9.

\[ \mu = \frac{2+4+4+4+5+5+7+9}{8} = \frac{40}{8} = 5 \] \[ \sigma^2 = \frac{(2-5)^2+(4-5)^2+(4-5)^2+(4-5)^2+(5-5)^2+(5-5)^2+(7-5)^2+(9-5)^2}{8} \] \[ = \frac{9+1+1+1+0+0+4+16}{8} = \frac{32}{8} = 4 \] \[ \sigma = \sqrt{4} = \mathbf{2} \]
Worked Example 3 β€” Real World: Manufacturing Tolerance

A bolt manufacturer targets a diameter of 10.00 mm. Quality control measures 5 sample bolts: 9.98, 10.01, 10.00, 9.99, 10.02 mm.

\[ \mu = \frac{9.98+10.01+10.00+9.99+10.02}{5} = 10.00 \text{ mm} \] \[ \sigma^2 = \frac{(0.02)^2+(0.01)^2+(0)^2+(0.01)^2+(0.02)^2}{5} = \frac{0.001}{5} = 0.0002 \] \[ \sigma \approx 0.014 \text{ mm} \]

The spec allows Β±0.05 mm. Since Οƒ = 0.014 mm is well within tolerance, the process is stable. If Οƒ were 0.04 mm, the engineer would flag a calibration issue before defects reach customers.

✏️ Quick Check
  1. Find the range of: 12, 45, 7, 33, 19.
  2. A dataset has \(\mu = 10\) and values 8, 10, 12. What is the population standard deviation?
  3. Why is IQR more useful than range when outliers are present?
β–Ά Show Answers
  1. Max=45, Min=7. Range = \(45-7 =\) 38.
  2. \(\sigma^2 = [(8-10)^2+(10-10)^2+(12-10)^2]/3 = (4+0+4)/3 = 8/3 \approx 2.67\). \(\sigma = \sqrt{2.67} \approx\) 1.63.
  3. IQR measures the middle 50% of data, so extreme outliers at the edges don't affect it. Range is dominated by the single largest and smallest values.
⚠️ Common Mistakes
  • Using population formula on a sample: When analyzing a sample, divide by \(n-1\) (not \(n\)) to get an unbiased estimate of the population variance. Most calculators label this \(s\) vs. \(\sigma\).
  • Forgetting to square the deviations: \((x - \mu)\) can be negative; squaring ensures all deviations contribute positively to variance. Summing raw deviations always gives zero.
  • Interpreting variance directly: Variance is in squared units (e.g., mmΒ²). Always take the square root to get standard deviation in the original units for meaningful interpretation.
βœ… Key Takeaways
  • Range = max βˆ’ min: fast but outlier-sensitive. IQR = Q3 βˆ’ Q1: robust measure of the middle 50%.
  • Variance (\(\sigma^2\)) = average squared deviation from the mean β€” always non-negative.
  • Standard deviation (\(\sigma\)) = \(\sqrt{\sigma^2}\): same units as data, the most commonly reported spread measure.
  • Low Οƒ = consistent, predictable data. High Οƒ = high variability and risk.
πŸ’Ό Career Connection β€” Quality Control Engineer & Financial Risk Analyst

Quality control engineers use standard deviation to monitor production consistency. If a packaging machine fills bottles with a mean of 500 mL and Οƒ = 2 mL, nearly all bottles fall between 494–506 mL (within Β±3Οƒ). When Οƒ increases, it's an early warning that the machine needs maintenance β€” before customer complaints or regulatory violations. In finance, the same standard deviation concept measures portfolio volatility: a fund with higher Οƒ in annual returns carries higher risk. Portfolio managers explicitly trade off expected return against Οƒ when constructing investment strategies.

Calculator Connection

The Basic Statistics Calculator computes range, variance, and standard deviation in one step. The Variance & Standard Deviation Calculator shows each step of the deviation-squaring process. The Standard Deviation Calculator handles both population (Οƒ) and sample (s) formulas. The Mean Absolute Deviation Calculator provides an easier-to-interpret alternative. The IQR Calculator finds Q1, Q3, and the interquartile range with outlier detection.

Try it with the Calculator

Apply what you've learned with these tools.

Basic Statistics Calculator
Calculates mean, median, mode, and range for a set of numbers.
Use calculator β†’
Variance & Standard Deviation
Calculate both variance and standard deviation for a sample or full population.
Use calculator β†’
Standard Deviation Calculator
Calculate population and sample standard deviation for a set of numbers.
Use calculator β†’
Mean Absolute Deviation (MAD)
Calculate the average distance between each data point and the mean.
Use calculator β†’
Interquartile Range (IQR)
Calculate the range between the 25th and 75th percentiles.
Use calculator β†’
← Previous Lesson
Back to
Median and Mode: Finding the True Center
Continue Learning
Up Next: Introduction to Probability
Next Lesson →
Test Your Knowledge

Measuring Spread: Range, Variance, and Standard Deviation: Quiz

5 questions per attempt  Β·  Beginner  Β·  Pass at 70%

Start Quiz β†’

More in Statistics & Probability

Understanding Data and Types of Data Organizing Data with Frequency Tables Calculating the Mean (Average)
← All Statistics & Probability lessons