Find a course

Module 3: Describing DataLesson 6 of 1213 min

Spread, Distributions and Percentiles

Measure variability with range, IQR and standard deviation, use the normal curve's 68-95-99.7 rule, and locate values with percentiles and z-scores.

Step 1 of 10Learn

Same average, different experience

Two delivery companies both advertise an average delivery time of 3 days. Company A's deliveries take 2, 3, 3, 3 or 4 days. Company B's take 1, 1, 2, 3 or 8 days. Same mean, very different customer experience. With Company B, you can't plan anything.

An average describes the center of the data, but you also need to know the spread, or variability: how much values differ from one another.

The simplest measure is the range: maximum minus minimum. Company A's range is 4 − 2 = 2 days; Company B's is 8 − 1 = 7 days. The range is easy to understand but depends entirely on the two most extreme values, so a single outlier can make it huge.

The interquartile range (IQR) is more robust. Sort the data and find the quartiles: Q1, the 25th percentile, and Q3, the 75th percentile. The IQR = Q3 − Q1 covers the middle 50% of the data and ignores the extremes entirely. A box plot displays exactly this: a box from Q1 to Q3, a line at the median, and "whiskers" extending toward the extremes, with outliers drawn as individual points.

Spread often matters as much as the average. A manufacturer cares whether parts are consistently the right size, not just right on average. An investor cares how much returns swing from year to year. A hospital cares not just about average wait times but how often patients wait much longer.

Step 2 of 10Practice · Chart

Same 3-day average, different experience

Tap the order that makes Company B impossible to plan around.

Tap the bar that answers the question, then press Check.

Same 3-day average, different experienceBar chart with 5 categories: Order 1: Company A 2 days, Company B 1 day; Order 2: Company A 3 days, Company B 1 day; Order 3: Company A 3 days, Company B 2 days; Order 4: Company A 3 days, Company B 3 days; Order 5: Company A 4 days, Company B 8 days.0 days2 days4 days6 days8 daysOrder 1Order 2Order 3Order 4Order 52 days1 day3 days1 day3 days2 days3 days3 days4 days8 days
Same 3-day average, different experience
ItemCompany ACompany B
Order 12 days1 day
Order 23 days1 day
Order 33 days2 days
Order 43 days3 days
Order 54 days8 days

Step 3 of 10Learn

Standard deviation

The most widely used measure of spread is the standard deviation (SD). Roughly, it's the typical distance of values from the mean.

To calculate it for a full population:

  1. Find the mean.
  2. Subtract the mean from each value to get its deviation.
  3. Square each deviation (so negatives don't cancel positives).
  4. Average the squared deviations. This is the variance.
  5. Take the square root to get back to the original units.

Example: Company A's delivery times 2, 3, 3, 3, 4. Mean = 3. Deviations: −1, 0, 0, 0, 1. Squared: 1, 0, 0, 0, 1. Average: 2 ÷ 5 = 0.4. Square root: SD ≈ 0.63 days.

Company B's times 1, 1, 2, 3, 8. Mean = 3. Deviations: −2, −2, −1, 0, 5. Squared: 4, 4, 1, 0, 25. Average: 34 ÷ 5 = 6.8. SD ≈ 2.61 days, about four times as spread out.

When your data are a sample and you want to estimate the population's spread, you divide by n − 1 instead of n in step 4, which gives a slightly larger value. Spreadsheets offer both: STDEV.P (population) and STDEV.S (sample). For large datasets the difference is negligible.

The standard deviation uses every value, so like the mean, it's sensitive to outliers. For skewed data, the median and IQR often describe the data better; for roughly symmetric data, the mean and standard deviation are the standard pair.

Step 4 of 10Try the calculator

Standard deviation of five values

Enter five values to see their mean and population standard deviation. Try Company A (2, 3, 3, 3, 4) and Company B (1, 1, 2, 3, 8).

Mean
3
Population standard deviation
0.63
Sample standard deviation
0.71

Step 5 of 10Practice · Work it out

Use the calculator. What is the population standard deviation of the values 10, 20, 30, 40, 50? (Round to one decimal.)

Step 6 of 10Learn

The normal curve and the 68-95-99.7 rule

A distribution describes how often each value occurs. A histogram, which groups values into bins and draws a bar for each bin's count, is the standard way to see it.

Many measurements, such as heights, measurement errors, test scores on large standardized tests and the weights of products from a machine, form a symmetric, bell-shaped distribution called the normal distribution. It's defined by just two numbers: the mean (its center) and the standard deviation (its width).

For a normal distribution, the 68-95-99.7 rule applies:

  • About 68% of values fall within 1 SD of the mean.
  • About 95% fall within 2 SDs.
  • About 99.7% fall within 3 SDs.

Example: adult IQ scores are designed to have a mean of 100 and an SD of 15. So about 68% of people score between 85 and 115, about 95% between 70 and 130, and nearly everyone between 55 and 145.

The rule gives quick sanity checks. If a machine fills bottles with a mean of 500 ml and SD of 2 ml, a bottle with 490 ml is 5 SDs below the mean, extremely unlikely if the process is working, so something is probably wrong with the machine.

Be careful: not everything is normal. Incomes, waiting times and website traffic are usually skewed, and applying the 68-95-99.7 rule to them gives wrong answers. Always look at a histogram before assuming a shape.

Step 7 of 10Explore

Normal distribution explorer

Change the mean and standard deviation to see how the bell curve shifts and stretches. The readouts show the ranges that contain about 68% and 95% of values.

0.010.02 050100150200
About 68% between (low end)
85
About 68% between (high end)
115
About 95% between (low end)
70
About 95% between (high end)
130

Step 8 of 10Learn

Percentiles and z-scores

How do you describe where a single value stands relative to the rest?

A percentile tells you the percentage of values below a given point. If your child's height is at the 80th percentile, they're taller than about 80% of children their age. The median is the 50th percentile; Q1 and Q3 are the 25th and 75th. Percentiles work for any distribution shape, which makes them very practical: "95% of support tickets are resolved within 26 hours" is a typical service-level target, and a p95 response time is a standard performance metric in tech.

A z-score measures how many standard deviations a value is from the mean:

z = (value − mean) ÷ standard deviation

If a test has a mean of 70 and an SD of 8, a score of 86 has z = (86 − 70) ÷ 8 = 2: two standard deviations above average. A score of 62 has z = −1.

Z-scores let you compare values on different scales. Suppose Maya scored 86 on that test (z = 2) and 610 on another test with mean 500 and SD 100 (z = 1.1). Relative to other test-takers, her first score is more exceptional, even though 610 is the bigger number.

For normally distributed data, z-scores convert to percentiles: z = 1 is about the 84th percentile, z = 2 about the 98th. Values with |z| above 3 are rare, which is why they're often flagged for investigation.

Step 9 of 10Practice · Work it out

Monthly sales per store have a mean of $80,000 and a standard deviation of $12,000. What is the z-score of a store with $110,000 in sales?

Step 10 of 10Practice · Choose one

Product weights are roughly normal with a mean of 250 g and an SD of 4 g. About what percentage of products weigh between 242 g and 258 g?