Resources For Teachers For Tutors For Students & Parents AI New Books Pricing
Year 12 Maths - General (Unit 3 & Unit 4) Investigating data distributions

Mean and standard deviation: comparing distributions

20 practice questions 0 video lessons Theory + worked examples

Measure centre and spread with the mean and standard deviation in Year 12 VCE General Mathematics. Two Bendigo bus routes can take the same time on average, yet one is reliable and the other is a lottery. The mean tells you the typical value; the standard deviation tells you how far values usually stray from it.

You will calculate the mean from lists and frequency tables, find the standard deviation with technology and by hand, and interpret it in context. You will compare two groups by centre and spread, see how one extreme value drags the mean and standard deviation, and choose between mean and median, ready for the bell-shaped normal model next.

Create a free accountTrack your progress and save your work as you go.
Create free account

Theory

The mean and standard deviation give the centre and spread of a distribution in two numbers. This Year 12 General Mathematics guide for students in Victoria shows how to calculate them, what they mean, how to compare two distributions, and when the median and IQR are the better choice.

The mean \(\bar{x}\) is the sum of the values divided by how many there are. It measures the centre of a distribution and uses every value.

The standard deviation \(s\) measures how spread out the values are around the mean. Each value's deviation is \(x - \bar{x}\); the deviations always add to \(0\), so they are squared, added, divided by \(n - 1\), and square-rooted. A small \(s\) means the values sit close to the mean (consistent); a large \(s\) means they are widely spread. In practice \(s\) is found with the statistics mode of a calculator, but the steps can be done by hand for a small data set.

To compare two distributions, compare their centres (which mean is higher?) and their spreads (which \(s\) is larger?), and say what each means in context. The mean and standard deviation suit symmetric data with no outliers; for skewed data or data with outliers use the median and IQR instead.

Key idea. The mean and \(s\) are both pulled strongly by an extreme value. The median and IQR are resistant to it.
Deviations from the meanValues 3, 5, 6, 9 and 12 on a number line with the mean 7 marked. Arrows show the deviations -4, -2, -1, +2 and +5. 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 mean = 7 −4 −2 −1 +2 +5
The values \(3, 5, 6, 9, 12\) have mean \(7\). Their deviations \(-4, -2, -1, +2, +5\) add to \(0\); squaring them gives \(16 + 4 + 1 + 4 + 25 = 50\), so \(s = \sqrt{50 \div 4} \approx 3.54\).
Two routes with the same meanRoute A: 22, 23, 24, 24, 25, 26. Route B: 15, 18, 20, 27, 30, 34. Both means are 24. Route A Route B 14 16 18 20 22 24 26 28 30 32 34 36 Travel time (minutes)
Both routes have a mean of \(24\) minutes, but route B is far more spread out: \(s \approx 7.46\) minutes compared with \(s \approx 1.41\) for route A.

The mean of \(n\) values, and the mean from a frequency table:

\[\bar{x} = \dfrac{\sum x}{n} \qquad \bar{x} = \dfrac{\sum f x}{\sum f}\]
x¯=∑xn

The sample standard deviation:

\[s = \sqrt{\dfrac{\sum \left(x - \bar{x}\right)^2}{n - 1}} = \sqrt{\dfrac{\text{sum of squared deviations}}{n - 1}}\]
s=∑(x−x¯)2n−1
Divide by \(n - 1\). Calculators show two standard deviations. Use the sample one (\(s_x\), divisor \(n - 1\)), not the one with divisor \(n\).

Standard deviation by hand

  1. Find the mean \(\bar{x}\).
  2. Find each deviation \(x - \bar{x}\) (check they add to \(0\)).
  3. Square each deviation and add the squares.
  4. Divide by \(n - 1\), then take the square root.

Comparing two distributions

  1. Check the shape: symmetric with no outliers means use \(\bar{x}\) and \(s\); otherwise median and IQR.
  2. Centre: compare the means and state the difference in context.
  3. Spread: compare the standard deviations; the smaller \(s\) is the more consistent group.
Example 1 — Standard deviation by hand
A Warrnambool student counted the number of emails she received on five days: \(5,\ 8,\ 9,\ 11,\ 17\). Find the mean and the standard deviation, correct to two decimal places.
Solution

Use a deviation table, then divide by \(n - 1 = 4\).

\(\bar{x}\)\(=\)\(\dfrac{5 + 8 + 9 + 11 + 17}{5}\)
\(\)\(=\)\(\dfrac{50}{5}\)
\(\)\(=\)\(10\)
\(x\)5891117
\(x - \bar{x}\)\(-5\)\(-2\)\(-1\)\(1\)\(7\)
\((x - \bar{x})^2\)\(25\)\(4\)\(1\)\(1\)\(49\)
\(\text{sum of squares}\)\(=\)\(25 + 4 + 1 + 1 + 49\)
\(\)\(=\)\(80\)
\(s\)\(=\)\(\sqrt{\dfrac{80}{5 - 1}}\)
\(\)\(=\)\(\sqrt{20}\)
\(\)\(\approx\)\(4.47\)
s=20≈4.47

The mean is \(10\) emails and the standard deviation is about \(4.47\) emails. Check: the deviations \(-5 - 2 - 1 + 1 + 7 = 0\).

Example 2 — Mean from a frequency table
A survey of \(25\) households in Shepparton recorded the number of pets in each.
Number of pets, \(x\)01234
Frequency, \(f\)37951
Find the mean number of pets. Use technology to find the standard deviation, correct to two decimal places.
Solution

Multiply each value by its frequency, add, and divide by the total frequency.

\(\sum f\)\(=\)\(3 + 7 + 9 + 5 + 1\)
\(\)\(=\)\(25\)
\(\sum f x\)\(=\)\(0 \times 3 + 1 \times 7 + 2 \times 9 + 3 \times 5 + 4 \times 1\)
\(\)\(=\)\(44\)
\(\bar{x}\)\(=\)\(\dfrac{44}{25}\)
\(\)\(=\)\(1.76\)
\(s\)\(\approx\)\(1.05\)
x¯=1.76

The mean is \(1.76\) pets per household. Entering the values with their frequencies in the statistics mode gives \(s \approx 1.05\) pets.

Example 3 — Comparing two distributions
A Bendigo commuter timed six trips on each of two bus routes (minutes). Route A: \(22,\ 25,\ 24,\ 23,\ 26,\ 24\). Route B: \(15,\ 30,\ 20,\ 34,\ 18,\ 27\). Find the mean and standard deviation of each route, and compare them.
Solution

Both data sets are small with no outliers, so the mean and \(s\) are suitable.

\(\bar{x}_A\)\(=\)\(\dfrac{144}{6}\)
\(\)\(=\)\(24\)
\(s_A\)\(=\)\(\sqrt{\dfrac{10}{5}}\)
\(\)\(\approx\)\(1.41\)
\(\bar{x}_B\)\(=\)\(\dfrac{144}{6}\)
\(\)\(=\)\(24\)
\(s_B\)\(=\)\(\sqrt{\dfrac{278}{5}}\)
\(\)\(\approx\)\(7.46\)
sA≈1.41,sB≈7.46

Centre: both routes have the same mean travel time, \(24\) minutes. Spread: route B's standard deviation (\(7.46\) min) is much larger than route A's (\(1.41\) min), so route A is far more consistent. A commuter who must arrive on time should choose route A.

Example 4 — The effect of an outlier
The weekly earnings (\$) of seven casual workers at a Ballarat café are \(320,\ 350,\ 360,\ 380,\ 400,\ 410,\ 1500\). Find the mean, median and standard deviation with and without the value \(1500\). Which measures of centre and spread suit these data?
Solution

Recalculate each statistic without \(1500\) and compare.

\(\bar{x}\)\(=\)\(\dfrac{3720}{7}\)
\(\)\(\approx\)\(531.43\)
\(\text{median}\)\(=\)\(380\)
\(s\)\(\approx\)\(428.19\)
\(\bar{x}\text{ without 1500}\)\(=\)\(\dfrac{2220}{6}\)
\(\)\(=\)\(370\)
\(\text{median without 1500}\)\(=\)\(370\)
\(s\text{ without 1500}\)\(\approx\)\(33.47\)
x¯≈531.43,median=380

The single value \$1500 raises the mean from \$370 to about \$531 and the standard deviation from about \$33.47 to about \$428.19, but moves the median only from \$370 to \$380. Because the data contain an outlier, the median and IQR describe them better than the mean and standard deviation.

Common pitfalls

Use the \(n - 1\) standard deviation. Dividing by \(n\) instead of \(n - 1\) gives a value that is too small (in Example 1, \(4\) instead of \(4.47\)).
A larger \(s\) is not a larger centre. Standard deviation measures spread. Two groups can have the same mean and very different standard deviations.
Compare both centre and spread, in context. "Route B has a larger \(s\)" is not enough; say what it means: route B's travel times are less consistent.

Frequently asked questions

What does the standard deviation tell you?

How spread out the values are around the mean. A small standard deviation means the values are close to the mean and consistent; a large one means they are widely spread.

How do you calculate standard deviation by hand?

Find the mean, subtract it from each value to get the deviations, square them, add the squares, divide by n - 1, then take the square root.

Why do we divide by n - 1?

The data are treated as a sample, and dividing by n - 1 gives the sample standard deviation s used in this course. On a calculator choose the sample standard deviation, often labelled sx.

When should you use the median and IQR instead of the mean and standard deviation?

When the distribution is skewed or has outliers. Extreme values pull the mean and standard deviation a long way, but hardly move the median and IQR.

How do you compare two distributions using the mean and standard deviation?

Compare the means to say which group is typically higher, and compare the standard deviations to say which group is more consistent. Always state both in the context of the data.