Skip to main content
UpSkill Sprint Consulting
  • Statistics
  • Beginner
  • 30 min
  • Interactive

Introduction to Mean, Median, Mode, and Spread

The mean, median and mode tell you where the middle of your data is. Spread tells you how far the values wander from that middle.

By the end you will be able to

  • work out the mean, median and mode, and say what each means
  • pick the right one when data has outliers
  • measure spread: range, IQR and standard deviation
  • do it in Excel and Minitab

One dataset, every key number Seven repair times in hours, sorted (a made-up example)

  1. 12
  2. 15mode
  3. 15mode
  4. 18middle
  5. 20
  6. 22
  7. 45outlier

Center: where is the typical value?

  • 15 hModeMost common
  • 18 hMedianMiddle value
  • 21 hMeanBalance point

5 of 7 repairs took less than the mean.

Spread: how far do values wander?

  • 33 hRangeLargest minus smallest
  • 11.1 hStd devTypical distance from the mean
  • 7 hIQRMiddle 50% only
  • 52.9%CVStd dev ÷ mean

Report a center and a spread. Every time.

The big idea

Why one number is never enough

A dataset is a list of measurements, like test marks or pipe thicknesses. We summarize it with two kinds of number.

  • Center: a typical value, where the data sits.
  • Spread: how far the values wander. How consistent is it?

Why both? Two lines make pipe walls that must be 9.5 to 10.5 mm thick. Both average exactly 10.0 mm. (A made-up example.)

Line A6 of 6pipes in specSD 0.07 mm
Line B4 of 6pipes in specSD 0.72 mm
Same mean, different spread Wall thickness of six pipes from each line. Both lines average 10.0 mm. Line A has a standard deviation of 0.07 mm and every pipe is inside the 9.5 to 10.5 mm spec. Line B has a standard deviation of 0.72 mm and 2 of its 6 pipes are out of spec. SPEC LSL 9.5 USL 10.5 Line A SD 0.07 Line B SD 0.72 ✕ out ✕ out 9.0 9.5 10.0 10.5 11.0 mm Both means 10.0 mm
Spec bandSquare = out of specSame center, very different spread.

What to notice: Line A huddles near 10.0 mm; Line B scatters, with two pipes out of spec. The average alone calls them equal.

Part 1: the center

Mean, median and mode: three ways to find the middle

There are three ways to pick a typical value, and they don't always agree. We'll use these seven repair times, in hours:

12, 15, 15, 18, 20, 22, 45

The people-pleaser

The mean: share it out equally

In plain words: pour all the hours into one pot and share it equally between the seven repairs. Each share is the mean, what most people call "the average."

How to find it

  1. Add up every value: \(12 + 15 + 15 + 18 + 20 + 22 + 45 = 147\).
  2. Count the values: there are \(n = 7\).
  3. Divide the total by the count.
\[ \bar{x} = \frac{\sum x_i}{n} = \frac{147}{7} = 21 \]

where \(\bar{x}\) ("x-bar") is the mean, \(x_i\) is each value, \(\sum\) means "add them all up" and \(n\) is how many values there are.

Watch out: the mean listens to every value, even strange ones. The 45-hour repair drags it up to 21, though most repairs took less. Excel: =AVERAGE().

Quick check Test marks are 6, 7, 8, 9 and 20. What is the mean?
\(50 / 5 = 10\). Four of the five marks are below 10, because the 20 pulls the mean up.

The diplomat

The median: the middle of the line-up

In plain words: line the class up from shortest to tallest. The person in the exact middle is the median: half are below, half above.

How to find it

  1. Sort the values from smallest to largest (the step people forget).
  2. Find the middle position: \((n + 1) / 2\). With 7 values, that's position 4.
  3. With an even count there are two middle values: average them.

Odd count (7 values): the 4th value is the median.

  1. 112
  2. 215
  3. 315
  4. 418middle
  5. 520
  6. 622
  7. 745

Even count (drop the 45, leaving 6 values): average the 3rd and 4th.

  1. 112
  2. 215
  3. 315middle pair
  4. 418middle pair
  5. 520
  6. 622
\[ \text{Median} = \frac{15 + 18}{2} = 16.5 \]

Watch out: the median cares about position, not size. Make the 45 into 450 and the median is still 18, so it's the safer choice when data has outliers. Excel: =MEDIAN().

Quick check Find the median of 4, 9, 2 and 7.
Sort first: 2, 4, 7, 9. There are four values, so average the middle two: \((4 + 7) / 2 = 5.5\).

The popular kid

The mode: the most popular value

In plain words: the mode is the value that appears most often, like the most common shoe size in a room. Here 15 appears twice, so the mode is 15.

How to find it

  1. Count how many times each value appears.
  2. The value with the highest count is the mode.
  3. A tie means two modes ("bimodal"). If nothing repeats, there is no mode.

Watch out: only the mode works for categories, like defect types or colours. You can't average colours. Excel: =MODE.SNGL().

Quick check Car colours in a lot: red, blue, red, green, blue, red. What is the mode?
Red appears 3 times, more than any other colour, so the mode is red.

All three on one picture

Mean, median and mode of seven repair times Dot plot of repair times 12, 15, 15, 18, 20, 22 and 45 hours. The mode is 15, the median is 18 and the mean is 21. The single long repair of 45 hours pulls the mean above the median. Median 18 Mean 21 Mode 15 Outlier 45 The outlier drags the mean right 10 15 20 25 30 35 40 45 hours
Hollow ring = outlierOnly 5 of 7 repairs took less than the mean of 21 hours.

What to notice: the mode (15) sits where values bunch up, the median (18) in the middle, and the mean (21) is pulled right by the 45. A value far from the rest like that is an outlier.

Try it

Drag the outlier and watch the numbers move

The slider sets the last repair time. Watch the seesaw (mean), the line-up (median) and the tally (mode).

Interactive
Mean
21
Median
18
Mode
15
Std dev
11.1
IQR
7

The 45 is an outlier. The mean sits 3 hours above the median. Report the median and IQR.

  • Drag it to 100. The median and IQR stay put; the mean and standard deviation jump.
  • Drag it to 22. The mean and median nearly agree.
  • Drag it to 15. Now 15 appears three times.
Part 2: choosing

Which center should you report?

It depends on the data's shape. Skewed data bunches up, with a long "tail" of unusual values on one side. House prices and repair times usually tail off to the right; marks on an easy test tail off to the left.

Skew decides the order of mean, median and mode Three distribution shapes. Left skew: mean less than median less than mode. Symmetric: all three equal. Right skew: mode less than median less than mean. The mean always sits closest to the tail. Mean Median Mode tail Left skew Mean < Median < Mode Tail points left Symmetric Mean = Median = Mode No long tail tail Right skew Mode < Median < Mean Tail points right
The mean always sits closest to the tail.

What to notice: the mean is dragged toward the tail, the mode stays at the peak, and the median sits between. Mean bigger than median? The tail points right.

  1. Are the values categories, such as defect types or 1 to 5 ratings?

    YesUse the mode. Ratings can also use the median.

    No: next question

  2. Is the data skewed, or does it have outliers?

    YesUse the median and IQR.

    No: next question

  3. OtherwiseUse the mean and standard deviation.

Not sure? If the mean and median are far apart, the data is skewed: report the median.

Part 3: spread

Range, IQR and standard deviation: measuring spread

Spread answers what the average couldn't: how consistent is the data? Small spread means predictable values; big spread means they're all over the place, like Line B's pipes. Here are three measures, simplest first.

The range: largest minus smallest

In plain words: the gap between the two most extreme values. For the repair times, the longest is 45 and the shortest is 12.

\[ R = \text{largest} - \text{smallest} = 45 - 12 = 33 \]

33 h range for the repair times

Watch out: it uses only two values, so one outlier makes it huge.

Quartiles and the IQR: the spread of the middle half

In plain words: the median cuts sorted data in half; quartiles cut it into four equal groups. A quarter of the values sit below \(Q_1\) and three quarters below \(Q_3\). The interquartile range (IQR) is the gap from \(Q_1\) to \(Q_3\): the spread of the middle 50%.

How to find it (the method Minitab uses)

  1. Sort the values. With \(n = 7\), \(Q_1\) is at position \((n + 1) / 4 = 2\), so \(Q_1 = 15\).
  2. \(Q_3\) is at position \(3(n + 1) / 4 = 6\), so \(Q_3 = 22\).
  3. Subtract: \(\text{IQR} = Q_3 - Q_1\).
  1. 112
  2. 215Q1
  3. 315
  4. 418median
  5. 520
  6. 622Q3
  7. 745
\[ \text{IQR} = Q_3 - Q_1 = 22 - 15 = 7 \]

7 h IQR for the repair times

A box plot draws this: the box runs from \(Q_1\) to \(Q_3\), the line inside is the median, and anything past the "fence" is an outlier.

Box plot of the seven repair times The box runs from Q1 = 15 to Q3 = 22 hours, so the IQR is 7 hours. The median is 18. The upper fence is Q3 plus 1.5 times the IQR, 32.5 hours, so the 45-hour repair lands in the outlier zone. OUTLIER ZONE Q1 15 Q3 22 IQR 7 h Fence 32.5 Outlier 45 10 15 20 25 30 35 40 45 hours
Box = IQR, the middle 50%FencePast the fence means outlier.
\[ \text{Upper fence} = Q_3 + 1.5 \times \text{IQR} = 22 + 1.5 \times 7 = 32.5 \]

Watch out: an outlier can't stretch the IQR, so pair it with the median for skewed data.

Quick check Sorted data: 3, 5, 6, 8, 9, 11, 14. What are \(Q_1\), \(Q_3\) and the IQR?
With 7 values, \(Q_1\) is the 2nd value (5) and \(Q_3\) is the 6th value (11). The IQR is \(11 - 5 = 6\).

Standard deviation: the typical distance from the mean

In plain words: the standard deviation is roughly how far a typical value sits from the mean, in the data's own units. Here, 11.1 hours means repairs usually land about 11 hours from the 21-hour mean.

Why five steps? Why not just average the distances from the mean? Negative and positive distances cancel out to 0. Squaring makes them all positive, and the final square root puts the answer back in hours.

Click each step to light up its column.

Step 1 of 5

21 h

Add the 7 values (147) and divide by 7.

Step 2 of 5

-9 to +24

Subtract the mean from every value. They sum to 0.

Step 3 of 5

740

Square each distance, then add them up.

Step 4 of 5

123.3 h²

A sample divides by \(n - 1 = 6\), not \(n\).

Step 5 of 5

11.1 h

Back in hours: the standard deviation.

Value \(x_i\)Distance \(x_i - \bar{x}\)Squared \((x_i - \bar{x})^2\)
12−981
15−636
15−636
18−39
20−11
2211
4524576
Total0740
\[ \begin{aligned} s^2 &= \frac{\sum (x_i - \bar{x})^2}{n - 1} = \frac{740}{6} = 123.3 \\ s &= \sqrt{123.3} = 11.1 \end{aligned} \]

where \(s\) is the standard deviation, \(s^2\) is the variance, and \(x_i - \bar{x}\) is each value's distance from the mean.

Why divide by \(n - 1\) and not \(n\)? Our seven repairs are a sample, a few out of all repairs ever. Samples tend to look a little less spread out than the whole population, so dividing by one less than the count corrects for that. Divide by \(n\) only when you have every value.

77.8% of the squared distance comes from the 45-hour repair.

Variance is the average area of these squares Each repair time's distance from the mean of 21 hours, drawn as a square. The areas are 81, 36 twice, 9, 1, 1 and 576, which sum to 740. The 45-hour repair's square alone is 77.8% of the total area. Mean 21 81 36 ×2 9 576 45 h is 24 h from the mean 10 15 20 25 30 35 40 45 50
The 45-hour repairEach square's area is that value's squared distance from the mean.

Watch out: squaring makes big distances count far more, so one outlier inflates the standard deviation. Excel: =STDEV.S().

Quick check Find the standard deviation of 2, 4 and 6.
The mean is 4. The distances are −2, 0 and 2. The squares are 4, 0 and 4, which add to 8. Divide by \(n - 1 = 2\) to get a variance of 4. The square root gives a standard deviation of 2.

Two relatives: variance and CV

Variance is the standard deviation before the square root: 123.3 "hours squared" for the repairs. It's hard to picture, but variances from independent sources add up, and standard deviations don't.

The coefficient of variation (CV) is the standard deviation as a percentage of the mean, for comparing different scales. A 10 mm pipe wall with a standard deviation of 0.5 mm varies far more, for its size, than a 12,000 mm pipe length with a standard deviation of 30 mm.

\[ \text{CV} = \frac{s}{\bar{x}} \times 100\% \qquad \frac{0.5}{10} \times 100\% = 5\% \qquad \frac{30}{12000} \times 100\% = 0.25\% \]

52.9% CV for the repair times: very spread out for their size

Look it up

Key terms

Dataset
A list of measurements of the same thing.
Mean
The total shared out equally: add the values, divide by the count.
Median
The middle value once the data is sorted.
Mode
The value that appears most often.
Outlier
A value far away from the rest of the data.
Skewed
Data with a long tail of unusual values on one side.
Range
Largest value minus smallest value.
Quartiles
The three values that cut sorted data into four equal groups.
IQR
The spread of the middle half: \(Q_3 - Q_1\).
Standard deviation
The typical distance of a value from the mean.
Variance
The standard deviation squared.
Sample
Some of the data, not all of it. Divide by \(n - 1\).

4 mistakes to avoid

  • Mean of skewed dataA long tail drags it. Report the median.
  • Averaging ratings1 to 5 scores are ordinal. Use the median or mode.
  • Adding standard deviationsAdd variances, then take the square root.
  • STDEV.P on a sampleSamples divide by \(n - 1\): use STDEV.S.
Do it in software

Statistics Implementation

Excel functions

FunctionSyntaxPurposeWhen to use it
AVERAGE=AVERAGE(range)MeanSymmetric data, or when you need totals
AVERAGEIFS=AVERAGEIFS(range, criteria_range, criteria)Mean of a subsetMean by shift, line or grade
MEDIAN=MEDIAN(range)MedianSkewed data or outliers
MODE.SNGL=MODE.SNGL(range)Most frequent valueOne clear mode
MODE.MULT=MODE.MULT(range)All modes (array result)Two or more modes
TRIMMEAN=TRIMMEAN(range, percent)Mean after trimming both endsMild outliers; percent is the total trimmed
MAX, MIN=MAX(range)-MIN(range)RangeQuick spread check
VAR.S=VAR.S(range)Sample varianceDefault for sample data
VAR.P=VAR.P(range)Population varianceOnly for a complete population
STDEV.S=STDEV.S(range)Sample standard deviationDefault for sample data
STDEV.P=STDEV.P(range)Population standard deviationOnly for a complete population
QUARTILE.EXC=QUARTILE.EXC(range, quart)Quartile by the \((n+1)p\) methodMatches Minitab; use for the IQR
QUARTILE.INC=QUARTILE.INC(range, quart)Quartile, inclusive methodMatches older QUARTILE results
PERCENTILE.EXC=PERCENTILE.EXC(range, k)Any percentileP90 or P95 targets
SKEW=SKEW(range)SkewnessBeyond about ±1 means strong skew

Older names (STDEV, VAR, MODE) still work; use the new ones.

Excel use cases

Put the seven repair times in cells A2:A8.

TaskFormulaResult
Mean=AVERAGE(A2:A8)21
Median=MEDIAN(A2:A8)18
Mode=MODE.SNGL(A2:A8)15
Range=MAX(A2:A8)-MIN(A2:A8)33
Sample variance=VAR.S(A2:A8)123.33
Sample standard deviation=STDEV.S(A2:A8)11.11
Population standard deviation=STDEV.P(A2:A8)10.28
IQR=QUARTILE.EXC(A2:A8,3)-QUARTILE.EXC(A2:A8,1)7
CV=STDEV.S(A2:A8)/AVERAGE(A2:A8)52.9% (format as %)
Skewness=SKEW(A2:A8)Positive: right-skewed

QUARTILE.INC gives an IQR of 6 instead. Say which method you used.

Minitab navigation

NeedMenu pathWhy this one
Full table of statisticsStat → Basic Statistics → Display Descriptive StatisticsClick Statistics to add variance, CV, IQR, range and mode. Use By variables to split by group.
Center, spread and shape in one viewStat → Basic Statistics → Graphical SummaryBest first look: histogram, box plot, normality test and confidence intervals for the mean and median.
Save results to the worksheetStat → Basic Statistics → Store Descriptive StatisticsWhen later calculations need the numbers.
One statistic for one columnCalc → Column StatisticsA quick single answer, stored as a constant.
Box plot onlyGraph → BoxplotShows the IQR and flags outliers with an asterisk.

Minitab reports the sample standard deviation, and its quartiles match QUARTILE.EXC.

Exam tips

  • Sample or population?Unless the question says population, divide by \(n - 1\).
  • Skew questionsGiven mean, median and mode, the mean points to the tail.
  • Combining sourcesAdd variances: \(\sigma_{\text{total}} = \sqrt{\sigma_1^2 + \sigma_2^2}\).
  • Control chartsEstimate \(\sigma\) from ranges: \(\hat{\sigma} = \bar{R} / d_2\).
  • Different unitsCompare variability with CV, not standard deviation.

Knowledge check

Check your understanding

Comprehension quiz

Pick the strongest answer, then submit. Explanations appear after you submit.

1. Cycle times are 4, 5, 5, 6 and 30 minutes. Which is the better typical value?
2. A dataset has a mean of 50, a median of 45 and a mode of 42. How is it skewed?
3. Which measure of spread ignores outliers?
4. Machine A fills 100 g bags with a standard deviation of 2 g. Machine B fills 10 g bags with a standard deviation of 0.5 g. Which is relatively more variable?
5. Which Excel function gives the standard deviation of a sample?
6. How do you combine two independent sources of variation?
7. What is the median of 3, 8, 1 and 6?
8. Which measure of center can you use for defect types such as scratch, dent and crack?
← Back to Statistics lessons