‹ Chapter 2 worksheets
Download worksheet (PDF)Answers (free account)
A-Level Maths (Edexcel 9MA0) · Statistics Year 1 · Chapter 2: Measures of location and spread · Lesson 4

Coding

112 marks
Hints online, answers free with an account:
mathswariz.uk/worksheets/a-level-statistics-coding/
Date
A

Do Now

Quick questions to start. Some use earlier lessons; some set a slip that the examiner reports say costs marks.

  1. A1
    Needed today

    The values have mean . Write down the mean of and the mean of .

    [2 marks]
    Answer
  2. A2
    Needed today

    Make the subject of .

    [2 marks]
    Answer
  3. A3
    Common slip

    A data set has standard deviation . Every value is increased by . Write down the new standard deviation.

    [2 marks]
  4. A4
    Needed today

    For values, and . Find the variance.

    [2 marks]
    Answer
B

Example, then your turn

A-Level

Your teacher works through each example with you. Then try the one beside it.

Example 1

The masses, grams, of five bags are . Use the coding to find the mean and standard deviation of .

Hint Find and from the small coded values. Then , and the standard deviation is not changed by subtracting .
  1. B1

    The heights, m, of five hills are . Use the coding to find the mean and the standard deviation of .

    [5 marks]
    Answer
Example 2

Data are coded using . For values, and . Find the mean and the standard deviation of .

Hint Find and first. Rearrange: , so and .
  1. B2

    The masses, grams, of cakes are coded using , giving and .

    (a)

    Find the mean mass of the cakes.

    [3 marks]
    Answer
    (b)

    Find the standard deviation of the masses.

    [3 marks]
    Answer
    Total for B2: 6 marks
Example 3

The lengths of planks are grouped in classes with midpoints cm and frequencies . Using , estimate the mean and the standard deviation of the lengths.

Hint The coded midpoints are . Work out and , then decode.
  1. B3

    The times, minutes, of phone calls are grouped in classes with midpoints and frequencies . Using , estimate the mean and the standard deviation of the times.

    [6 marks]
    Answer
Example 4

Each of values of is reduced by and then divided by to give . Then and . Find the mean and the standard deviation of .

Hint The coding is . Each deviation is times , so .
  1. B4

    For values of , the coding gives and . Find the mean and the standard deviation of .

    [5 marks]
    Answer
C

Practice

A-Level
  1. C1

    Air pressures, hPa, are coded using . The coded values have mean and standard deviation . Jamal says the standard deviation of is . Explain his mistake and find the mean and standard deviation of .

    [4 marks]
  1. C2

    Data are coded using . The variance of is . Ana says the variance of is . Explain her mistake and find the standard deviation of .

    [4 marks]
  2. C3

    For values, the coding gives . Kemi writes . Explain her mistake and find and the mean of .

    [4 marks]
  3. C4

    Data are coded using . The coded data have and . Rob writes . Explain his mistake and find and .

    [4 marks]
  4. C5

    The masses, kg, of five parcels are . Choose a suitable coding to make the arithmetic simple, and find the mean and standard deviation of .

    [5 marks]
    Answer
D

Exam-style questions

Edexcel exam style
  1. D1

    The daily maximum temperatures, , at a weather station on days (values for this question only) are coded using . Then and .

    (a)

    Find the mean of .

    [3 marks]
    Answer
    (b)

    Find the standard deviation of .

    [4 marks]
    Answer
    (c)

    The temperature in degrees Fahrenheit is . Find the mean and the standard deviation of the temperatures in degrees Fahrenheit.

    [3 marks]
    Answer
    Total for D1: 10 marks
  1. D2

    The daily mean pressures, hPa, at a weather station on the days of one month (values for this question only, not from the large data set) are coded using , giving and . Sam says: ", so the mean pressure is hPa."

    Sam is wrong.

    (a)

    Find correctly.

    [2 marks]
    Answer
    (b)

    Find the mean and the standard deviation of .

    [4 marks]
    Answer
    (c)

    Explain why the standard deviation of is the same as the standard deviation of , and why Sam's mean cannot be right.

    [3 marks]
    Total for D2: 9 marks
  2. D3

    For values of , the coding gives and . Find and , and hence the standard deviation of .

    [7 marks]
    Answer
  3. D4

    The heights, cm, of some plants are grouped in classes with midpoints and frequencies . The coding is used. The estimate of the mean height is cm.

    (a)

    Show that for every value of .

    [2 marks]
    Answer
    (b)

    Hence find .

    [3 marks]
    Answer
    (c)

    Estimate the standard deviation of the heights.

    [4 marks]
    Answer
    Total for D4: 9 marks
  4. D5

    Group has values, coded using , with and . Group has values, not coded, with and .

    (a)

    Find and for group .

    [4 marks]
    Answer
    (b)

    Find the mean and the standard deviation of all values.

    [5 marks]
    Answer
    Total for D5: 9 marks
  5. D6

    The weekly pay of the workers at a firm has mean £ and standard deviation £. Next year each worker's pay will become .

    (a)

    Find the mean of next year's pay.

    [3 marks]
    Answer
    (b)

    Find the standard deviation of next year's pay.

    [3 marks]
    Answer
    (c)

    The manager says that the standard deviation will go up by more than £ because everyone gets an extra £. Explain why the manager is wrong.

    [2 marks]
    Total for D6: 8 marks
E

Extension

Stretch

No route is given. The hints are at the end of the sheet. Use one at a time.

  1. E1

    For values of , and . The values are coded using , where and are constants and . The coded values have and . Find and .

    [9 marks]
    Hint 1 · What to try

    Find the mean and the variance of , and the mean and the variance of .

    Hint 2 · The first line

    Coding by divides the variance by , whatever is. This gives .

    Hint 3 · The full method

    Then use to find .

F

How did it go?

Colour one circle on each line.
Not yetNearlyYes
I can code data to simplify a calculation, and decode the mean and standard deviation.
I can find the mean and standard deviation of x from coded summary statistics.
I know that adding or subtracting a constant does not change the standard deviation, and that dividing by a constant divides the variance by its square.
I can decode totals, combine a coded group with another group, and find the coding constants.

Answers and mark scheme

The worked answers and the full mark scheme are free with a Mathswariz account. Teachers and students can both sign up.

Get the answers