Mean

AS · S1 · 9 min

The mean is the everyday "average": add up all the values and divide by how many there are. It is the most used measure of central tendency because it uses every value and feeds directly into the standard deviation. On Paper 5 you calculate it from raw data, from frequency tables, from grouped data (as an estimate), and from summary totals such as ∑x\sum x, often for two data sets that are combined or compared.

The mean of raw data

Definition

The mean of nn values x1,x2,…,xnx_1, x_2, \dots, x_n is

xˉ=∑xn,\bar{x} = \frac{\sum x}{n},

where ∑x\sum x (read "sigma xx") is the sum of all the values.

For 4,7,7,9,134, 7, 7, 9, 13: ∑x=40\sum x = 40, n=5n = 5, so xˉ=8\bar{x} = 8.

A helpful picture: the mean is the balance point of the data. If each value were a unit weight on a ruler, the ruler would balance at xˉ\bar{x}. The deviations above the mean exactly cancel those below: ∑(x−xˉ)=0\sum (x - \bar{x}) = 0. This is why one extreme value drags the mean towards it: a weight far out along the ruler moves the balance point a long way.

Frequency tables

When values repeat, a frequency table lists each value xx with its frequency ff. Each value contributes f×xf \times x to the total.

Key result
xˉ=∑fx∑f\bar{x} = \frac{\sum fx}{\sum f}

∑f\sum f is the total number of values, nn.

Grouped data: estimating the mean

When the data are grouped into classes, the individual values are lost. To estimate the mean, assume every value in a class sits at the class mid-point, then use the frequency-table formula with xx as the mid-point.

Method
  1. Find each class's boundaries, then its mid-point x=12(lower boundary+upper boundary)x = \tfrac{1}{2}(\text{lower boundary} + \text{upper boundary}).
  2. Multiply each mid-point by its frequency to get fxfx.
  3. Estimate xˉ=∑fx∑f\bar{x} = \dfrac{\sum fx}{\sum f}, and call it an estimate.

Mid-points depend on the boundaries, so the class boundary rules matter here. For lengths "1010–1919" to the nearest cm, the boundaries are 9.59.5 and 19.519.5 and the mid-point is 14.514.5. For ages "1010–1919" the boundaries are 1010 and 2020 and the mid-point is 1515. For "10≤x<2010 \le x < 20" it is 1515.

The result is only an estimate because the values in each class are not really all at the mid-point. If values are spread fairly evenly within classes, the errors largely cancel and the estimate is good.

Working from totals

Many questions never give you the data; they give summary totals such as n=20n = 20 and ∑x=364\sum x = 364. Then xˉ=36420=18.2\bar{x} = \tfrac{364}{20} = 18.2 immediately.

Turned around, ∑x=nxˉ\sum x = n\bar{x}. This one fact solves most "adding, removing or combining" problems:

Key result
  • Total of the values: ∑x=nxˉ\sum x = n \bar{x}.
  • Combined mean of two data sets: xˉ=∑x1+∑x2n1+n2=n1xˉ1+n2xˉ2n1+n2\bar{x} = \dfrac{\sum x_1 + \sum x_2}{n_1 + n_2} = \dfrac{n_1 \bar{x}_1 + n_2 \bar{x}_2}{n_1 + n_2}.
  • Adding or removing a value: change the total and the count, then divide again.

The combined mean is not the average of the two means unless the sets are the same size. A class of 1010 with mean 8080 and a class of 3030 with mean 6060 have combined mean 800+180040=65\tfrac{800 + 1800}{40} = 65, not 7070.

Properties of the mean

  • It uses every data value.
  • It is affected by extreme values (outliers), so for skewed data it is pulled towards the tail.
  • It may not be one of the data values, and for discrete data it may not be a possible value (2.182.18 children).
  • It is the measure used with the standard deviation, and it is the natural choice for data that are roughly symmetrical with no outliers.

For a full comparison with the median and mode, see Interpreting and comparing distributions.

Worked examples

Mean from a frequency table (routine)

The numbers of children in 5050 families are recorded.

Number of children xx001122334455
Frequency ff6611111414997733

Find the mean number of children per family.

Solution

∑f=6+11+14+9+7+3=50\sum f = 6 + 11 + 14 + 9 + 7 + 3 = 50.

∑fx=0+11+28+27+28+15=109\sum fx = 0 + 11 + 28 + 27 + 28 + 15 = 109.

xˉ=10950=2.18\bar{x} = \tfrac{109}{50} = 2.18 children.

This is an exact mean (not an estimate): the data are not grouped.

Estimated mean from grouped data

The journey times of 120120 people are summarised.

Time tt (min)0≤t<100 \le t < 1010≤t<2010 \le t < 2020≤t<3020 \le t < 3030≤t<4030 \le t < 4040≤t<6040 \le t < 6060≤t<8060 \le t < 80
Frequency66181836363232202088

Calculate an estimate of the mean journey time.

Solution
Mid-point xx5515152525353550507070
fxfx30302702709009001120112010001000560560

∑fx=3880\sum fx = 3880, ∑f=120\sum f = 120.

xˉ≈3880120=32.3 minutes (3 s.f.).\bar{x} \approx \frac{3880}{120} = 32.3\ \text{minutes (3 s.f.)}.

The estimated median of these data is 3030 minutes (see Cumulative frequency). The mean is larger because the long journeys in the upper classes pull it up: the data are positively skewed.

A missing frequency

The scores on a 55-point scale given by some customers are shown.

Score1122334455
Frequency3377kk8822

The mean score is 2.962.96. Find kk.

Solution

∑f=20+k\sum f = 20 + k and ∑fx=3+14+3k+32+10=59+3k\sum fx = 3 + 14 + 3k + 32 + 10 = 59 + 3k.

59+3k20+k=2.96⇒59+3k=59.2+2.96k⇒0.04k=0.2⇒k=5.\frac{59 + 3k}{20 + k} = 2.96 \quad\Rightarrow\quad 59 + 3k = 59.2 + 2.96k \quad\Rightarrow\quad 0.04k = 0.2 \quad\Rightarrow\quad k = 5.
Combining two groups (exam style)

In a class of 3030 students, the 1212 boys have mean mark 5858. The mean mark of the whole class is 6161. Find the mean mark of the girls.

Solution

Total for the class: 30×61=183030 \times 61 = 1830. Total for the boys: 12×58=69612 \times 58 = 696.

Total for the 1818 girls: 1830−696=11341830 - 696 = 1134, so the girls' mean is 113418=63\tfrac{1134}{18} = 63.

Removing and adding values (exam-hard)

The mean of 2020 values is 14.514.5. One value is removed, and the mean of the remaining 1919 values is 14.214.2.

(a) Find the value that was removed. (b) A further 1515 values, with mean 1616, are then added to the 1919 values. Find the mean of all 3434 values.

Solution

(a) Original total: 20×14.5=29020 \times 14.5 = 290. New total: 19×14.2=269.819 \times 14.2 = 269.8. Removed value: 290−269.8=20.2290 - 269.8 = 20.2.

(b) Total of the new values: 15×16=24015 \times 16 = 240. Overall mean:

269.8+24034=509.834=14.99 (4 s.f.)≈15.0.\frac{269.8 + 240}{34} = \frac{509.8}{34} = 14.99\ (\text{4 s.f.}) \approx 15.0.

Note how working with totals avoids ever needing the individual values.

Watch out

Averaging the averages. The mean of two groups combined is the total over the total count. Only when the groups are equal in size does it equal the mean of the two means.

Watch out

Using class widths or upper boundaries instead of mid-points. For grouped data the representative value is the mid-point, found from the boundaries. "2020–2929" (rounded) has mid-point 24.524.5, not 2525 and not 2929; ages "2020–2929" have mid-point 2525.

Watch out

Dividing by the number of classes. In ∑fx∑f\tfrac{\sum fx}{\sum f}, the denominator is the total frequency, not the number of rows in the table.

Exam tip
  • Show the fxfx column (or the sum ∑fx\sum fx written out). A bare final answer from a calculator's statistics mode risks losing all the marks if it is wrong.
  • Say "estimate" for grouped data, and if asked why: the actual values within each class are unknown, so the mid-points are used.
  • Give answers to 33 s.f. unless exact; keep full accuracy in intermediate totals.
  • Questions on two data sets almost always need totals: write ∑x=nxˉ\sum x = n\bar{x} for each set before you do anything else.
Summary
  • xˉ=∑xn\bar{x} = \dfrac{\sum x}{n} for raw data; xˉ=∑fx∑f\bar{x} = \dfrac{\sum fx}{\sum f} for a frequency table.
  • Grouped data: use class mid-points; the result is an estimate.
  • Mid-points come from class boundaries; take care with rounded data and ages.
  • ∑x=nxˉ\sum x = n\bar{x}: the key to combining sets and adding or removing values.
  • The combined mean is n1xˉ1+n2xˉ2n1+n2\dfrac{n_1\bar{x}_1 + n_2\bar{x}_2}{n_1 + n_2}, not the mean of the means.
  • The mean uses all the data but is sensitive to extreme values.

Practice questions

Question
  1. Find the mean of 3.2,4.8,5.1,2.7,6.0,4.43.2, 4.8, 5.1, 2.7, 6.0, 4.4.
  2. The numbers of goals scored in 4040 matches: 00 goals (88 matches), 11 (1212), 22 (1010), 33 (66), 44 (33), 55 (11). Find the mean number of goals per match.
  3. The ages of 4040 people at an event are grouped as 1010–1919 (88), 2020–2929 (1515), 3030–4949 (1212), 5050–7979 (55). Estimate the mean age.
  4. For a set of 1818 values, ∑x=432\sum x = 432. Find the mean. Another value, 4343, is added. Find the new mean.
  5. Class A has 2525 students with mean height 162 cm162\ \text{cm} and class B has 1515 students with mean height 170 cm170\ \text{cm}. Find the mean height of all 4040 students.
  6. The mean of eight numbers is 1212. Seven of them are 9,15,11,14,8,13,129, 15, 11, 14, 8, 13, 12. Find the eighth.
  7. The times taken, tt minutes, are grouped as 0≤t<100 \le t < 10 (55 people), 10≤t<2010 \le t < 20 (xx people) and 20≤t<4020 \le t < 40 (1010 people). The estimated mean time is 1717 minutes. Find xx.
  8. A student calculates the mean of 2525 values to be 40.440.4. She then discovers that one value, which should have been 3838, was recorded as 8383. Find the correct mean.
Answers
  1. ∑x=26.2\sum x = 26.2, n=6n = 6, xˉ=4.37\bar{x} = 4.37 (3 s.f.).

  2. ∑fx=0+12+20+18+12+5=67\sum fx = 0 + 12 + 20 + 18 + 12 + 5 = 67; ∑f=40\sum f = 40; xˉ=1.675\bar{x} = 1.675 goals.

  3. Ages: boundaries 10,20,30,50,8010, 20, 30, 50, 80; mid-points 15,25,40,6515, 25, 40, 65. ∑fx=120+375+480+325=1300\sum fx = 120 + 375 + 480 + 325 = 1300. Estimated mean =130040=32.5= \tfrac{1300}{40} = 32.5 years.

  4. xˉ=43218=24\bar{x} = \tfrac{432}{18} = 24. New mean =432+4319=47519=25= \tfrac{432 + 43}{19} = \tfrac{475}{19} = 25.

  5. 25×162+15×17040=4050+255040=660040=165 cm\tfrac{25 \times 162 + 15 \times 170}{40} = \tfrac{4050 + 2550}{40} = \tfrac{6600}{40} = 165\ \text{cm}.

  6. Total =8×12=96= 8 \times 12 = 96. The seven sum to 8282, so the eighth is 1414.

  7. Mid-points 5,15,305, 15, 30. 25+15x+30015+x=17\tfrac{25 + 15x + 300}{15 + x} = 17, so 325+15x=255+17x325 + 15x = 255 + 17x, giving 2x=702x = 70 and x=35x = 35.

  8. Incorrect total =25×40.4=1010= 25 \times 40.4 = 1010. Correct total =1010−83+38=965= 1010 - 83 + 38 = 965. Correct mean =96525=38.6= \tfrac{965}{25} = 38.6.

How well do you know this?

Builds on

Where this leads

Console

Search notes, courses and tools, or run an action