Coding
mathswariz.uk/worksheets/a-level-statistics-coding/
Do Now
Quick questions to start. Some use earlier lessons; some set a slip that the examiner reports say costs marks.
- A1Needed today[2 marks]
The values have mean . Write down the mean of and the mean of .
Answer - A2Needed today[2 marks]
Make the subject of .
Answer - A3Common slip[2 marks]
A data set has standard deviation . Every value is increased by . Write down the new standard deviation.
- A4Needed today[2 marks]
For values, and . Find the variance.
Answer
Example, then your turn
A-LevelYour teacher works through each example with you. Then try the one beside it.
The masses, grams, of five bags are . Use the coding to find the mean and standard deviation of .
- B1[5 marks]
The heights, m, of five hills are . Use the coding to find the mean and the standard deviation of .
Answer
Data are coded using . For values, and . Find the mean and the standard deviation of .
- B2
The masses, grams, of cakes are coded using , giving and .
(a)[3 marks]Find the mean mass of the cakes.
Answer(b)[3 marks]Find the standard deviation of the masses.
AnswerTotal for B2: 6 marks
The lengths of planks are grouped in classes with midpoints cm and frequencies . Using , estimate the mean and the standard deviation of the lengths.
- B3[6 marks]
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.
Answer
Each of values of is reduced by and then divided by to give . Then and . Find the mean and the standard deviation of .
- B4[5 marks]
For values of , the coding gives and . Find the mean and the standard deviation of .
Answer
Practice
A-Level- C1[4 marks]
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 .
- C2[4 marks]
Data are coded using . The variance of is . Ana says the variance of is . Explain her mistake and find the standard deviation of .
- C3[4 marks]
For values, the coding gives . Kemi writes . Explain her mistake and find and the mean of .
- C4[4 marks]
Data are coded using . The coded data have and . Rob writes . Explain his mistake and find and .
- C5[5 marks]
The masses, kg, of five parcels are . Choose a suitable coding to make the arithmetic simple, and find the mean and standard deviation of .
Answer
Exam-style questions
Edexcel exam style- D1
The daily maximum temperatures, , at a weather station on days (values for this question only) are coded using . Then and .
(a)[3 marks]Find the mean of .
Answer(b)[4 marks]Find the standard deviation of .
Answer(c)[3 marks]The temperature in degrees Fahrenheit is . Find the mean and the standard deviation of the temperatures in degrees Fahrenheit.
AnswerTotal for D1: 10 marks
- 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)[2 marks]Find correctly.
Answer(b)[4 marks]Find the mean and the standard deviation of .
Answer(c)[3 marks]Explain why the standard deviation of is the same as the standard deviation of , and why Sam's mean cannot be right.
Total for D2: 9 marks - D3[7 marks]
For values of , the coding gives and . Find and , and hence the standard deviation of .
Answer - 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)[2 marks]Show that for every value of .
Answer(b)[3 marks]Hence find .
Answer(c)[4 marks]Estimate the standard deviation of the heights.
AnswerTotal for D4: 9 marks - D5
Group has values, coded using , with and . Group has values, not coded, with and .
(a)[4 marks]Find and for group .
Answer(b)[5 marks]Find the mean and the standard deviation of all values.
AnswerTotal for D5: 9 marks - D6
The weekly pay of the workers at a firm has mean £ and standard deviation £. Next year each worker's pay will become .
(a)[3 marks]Find the mean of next year's pay.
Answer(b)[3 marks]Find the standard deviation of next year's pay.
Answer(c)[2 marks]The manager says that the standard deviation will go up by more than £ because everyone gets an extra £. Explain why the manager is wrong.
Total for D6: 8 marks
Extension
StretchNo route is given. The hints are at the end of the sheet. Use one at a time.
- E1[9 marks]
For values of , and . The values are coded using , where and are constants and . The coded values have and . Find and .
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 .
How did it go?
Colour one circle on each line.| Not yet | Nearly | Yes | |
|---|---|---|---|
| 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