Skip to content
Marlbridge

Revision Notes

Cambridge IGCSE Statistics: Transforming, combining and comparing data sets: coding, combined means and standardising (0479) – Revision Notes

Condensed revision notes for Topic 6 of Cambridge IGCSE Statistics (0479): coding rules, combined mean and SD, z-scores and comparing distributions.

Subject
Statistics
Level
IGCSE
Topic
Transforming, combining and comparing data sets: coding, combined means and standardising
Updated

Aligned to Cambridge IGCSE Statistics (0479), 2027. Official specification .

Syllabus topics and points this page is mapped to

0479

  • 6 Transformations of data sets (topic-level mapping)

"Topic-level mapping" means this page belongs to that topic; it does not claim to cover every point in it.

Found an error? Report a correction.

These notes summarise Topic 6, Transformations of data sets, from the Cambridge IGCSE Statistics (0479) syllabus for examination in 2027, outcomes 6.1 to 6.6. For full explanations and longer worked examples, read the study guide. Test yourself with the practice set, tick off topics on the printable checklist, and see the Statistics hub. Not sure where to start? Take a free 10-minute diagnostic.

Coding rules (6.1 and 6.2)

Each value x becomes y = ax + b.

Measure New value
Mean a × mean + b
Median a × median + b
Standard deviation |a| × standard deviation
Interquartile range (IQR) |a| × IQR

Spread measures ignore b and ignore the sign of a. Centre measures follow the whole rule.

Method in steps

  1. Write down the old mean, median, standard deviation and IQR.
  2. Apply a and b to the centre measures.
  3. Apply only |a| to the spread measures.
  4. Check the answer makes sense: a spread can never be negative.

Worked reminder. Data 20, 24, 28, 32, 36 has mean 28 and σ = √32 = 5.66. Coded with y = x/4 + 3: mean 28/4 + 3 = 10, σ = 5.66/4 = 1.41. Check: the coded values are 8, 9, 10, 11, 12, with mean 10 and σ = √2 = 1.41.

Negative multiplier. Data with median 55 and IQR 14, coded with y = 100 − x, gives median 45 and IQR 14. The order of the data reverses, so the old upper quartile becomes the new lower quartile.

Three box plots on one scale. The original data 2, 5, 6, 8, 11, 12, 15, 19 have median 9.5 and IQR 8. After y = 0.5x + 10 the median is 14.75 and the IQR 4. After y = 20 minus 2x the median is 1 and the IQR is 16, and the box is reversed so the new lower quartile is minus 7 and the new upper quartile is 9.
The median follows y = ax + b; the IQR is multiplied by |a| and ignores b. A negative a flips the order, so the old Q3 becomes the new Q1.

Adding or removing values (6.3)

Measure Add a value above the measure Add a value below Add a value equal to it
Mean increases decreases stays the same
Median increases or stays the same decreases or stays the same stays the same
Range increases if above the old maximum, otherwise stays the same increases if below the old minimum, otherwise stays the same stays the same if within the old range
Standard deviation usually increases if far from the mean usually increases if far from the mean decreases (if added at the mean)

Removing a value reverses the argument. Removing a value above the mean lowers the mean.

Worked reminder. Data 5, 7, 9, 12, 17, 20 has median 10.5. Adding 25 gives seven values, and the median is the fourth value, 12. It increased. Adding 10.5 would leave the median at 10.5.

Say why. Write the comparison: “25 is above the old median, so the median increases or stays the same. Here it moves to 12.”

Three number lines. The data 8, 11, 14, 9 and 13 have mean 11 and standard deviation 2.28. Multiplying by 3 gives mean 33 and standard deviation 6.84, so the points spread out. Subtracting 5 moves every point 5 to the left, giving mean 28 but the same standard deviation 6.84.
Multiplying by 3 stretches the data away from zero (mean and SD both triple); subtracting 5 then shifts it without changing the SD.
Top: the data 10, 12, 14, 16 have mean 13 and standard deviation 2.24. Adding the value 13 keeps the mean at 13 but the standard deviation falls to 2, because the new value adds nothing to the sum of squares. Bottom: the data 3, 5, 8, 12, 20 have median 8. Adding 2 lowers the median to 6.5, adding 8 leaves it at 8, and adding 30 raises it to 10.
Adding a value equal to the mean leaves the mean unchanged but lowers the SD; the median can move only in the direction of the new value, or stay.

Combined data sets (6.4)

Quantity Formula
Total of a group n × mean
Σx² of a group n × (σ² + mean²)
Combined mean (n₁x̄₁ + n₂x̄₂)/(n₁ + n₂)
Combined variance (Σx² of both)/(n₁ + n₂) − (combined mean)²
Combined σ square root of the combined variance

Method in steps

  1. Find each group’s total and Σx².
  2. Add the totals and the Σx² values, and add the group sizes.
  3. Divide to get the combined mean.
  4. Find the combined variance, then square root it.

Worked reminder. Group 1: n = 10, mean 14, σ = 2. Group 2: n = 15, mean 20, σ = 3.

Combined mean = (140 + 300)/25 = 17.6
Σx² group 1 = 10 × (4 + 196) = 2 000
Σx² group 2 = 15 × (9 + 400) = 6 135
Variance = 8 135/25 − 17.6² = 325.4 − 309.76 = 15.64
σ = 3.95 (3 s.f.)

Missing mean. If the combined mean and one group are known, find the missing total by subtraction, then divide by the missing group size.

Top: a balance beam with group A (20 values, mean 62) and group B (30 values, mean 70). The pivot is at the combined mean 66.8, which is 4.8 from A and 3.2 from B, and 20 times 4.8 equals 30 times 3.2, which is 96. Bottom: a bar for the combined variance 62.56, made of 47.2 for spread inside the groups plus 15.36 from the gap between the group means. The combined standard deviation is the square root, 7.91.
The combined mean balances the two groups by size, and the combined variance is the groups’ own spread plus an extra amount from the gap between their means.
One bar shows the total of all 30 values, 30 times 51 equals 1530. Group P takes 12 times 45 equals 540. What is left for group Q is 1530 minus 540 equals 990, and dividing by Q’s 18 values gives a mean of 55.
Totals add up even when means do not: subtract the known group’s total from the overall total, then divide by that group’s size.

Standardising and scaling (6.5)

Task Rule
Standardise (z-score) z = (x − mean)/σ
Standardised data mean 0, σ = 1
Scale to new mean M and new σ = S new value = M + S × z
Reverse a scaling z = (new − M)/S, then x = mean + σ × z

Worked reminder. A mark of 70 from a test with mean 58 and σ = 8 has z = 12/8 = 1.5. Scaled to mean 50 and σ = 10, it becomes 50 + 10 × 1.5 = 65.

Why z-scores compare. A z-score of 2 means “two standard deviations above the mean” in any data set. A mark is better relative to its group if its z-score is higher.

Top: Amir scored 72 in maths (mean 60, SD 8) and 68 in English (mean 55, SD 6.5). On a shared z scale his maths mark is at z = 1.5 and his English mark at z = 2.0, so he did relatively better in English. Bottom: a test with mean 54 and SD 12 is rescaled to mean 60 and SD 10 using the same z scale: a mark of 66 has z = 1 and becomes 70, and a rescaled mark of 55 has z = minus 0.5, so the original was 48.
A z-score counts standard deviations from the mean, so marks from different tests share one scale and can be rescaled to any new mean and SD.

Comparing distributions (6.6)

Question wording Use Larger or smaller?
“Larger values generally” mean or median larger
“More consistent” standard deviation or IQR smaller

Always give one comparison for centre and one for spread, with the figures and the context. Pair mean with standard deviation, and median with IQR.

Two bars on a scale of grams show mean plus and minus one standard deviation. Machine A has mean 502 g and SD 1.8 g, a narrow bar from 500.2 to 503.8. Machine B has mean 498 g and SD 4.6 g, a wider bar from 493.4 to 502.6. Machine A fills more rice on average and is more consistent.
Make two comparisons in context: the larger mean says which machine fills more on average, the smaller SD says which is more consistent.

Extra worked reminders

Coding from sums. Often you are given the sums for coded values y = x − 80 rather than the raw data. For 25 values, Σy = 50 and Σy² = 300.

Mean of y = 50/25 = 2
Variance of y = 300/25 − 2² = 12 − 4 = 8
σ of y = √8 = 2.83 (3 s.f.)
Mean of x = 80 + 2 = 82
σ of x = 2.83 (unchanged by subtracting 80)

Missing group mean. Group R has 16 values with mean 30. Group S has 24 values. All 40 values have mean 36.

Total of all = 40 × 36 = 1 440
Total of R = 16 × 30 = 480
Total of S = 960, so mean of S = 960/24 = 40

Comparing with z-scores. Priya jumps 5.10 m in a group with mean 4.80 m and σ = 0.20 m. She also runs a time with a z-score of −1.4 on a race where lower is better. A positive jump z-score of (5.10 − 4.80)/0.20 = 1.5 is an above-average result. Take care with direction: for times, a negative z-score is the better result.

Model comparison sentence. “Club X has larger values generally, because its mean (24.5) is higher than Club Y’s (21.0). Club X is also more consistent, because its standard deviation (2.1) is smaller than Club Y’s (5.6).”

Exam wording checklist

  • “Describe the effect” asks for a measure and a direction or factor.
  • “Show that” needs every step written down, including the formula.
  • “Without calculating” means use the coding rules, not the data.
  • “Give a reason” needs a comparison, such as “the new value is above the mean”.
  • “Compare” needs figures from both distributions, not just one.

Must-know distinctions

  • Centre measures move with b. Spread measures do not.
  • A standard deviation is never negative, even when a is negative.
  • The combined mean needs group sizes. The combined standard deviation needs Σx² as well.
  • Standardising is a special case of coding.
  • “Larger” and “more consistent” are different judgements and need different measures.

Quick self-test

  1. A data set has mean 30 and σ = 4. Every value is increased by 12. Find the new mean and σ.
  2. The same data set is multiplied by 2.5. Find the new mean and σ.
  3. A set has median 55 and IQR 14. Find the median and IQR after y = 3x − 5.
  4. For the same set, find the median and IQR after y = 100 − x.
  5. A data set of 5 values has mean 12. A sixth value of 12 is added. What happens to the mean and to σ?
  6. A set of 8 values has median 20. A value of 35 is added. What can you say about the median?
  7. A group of 20 values has mean 5 and a group of 30 values has mean 10. Find the combined mean.
  8. A group of 25 values has mean 40. Together with a second group of 15 values the combined mean is 46. Find the mean of the second group.
  9. A value of 70 is from a distribution with mean 58 and σ = 8. Find its z-score.
  10. A z-score of −0.5 is scaled to mean 50 and σ = 10. Find the scaled value.
  11. Set A has mean 72 and σ = 3. Set B has mean 65 and σ = 9. Compare them.

Answers

  1. Mean 42, σ 4.
  2. Mean 30 × 2.5 = 75, σ 4 × 2.5 = 10.
  3. Median 3 × 55 − 5 = 160, IQR 3 × 14 = 42.
  4. Median 100 − 55 = 45, IQR 14.
  5. The mean stays at 12 and σ decreases (the new value is at the mean).
  6. 35 is above the median, so the median increases or stays the same. It cannot decrease.
  7. (20 × 5 + 30 × 10)/50 = 400/50 = 8.
  8. Total 46 × 40 = 1 840. First group total 25 × 40 = 1 000. Second total 840. Mean 840/15 = 56.
  9. z = (70 − 58)/8 = 1.5.
  10. 50 + 10 × (−0.5) = 45.
  11. Set A has larger values generally (mean 72 compared with 65) and is more consistent (σ = 3 compared with 9).

Where marks are usually lost

  • Adding the constant to the standard deviation or IQR.
  • Using a negative multiplier as the spread multiplier instead of its positive size.
  • Averaging two group means without weighting by group size.
  • Averaging two standard deviations instead of working with Σx².
  • Forgetting to take the square root at the end of a variance calculation.
  • Describing a comparison with only one measure, or with no figures.
  • Saying a measure “must change” when adding a value, when it may stay the same.
  • Comparing raw marks from different distributions instead of z-scores.

Frequently asked questions

What does a z-score of 2 mean? A z-score of 2 means the value is two standard deviations above the mean, in any data set. A higher z-score means a better relative position in its group.

What happens to the quartiles with a negative multiplier? The order of the data reverses, so the old upper quartile becomes the new lower quartile. The IQR is multiplied by the positive size of the multiplier.

What does “without calculating” mean in a coding question? It means use the coding rules to find the new measures, not the original data.

What is the difference between “larger” and “more consistent”? They are different judgements. “Larger values generally” uses the mean or median, while “more consistent” uses the standard deviation or IQR.

Official syllabus

Cambridge IGCSE Statistics 0479 syllabus for examination in 2027, version 1, Cambridge University Press & Assessment (Cambridge International Education), Topic 6, outcomes 6.1 to 6.6.

Related resources

Get free revision emails (optional)

Occasional emails with practice questions, worked explanations and links to free resources for the qualification and subjects you choose. No spam, and you can unsubscribe from any email. The free tools on this site never need an email.