Skip to content

The standard deviation

The standard deviation

Two funds with the same mean

The mean alone does not tell how widely the data are spread round it. For that there is a measure of spread.

The return of a savings fund in a year is the percent by which the money in the fund grew that year (a negative return – the money shrank).
The returns of two funds over the last five years, in percent:

-4-202468101220212022202320242025YearReturn (%)45655-2123102Fund AFund B
  • The mean of fund A: 4+5+6+5+55=5\displaystyle {\frac{4+5+6+5+5}{5}}={5}.
  • The mean of fund B: −2+12+3+10+25=5\displaystyle {\frac{-2+12+3+10+2}{5}}={5}.

With the same mean, fund A’s return hardly changes from year to year, and fund B’s jumps – from a year of loss to a year of big gain.

The range

The range is the difference between the greatest value and the least.

xmax⁡−xmin⁡\displaystyle x_{\max}-x_{\min}
  • Fund A: 6−4=2\displaystyle {6-4}={2}.
  • Fund B: 12−(−2)=14\displaystyle {12-(-2)}={14}.

The range depends on two values alone, the extreme ones. One outlier makes it much larger, even when all the others are close together.

The deviation from the mean

The deviation of a value from the mean is x−xˉ\displaystyle x-\bar{x}: positive above the mean, negative below it.

The deviations in fund A: −1, 0, 1, 0, 0\displaystyle -1,\ 0,\ 1,\ 0,\ 0.

The deviations from the mean always add up to 0 – those above and those below cancel each other out. So each deviation is squared: a square is always positive (or 0), and a large deviation gives a very large square.

The variance and the standard deviation

The variance is the mean of the squared deviations, and the standard deviation σ\displaystyle \sigma is its square root. The standard deviation is about the usual distance of a value from the mean, in the same units as the data.

σ2=(x1−xˉ)2+(x2−xˉ)2+⋯+(xn−xˉ)2n\displaystyle \sigma^{2}=\frac{(x_1-\bar{x})^{2}+(x_2-\bar{x})^{2}+\dots+(x_n-\bar{x})^{2}}{n}
σ=σ2\displaystyle \sigma=\sqrt{\sigma^{2}}

The work for fund B (the mean is 5):

The return x\displaystyle xThe deviation x−xˉ\displaystyle x-\bar{x}The deviation squared
−2\displaystyle -2−7\displaystyle -749
12749
3−2\displaystyle -24
10525
2−3\displaystyle -39
Sum: 0Sum: 136
  • The variance: 1365=27.2\displaystyle {\frac{136}{5}}={27.2}.
  • The standard deviation: σ=27.2≈5.22\displaystyle {\sigma}={\sqrt{27.2}\approx5.22} percent.

In fund A the squared deviations are 1,0,1,0,0\displaystyle 1, 0, 1, 0, 0: the variance is 25=0.4\displaystyle {\frac{2}{5}}={0.4}, and the standard deviation 0.4≈0.63\displaystyle \sqrt{0.4}\approx0.63 percent. Fund B’s standard deviation is about 8 times as large: its returns are far more spread out.

The standard deviation from a frequency table

In a frequency table each squared deviation is counted as many times as its value appears – it is multiplied by the frequency.

The number of shifts a week of 10 workers in a restaurant:

Shifts345
Workers253
  • The mean: 3⋅2+4⋅5+5⋅310=4110=4.1\displaystyle {\frac{3\cdot2+4\cdot5+5\cdot3}{10}}={\frac{41}{10}}={4.1}.
  • The deviations: −1.1\displaystyle -1.1, −0.1\displaystyle -0.1, 0.9\displaystyle 0.9.
  • The variance: 1.21⋅2+0.01⋅5+0.81⋅310=4.910=0.49\displaystyle {\frac{1.21\cdot2+0.01\cdot5+0.81\cdot3}{10}}={\frac{4.9}{10}}={0.49}.
  • The standard deviation: σ=0.49=0.7\displaystyle {\sigma}={\sqrt{0.49}}={0.7} shifts.
Exercise 1

The price of the same packet of coffee in five shops, in shekels:
10, 12, 11, 9, 13\displaystyle 10,\ 12,\ 11,\ 9,\ 13

a

Work out the mean price.

    / – 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. Round 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

      The tips a waiter received in six weeks, in shekels:
      600, 800, 700, 900, 500, 700\displaystyle 600,\ 800,\ 700,\ 900,\ 500,\ 700

      a

      Work out the weekly 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. Round 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 3

          Four friends work in the same ice-cream shop, and each of them earns 45 ₪ an hour.

          What is the standard deviation of their hourly pay? Explain without working it out.

            / – 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 4

            A survey asked 20 families how many cars they have:

            Cars0123
            Families3863
            a

            Work out the mean number of cars a family.

              / – 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. Round 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