Skip to content

The standard deviation from a frequency table

The standard deviation from a frequency table

The standard deviation from a frequency table

In a frequency table each value comes up several times, so each squared deviation goes into the sum several times: it is multiplied by the value’s frequency, and the sum is divided by the sum of the frequencies.

σ2=(x1−xˉ)2f1+⋯+(xk−xˉ)2fkf1+⋯+fk\displaystyle \sigma^2=\frac{(x_1-\bar{x})^2f_1+\dots+(x_k-\bar{x})^2f_k}{f_1+\dots+f_k}

The number of fouls of 40 high jumpers in a competition:

Number of fouls x\displaystyle x01234Sum
Frequency f\displaystyle f41696540
x⋅f\displaystyle x\cdot f01618182072
x−xˉ\displaystyle x-\bar{x}−1.8\displaystyle -1.8−0.8\displaystyle -0.80.2\displaystyle 0.21.2\displaystyle 1.22.2\displaystyle 2.2
(x−xˉ)2⋅f\displaystyle (x-\bar{x})^2\cdot f12.9610.240.368.6424.256.4
  • The mean: xˉ=7240=1.8\displaystyle {\bar{x}}={\frac{72}{40}}={1.8} fouls.
  • The variance: σ2=56.440=1.41\displaystyle {\sigma^2}={\frac{56.4}{40}}={1.41}.
  • The standard deviation: σ=1.41≈1.19\displaystyle {\sigma}={\sqrt{1.41}\approx1.19} fouls.
The standard deviation of data in classes

For data in classes the values themselves are not known. As for the mean, all the data in a class are taken to be at the class’s middle, and the work is done with the middles. The result is an estimate of the standard deviation.

The heights of 30 students, in cm:

0246810140150160170180190Height (cm)Students281082
Height140–150150–160160–170170–180180–190Sum
The class’s middle m\displaystyle m145155165175185
Frequency f\displaystyle f28108230
m−xˉ\displaystyle m-\bar{x}−20\displaystyle -20−10\displaystyle -100\displaystyle 010\displaystyle 1020\displaystyle 20
(m−xˉ)2⋅f\displaystyle (m-\bar{x})^2\cdot f80080008008003200
  • The estimated mean: xˉ≈145⋅2+155⋅8+165⋅10+175⋅8+185⋅230=495030=165\displaystyle {\bar{x}\approx\frac{145\cdot2+155\cdot8+165\cdot10+175\cdot8+185\cdot2}{30}}={\frac{4950}{30}}={165} cm.
  • The variance: σ2≈320030≈106.67\displaystyle \sigma^2\approx\frac{3200}{30}\approx106.67.
  • The standard deviation: σ≈106.67≈10.33\displaystyle \sigma\approx\sqrt{106.67}\approx10.33 cm.

When one of the end classes is open (“190 and over”), it has no middle, and neither the mean nor the standard deviation can be worked out.

Comparing the spread in two classes

Two bar charts on the same axes show how the marks are distributed in two classes of 20 students:

01234567845678910MarkStudents02484202236322Class 10-1Class 10-2
  • Both distributions are symmetric about 7, so in both classes the mean is 7, and so are the median and the mode.
  • In class 10-1 the marks are gathered around 7: from 5 to 9.
  • In class 10-2 they are spread from 4 to 10.

The standard deviation in class 10-1: the deviations of 5, 6, 7, 8, 9 from the mean are −2,−1,0,1,2\displaystyle -2, -1, 0, 1, 2, and the frequencies 2,4,8,4,2\displaystyle 2, 4, 8, 4, 2.

σ2=4⋅2+1⋅4+0⋅8+1⋅4+4⋅220=2420=1.2,σ=1.2≈1.10\sigma^2=\frac{4\cdot2+1\cdot4+0\cdot8+1\cdot4+4\cdot2}{20}=\frac{24}{20}=1.2,\qquad\sigma=\sqrt{1.2}\approx1.10
Exercise 1

20 students were asked how many brothers and sisters they have:

Number of siblings0123
Frequency51032
a

Work out the mean.

    / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – check and a new line · * – times · ^ – power, ↓ – end of the power

    / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – a new line · * – times · ^ – power, ↓ – end of the power

    b

    Work out the standard deviation, rounded to two decimal places.

      / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – check and a new line · * – times · ^ – power, ↓ – end of the power

      / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – a new line · * – times · ^ – power, ↓ – end of the power

      Exercise 2

      Go back to the two classes in the chart.

      a

      Work out the standard deviation of the marks in class 10-2, rounded to two decimal places.

        / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – check and a new line · * – times · ^ – power, ↓ – end of the power

        / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – a new line · * – times · ^ – power, ↓ – end of the power

        b

        Compare the two classes: what is alike and what differs? Refer to the measures of centre and the measures of spread.

        Exercise 3

        20 people were asked how many minutes they walk a day:

        Minutes0–2020–4040–60
        Frequency4106
        a

        Work out the estimated mean.

          / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – check and a new line · * – times · ^ – power, ↓ – end of the power

          / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – a new line · * – times · ^ – power, ↓ – end of the power

          b

          Work out the estimated standard deviation.

            / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – check and a new line · * – times · ^ – power, ↓ – end of the power

            / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – a new line · * – times · ^ – power, ↓ – end of the power

            c

            Why are the results of the first two parts only an estimate?

            Exercise 4

            In a survey, employees were asked how many hours of overtime they did in a month:

            Hours0–1010–2020–3030 and over
            Employees121594

            Which measures can be worked out from this table, and which cannot? Explain.