Statistics

Range and Standard Deviation

Last updated: March 2026 · Beginner
Before you start

You should be comfortable with:

Real-world applications
Electrical

Voltage drop, wire sizing, load balancing

💊
Nursing

Medication dosages, IV drip rates, vital monitoring

Measures of central tendency (mean, median, mode) tell you where the center of your data is, but they do not tell you how spread out the data is. Two datasets can have the same mean but look completely different. Range and standard deviation measure this spread — how much individual values differ from each other and from the center.

Range

The range is the simplest measure of spread. It is the difference between the highest and lowest values in a dataset.

Range=Maximum valueMinimum value\text{Range} = \text{Maximum value} - \text{Minimum value}

Example 1: Daily High Temperatures

Daily high temperatures for one week (in °\degreeF): 72, 68, 75, 80, 71, 69, 77.

Range=8068=12°F\text{Range} = 80 - 68 = 12\degree\text{F}

Answer: The range is 12°\degreeF, meaning daily highs varied by 12 degrees over the week.

The range is easy to calculate, but it has a major weakness: it only uses two values (the highest and lowest). A single outlier can make the range misleading.

Example 2: Range with an Outlier

Test scores: 82, 85, 88, 84, 86, 45.

Range=8845=43\text{Range} = 88 - 45 = 43

Without the outlier (45), the range would be 8882=688 - 82 = 6. One unusually low score makes the range suggest far more variability than the majority of the data actually has. This is why we need standard deviation.

Variance and Standard Deviation

Standard deviation measures how far values typically fall from the mean. It uses every data point — not just the extremes.

The calculation has two stages: first you find the variance, then you take its square root.

Formulas

Variance (for a population):

σ2=(xiμ)2N\sigma^2 = \frac{\sum (x_i - \mu)^2}{N}

Standard deviation (for a population):

σ=(xiμ)2N\sigma = \sqrt{\frac{\sum (x_i - \mu)^2}{N}}

Where:

  • xix_i = each individual data value
  • μ\mu = the mean of the dataset
  • NN = the number of data values
  • \sum = “the sum of”

For a sample (a subset of a larger population), divide by N1N - 1 instead of NN. On most standardized tests and in introductory courses, you will use the population formula above.

Example 3: Step-by-Step Standard Deviation

Dataset: 4, 8, 6, 5, 7

Step 1: Find the mean.

μ=4+8+6+5+75=305=6\mu = \frac{4 + 8 + 6 + 5 + 7}{5} = \frac{30}{5} = 6

Step 2: Subtract the mean from each value and square the result.

Value (xix_i)Deviation (xiμx_i - \mu)Squared deviation (xiμ)2x_i - \mu)^2
446=24 - 6 = -2(2)2=4(-2)^2 = 4
886=28 - 6 = 2(2)2=4(2)^2 = 4
666=06 - 6 = 0(0)2=0(0)^2 = 0
556=15 - 6 = -1(1)2=1(-1)^2 = 1
776=17 - 6 = 1(1)2=1(1)^2 = 1

Step 3: Find the variance (average of squared deviations).

σ2=4+4+0+1+15=105=2\sigma^2 = \frac{4 + 4 + 0 + 1 + 1}{5} = \frac{10}{5} = 2

Step 4: Take the square root to get the standard deviation.

σ=21.41\sigma = \sqrt{2} \approx 1.41

Answer: The standard deviation is approximately 1.41.

This tells you that values in this dataset typically fall about 1.41 units away from the mean of 6.

What Standard Deviation Tells You

  • Low SD = data points are clustered close to the mean (consistent, reliable).
  • High SD = data points are spread far from the mean (variable, inconsistent).

Consider two students’ test scores, both with a mean of 80:

  • Student A: 78, 80, 82, 79, 81 (SD \approx 1.4) — very consistent
  • Student B: 65, 95, 70, 90, 80 (SD \approx 11.4) — highly variable

Same average, very different stories. Standard deviation reveals the difference.

Quick Reference

MeasureFormulaWhat It Tells You
RangeMaxMin\text{Max} - \text{Min}Total spread (sensitive to outliers)
Variance(xiμ)2N\frac{\sum (x_i - \mu)^2}{N}Average squared distance from the mean
Standard DeviationVariance\sqrt{\text{Variance}}Typical distance from the mean

Real-World Application: Electrician — Measuring Voltage Consistency

An electrician tests the voltage output of a circuit at five different times throughout the day to check for stability. The expected voltage is 120 V.

Readings (in volts): 119.5, 120.2, 120.0, 119.8, 120.5

Step 1: Find the mean.

μ=119.5+120.2+120.0+119.8+120.55=600.05=120.0 V\mu = \frac{119.5 + 120.2 + 120.0 + 119.8 + 120.5}{5} = \frac{600.0}{5} = 120.0 \text{ V}

Step 2: Find the squared deviations.

ReadingDeviationSquared Deviation
119.50.5-0.50.250.25
120.20.20.20.040.04
120.00.00.00.000.00
119.80.2-0.20.040.04
120.50.50.50.250.25

Step 3: Calculate variance and standard deviation.

σ2=0.25+0.04+0.00+0.04+0.255=0.585=0.116\sigma^2 = \frac{0.25 + 0.04 + 0.00 + 0.04 + 0.25}{5} = \frac{0.58}{5} = 0.116

σ=0.1160.34 V\sigma = \sqrt{0.116} \approx 0.34 \text{ V}

Interpretation: With a standard deviation of only 0.34 V, this circuit delivers very stable power. Voltage fluctuations are minimal and well within the acceptable range. If the SD were much higher — say 5 V or more — the electrician would investigate for loose connections, overloaded circuits, or faulty equipment.

Practice Problems

Test your understanding with these problems. Click to reveal each answer.

Problem 1: Find the range of this dataset: 23, 15, 42, 8, 31.

Range=428=34\text{Range} = 42 - 8 = 34

Answer: The range is 34.

Problem 2: Calculate the standard deviation of this dataset: 10, 12, 14, 16, 18.

Mean: 10+12+14+16+185=705=14\frac{10 + 12 + 14 + 16 + 18}{5} = \frac{70}{5} = 14

Squared deviations: (1014)2=16(10-14)^2 = 16, (1214)2=4(12-14)^2 = 4, (1414)2=0(14-14)^2 = 0, (1614)2=4(16-14)^2 = 4, (1814)2=16(18-14)^2 = 16

Variance: 16+4+0+4+165=405=8\frac{16 + 4 + 0 + 4 + 16}{5} = \frac{40}{5} = 8

Standard deviation: 82.83\sqrt{8} \approx 2.83

Answer: The standard deviation is approximately 2.83.

Problem 3: Two machines fill bottles to a target of 500 mL. Machine A has SD = 2 mL. Machine B has SD = 8 mL. Which machine is more consistent?

Machine A is more consistent because its standard deviation is lower. Its fill amounts are typically within 2 mL of the target, while Machine B’s vary by about 8 mL.

Problem 4: A nursing student records patient wait times (in minutes): 12, 15, 14, 45, 13. Calculate the range. Does the range give a good picture of typical variability? Why or why not?

Range=4512=33 minutes\text{Range} = 45 - 12 = 33 \text{ minutes}

The range is 33 minutes, but this is misleading. Four of the five wait times are between 12 and 15 minutes. The single outlier (45 minutes) inflates the range dramatically. The standard deviation would give a more accurate picture of typical variability.

Key Takeaways

  • Range (MaxMin\text{Max} - \text{Min}) is quick to calculate but easily distorted by a single outlier.
  • Standard deviation measures how far values typically fall from the mean — it uses every data point.
  • A low standard deviation means data is consistent and tightly clustered. A high standard deviation means data is spread out and variable.
  • To calculate SD: find the mean, subtract it from each value, square the deviations, average them (variance), and take the square root.
  • Two datasets can share the same mean but have very different standard deviations — always check the spread.

Return to Statistics for more topics in this section.

Last updated: March 28, 2026