The mean as a see-saw

Here is a helpful way to think about the mean: it is a balance point. The total distance to the values below it equals the total distance to the values above it. Once you see it like that, it becomes clear what happens when a value is added, removed, shifted or scaled, and we can ask the same questions about the median. In this lesson we work through those changes, recover a missing value from a known mean, and handle data given with frequencies.

The mean as a centre

Take two numbers, 33 and 77. Their mean is 55, exactly halfway. For 10,10,11,1710, 10, 11, 17, the mean is 1212. That is not halfway between 1010 and 1717, but look at the distances: below it they add to (2+2+1=52 + 2 + 1 = 5), and above it to (55). They are equal. On a dot plot, the mean is the point where the dots would balance, like a see-saw.

Dot plot of 10, 10, 11 and 17 on a number line resting on a fulcrum at the mean 12: the distances below add to 2 + 2 + 1 = 5 and the distance above is 5.
The data 10, 10, 11, 17 balance at their mean, 12.

There is only one such point. Slide your balance point to the right and every distance on the left grows while every distance on the right shrinks, so the balance breaks.

Adding, removing, shifting, scaling

  • Add a value above the mean and the mean rises. Add one below and it falls. Add one equal to the mean and nothing changes.
  • Remove a value above the mean and the mean falls. Remove one below and it rises. Remove one equal to the mean and nothing changes.
  • Add two values that balance, one dd above and one dd below, and the mean stays the same. Three values can balance too, for example two below and one above, as long as the distances match.
  • Add a fixed number kk to every value and the mean rises by kk. If the values x1,…,xnx_1, \ldots, x_n have mean aa, then (x1+k)+⋯+(xn+k)n=x1+⋯+xnn+nkn=a+k\displaystyle \dfrac{(x_1 + k) + \cdots + (x_n + k)}{n} = \dfrac{x_1 + \cdots + x_n}{n} + \dfrac{nk}{n} = a + k. Subtracting kk lowers it by kk.
  • Multiply every value by mm and the mean is multiplied by mm, thanks to distributivity: mx1+⋯+mxnn=m⋅x1+⋯+xnn=ma\displaystyle \dfrac{m x_1 + \cdots + m x_n}{n} = m \cdot \dfrac{x_1 + \cdots + x_n}{n} = ma.

Example 1. The heights of 2424 students averaged 150.2150.2 cm, but they were measured wearing shoes that add 11 cm. There's no need to measure everyone again: the true mean is 149.2149.2 cm.

Example 2. The data 6,3,9,12,56, 3, 9, 12, 5 has mean 77. Double every value to get 12,6,18,24,1012, 6, 18, 24, 10, and the mean becomes 1414.

The median

The median is the middle value once the data is sorted (or the mean of the two middle values). If you add a value above the median, the median rises, either to the next value up or halfway to it. Add one below and it falls. Add one above and one below, and it stays put. Remove a value below the median and it rises.

Example 3. For 4,7,9,12,154, 7, 9, 12, 15, the median is 99. Add 2020 to get 4,7,9,12,15,204, 7, 9, 12, 15, 20, and the median becomes 10.510.5. Add both 2020 and 11, and the median is 99 again.

Finding a missing value

Example 4. Nine weights average 4141 kg, and eight of them are 38,45,40,36,44,39,42,3738, 45, 40, 36, 44, 39, 42, 37. What is the ninth? The total must be 9×41=3699 \times 41 = 369. The eight known weights add to 321321, so the ninth is 4848 kg.

Example 5. A farmer's 1212 trees average 2828 coconuts, but one count was written down 55 too high. The recorded total is 336336, so the true total is 331331, and the true mean is 27.5827.58.

Mean and median with frequencies

Here are the family sizes in one class:

Size 33 44 55 66 77 88
Students 44 99 1212 66 33 11

A common mistake is to work out 3+4+⋯+86\displaystyle \dfrac{3 + 4 + \cdots + 8}{6}. That is not the mean, because each value has to be counted as many times as it occurs:

3×4+4×9+5×12+6×6+7×3+8×135=12+36+60+36+21+835=17335≈4.94\displaystyle \frac{3 \times 4 + 4 \times 9 + 5 \times 12 + 6 \times 6 + 7 \times 3 + 8 \times 1}{35} = \frac{12 + 36 + 60 + 36 + 21 + 8}{35} = \frac{173}{35} \approx 4.94

The median is the 1818th of the 3535 sorted values. Keep a running total: 44, then 1313, then 2525. So positions 1414 to 2525 are all 55, and the median is 55.

Bar chart of family sizes for 35 students: size 3 has 4, size 4 has 9, size 5 has 12, size 6 has 6, size 7 has 3, size 8 has 1; dashed line at the mean of about 4.94, median 5.
Family sizes of 35 students, with the mean and median marked.

Spreadsheets

A spreadsheet is a grid of cells, each named by its column letter and row number, such as B3 or E5. Imagine the marks of twenty students in six subjects filling a block of cells. A range is written Start:End, so B3:G3 is one student's row and D2:D21 is one subject's column. Formulas do the arithmetic for you: =SUM(B3:G3) totals a row, and =AVERAGE(D2:D21) averages a column. Type one formula, copy it down, and in seconds you have done what would take an hour with a calculator.

Practice

  1. Find the mean of the first 4040 natural numbers, the first 4040 odd numbers, and the first 4040 multiples of 55. What do you notice?
  2. A data set has mean 1212. State whether the mean rises, falls or stays the same if (a) 2020 is added; (b) 1212 is added; (c) 33 is removed; (d) 1212 is removed; (e) 88 and 1616 are both added.
  3. Twelve values have mean 30.530.5; each was recorded 22 too low. True mean?
  4. Values 2,5,5,8,102, 5, 5, 8, 10 are each multiplied by 33 and then 44 is added. New mean?
  5. Find the median of 6,9,14,21,25,30,33,38,41,47,526, 9, 14, 21, 25, 30, 33, 38, 41, 47, 52. Give one value that could be added without changing it; two values; one that could be removed.
  6. Always, sometimes or never: (a) removing a value below the median lowers the median; (b) adding a value below the mean lowers the mean; (c) adding four values leaves the median unchanged; (d) adding four values above the median raises it.
  7. The mean of 7,12,9,15,y,11,8,107, 12, 9, 15, y, 11, 8, 10 is 10.510.5. Find yy.
  8. Fourteen values have mean 118118. Their sum?
  9. For 10,45,7,70,16,33,38,7,27,24,p10, 45, 7, 70, 16, 33, 38, 7, 27, 24, p, which values of pp make the median 2727: 99, 2424, 2727, 3030, 5050, 100100?
  10. Marks with frequencies: 22 (33 students), 33 (88), 44 (1111), 55 (66), 66 (22). Find the mean and median.
  11. Write the spreadsheet formula for the average of cells C2 to C25, and for the total of B7 to H7.

Answers

Show answers
  1. 20.520.5; 4040; 102.5102.5. Each is the mean of the first and last terms.
  2. (a) Rises. (b) Same. (c) Rises. (d) Same. (e) Same.
  3. 32.532.5.
  4. Old mean 66; new mean 3×6+4=223 \times 6 + 4 = 22.
  5. 3030. Add 3030; add one below and one above, e.g. 11 and 100100. As for removing: taking away any single value leaves an even count, so the median becomes the mean of two middle values, and that stays exactly 3030 only if the two new middles average 3030. What if you remove 3030 itself? Then the middles are 2525 and 3333, giving 2929. So no single removal keeps the median at 3030.
  6. (a) Never: removing a value below the median raises it or, when values are tied, leaves it the same. (b) Always. (c) Sometimes. (d) Sometimes: usually it rises, but with ties it can stay, for example nine values all equal to 55 with four 66s added still have median 55.
  7. Total 8484; known sum 7272; y=12y = 12.
  8. 16521652.
  9. Sorted without pp: 7,7,10,16,24,27,33,38,45,707, 7, 10, 16, 24, 27, 33, 38, 45, 70 (ten values). With pp, the median is the 66th of eleven. p≤24p \leq 24: 66th is 2424. p≥27p \geq 27: 66th is 2727 ✓. So 27,30,50,10027, 30, 50, 100.
  10. Mean 6+24+44+30+1230=11630≈3.87\displaystyle \dfrac{6 + 24 + 44 + 30 + 12}{30} = \dfrac{116}{30} \approx 3.87. Median: 3030 values, 1515th and 1616th; running totals 3,11,223, 11, 22: both are 44: median 44.
  11. =AVERAGE(C2:C25); =SUM(B7:H7).