Skip to main content
Examonaut

Topic 2 · Lesson 1 of 4

Averages and spread

Averages: mean, median and mode

An average describes the centre of the data.

  • The mean, xˉ=∑xn\bar{x} = \frac{\sum x}{n}, uses every value, so it is affected by extreme values.
  • The median is the middle value when the data are in order, so it ignores extremes. For nn values it is the n+12\frac{n + 1}{2}th value.
  • The mode is the most common value; useful for categories (most popular shoe size).

The choice matters. Salaries in a small company of £20k, £22k, £23k, £25k and £150k have a mean of £48k, which describes nobody; the median, £23k, is more representative. Use the median when there are extreme values or the data are skewed.

Spread: range, quartiles and standard deviation

Two data sets can have the same average but very different spread, as the dot plots show. A measure of spread says how consistent the data are.

small sdlarge sdsame mean, 10
  • The range is largest minus smallest; it depends only on the two extremes.
  • The quartiles split the ordered data into quarters: Q1Q_1 (lower quartile), Q2Q_2 (median), Q3Q_3 (upper quartile). The interquartile range IQR=Q3−Q1\text{IQR} = Q_3 - Q_1 is the spread of the middle half, so extremes don't affect it. Percentiles split the data into hundredths; the 10th to 90th interpercentile range covers the middle 80%.
  • The variance and standard deviation measure spread around the mean, using every value.

Where the standard deviation comes from. Each value's distance from the mean is x−xˉx - \bar{x}. Their average is useless (it is always 0, as positives cancel negatives), so square them first, average the squares, and then square-root to get back to the original units:

σ2=∑(x−xˉ)2n=∑x2n−xˉ2,σ=variance\sigma^2 = \frac{\sum(x - \bar{x})^2}{n} = \frac{\sum x^2}{n} - \bar{x}^2, \qquad \sigma = \sqrt{\text{variance}}

The second form, "mean of the squares minus the square of the mean", is much quicker to use. You will also see Sxx=∑(x−xˉ)2=∑x2−(∑x)2nS_{xx} = \sum(x - \bar{x})^2 = \sum x^2 - \frac{(\sum x)^2}{n}, so that σ2=Sxxn\sigma^2 = \frac{S_{xx}}{n}. Roughly, the standard deviation is a typical distance of a value from the mean.

Try it: drag the data and watch how the averages, quartiles, standard deviation, box plot and outliers respond. Switch to grouped data for histograms, cumulative frequency and coding.

Try it: simulation

Averages, spread and graphs

Loading the simulation…

Worked example

From summary statistics

For 10 values, ∑x=152\sum x = 152 and ∑x2=2468\sum x^2 = 2468. Find the mean and standard deviation. An eleventh value, 15.2, is added: what happens to each?

Show solution
  1. xˉ=15210=15.2\bar{x} = \frac{152}{10} = 15.2.
  2. σ2=246810−15.22=246.8−231.04=15.76\sigma^2 = \frac{2468}{10} - 15.2^2 = 246.8 - 231.04 = 15.76, so σ=3.97\sigma = 3.97.
  3. Adding a value exactly equal to the mean leaves the mean at 15.2. It adds 0 to ∑(x−xˉ)2\sum(x - \bar{x})^2 but increases nn, so the standard deviation decreases slightly (to 157.611=3.79\sqrt{\frac{157.6}{11}} = 3.79).

Practise this topic

Both are part of Premium.