Leaving Certificate Mathematics11.5 The standard deviation

All books

11.5 The standard deviation — Learn

Prerequisites: Section 11.4 — the mean, the median and the range; squaring a number and taking a square root.

Objectives: find the standard deviation of a list and from a frequency table; find quartiles and the interquartile range; choose the measure of spread that suits the data.

By the end of this section you can put a single number on how spread out a data set is, and you can explain what that number means.

Why the range is not enough

The range uses only two values, so one outlier can make it huge. Two data sets can share a range and be spread out in completely different ways. The standard deviation uses every value, so it measures the whole data set.

The standard deviation starts from the deviation of each value from the mean, x−μx - \mu. Some deviations are positive and some are negative, and they add to zero.

To stop them cancelling, we square each one. The mean of the squared deviations is the variance, and its square root is the standard deviation.

The standard deviation of a list. For values with mean μ\mu,

σ=∑(x−μ)2n\sigma = \sqrt{\frac{\sum (x - \mu)^2}{n}}

where nn is how many values there are. This is the formula in the formulae and tables booklet. The Greek letter σ\sigma is read "sigma".

The variance is σ2\sigma^2. The standard deviation is in the same units as the data, which is why it is usually reported instead of the variance.

Example 1. Find the standard deviation of 22, 44, 66, 88 and 1010.

The mean is μ=305=6\mu = \dfrac{30}{5} = 6. The deviations and their squares are:

xx x−μx - \mu (x−μ)2(x - \mu)^2
22 −4-4 1616
44 −2-2 44
66 00 00
88 22 44
1010 44 1616

The squared deviations add to 4040, so the variance is 405=8\dfrac{40}{5} = 8 and

σ=8=22≈2.83\sigma = \sqrt{8} = 2\sqrt{2} \approx 2.83

From a frequency table

When the data are in a frequency table, each squared deviation is multiplied by its frequency.

The standard deviation from a frequency table.

σ=∑f(x−μ)2∑f\sigma = \sqrt{\frac{\sum f(x - \mu)^2}{\sum f}}

Example 2. Find the standard deviation of the data in this table.

Value xx Frequency ff
11 22
22 44
33 66
44 44
55 22

The total frequency is ∑f=18\sum f = 18 and the mean is

μ=1×2+2×4+3×6+4×4+5×218=5418=3\mu = \frac{1 \times 2 + 2 \times 4 + 3 \times 6 + 4 \times 4 + 5 \times 2}{18} = \frac{54}{18} = 3

The squared deviations are (1−3)2=4(1-3)^2 = 4, (2−3)2=1(2-3)^2 = 1, (3−3)2=0(3-3)^2 = 0, (4−3)2=1(4-3)^2 = 1 and (5−3)2=4(5-3)^2 = 4. Weighted by frequency:

∑f(x−μ)2=2(4)+4(1)+6(0)+4(1)+2(4)=24\sum f(x - \mu)^2 = 2(4) + 4(1) + 6(0) + 4(1) + 2(4) = 24 σ=2418=43=233≈1.15\sigma = \sqrt{\frac{24}{18}} = \sqrt{\frac{4}{3}} = \frac{2\sqrt{3}}{3} \approx 1.15

A sample and the population

The formula above divides by nn, which describes a data set that is the whole population. When the data are a sample used to estimate the spread of a larger population, dividing by n−1n - 1 gives a better estimate. The booklet prints this estimate as s=∑(x−xˉ)2n−1s = \sqrt{\dfrac{\sum (x - \bar{x})^2}{n - 1}}.

Example 3. Find the sample standard deviation of 22, 44, 66, 88 and 1010.

The squared deviations still add to 4040, and n−1=4n - 1 = 4:

s=404=10≈3.16s = \sqrt{\frac{40}{4}} = \sqrt{10} \approx 3.16

The sample estimate, 3.163.16, is larger than the population value, 2.832.83, because dividing by the smaller number 44 makes the result larger.

Quartiles and the interquartile range

The interquartile range, or IQR, is the spread of the middle half of the data. It is found from the quartiles. The lower quartile Q1Q_1 is the value one quarter of the way up the ordered list, and the upper quartile Q3Q_3 is the value three quarters of the way up.

The interquartile range. IQR=Q3−Q1\text{IQR} = Q_3 - Q_1.

The IQR ignores the lowest quarter and the highest quarter, so an outlier does not move it. The standard deviation uses every value, so an outlier does move it. Use the IQR when the data are skewed or contain outliers, and the standard deviation when they are fairly symmetric.

Example 4. Find the IQR of 11, 33, 44, 66, 88, 99, 1111 and 1414, using the (n+1)(n + 1) position method.

There are n=8n = 8 values. The position of Q1Q_1 is n+14=2.25\dfrac{n + 1}{4} = 2.25, which lies between the 22nd value 33 and the 33rd value 44:

Q1=3+0.25(4−3)=3.25Q_1 = 3 + 0.25(4 - 3) = 3.25

The position of Q3Q_3 is 3(n+1)4=6.75\dfrac{3(n + 1)}{4} = 6.75, between 99 and 1111:

Q3=9+0.75(11−9)=10.5Q_3 = 9 + 0.75(11 - 9) = 10.5 IQR=10.5−3.25=7.25\text{IQR} = 10.5 - 3.25 = 7.25

Progress check

Back to the chapter problem. The 1010 ages recorded by the polling company were 1818, 2222, 2525, 3131, 3434, 4141, 4747, 5353, 6161 and 7878, with mean 4141.

Find the standard deviation, dividing by nn.

The squared deviations add to 32443244, so the variance is

324410=324.4\frac{3244}{10} = 324.4

and

σ=324.4≈18.0\sigma = \sqrt{324.4} \approx 18.0

The ages are spread about 1818 years either side of the mean. That is a wide spread, and it is another reason a sample of 1010 tells us little about the country. Section 11.7 shows how the sample size, not the spread alone, sets the margin of error.

You should now be able to

Settings

Colour scheme

Light or dark pages. Your colour and layout stay the same.

Colour

The paper, ink and lettering. Your layout stays the same.

Quiet colours
Bold colours
Layout

How pages are arranged. Your colours stay the same.

Reading offline

Keep this book on this device and read it offline.