Coding
Coding simplifies awkward numbers by transforming the data with . You then find the mean and standard deviation of the easy coded values and reverse the coding to recover the originals.
What you'll be able to do
- Apply a coding transformation
- Find the mean of the original data from the coded mean
- Find the standard deviation from the coded data
- Understand which statistics shift vs scale
What coding does
Coding replaces each value with — subtracting then dividing by to get smaller, friendlier numbers to work with.
Reversing for the mean
The mean codes exactly like a data value: find , then reverse the transformation to get .
Example 1Coding gives . Find .
Reversing for standard deviation
Standard deviation is affected by the only, not the shift — subtracting doesn’t change spread, but dividing by does. So multiply the coded standard deviation by .
Tip — Adding/subtracting shifts data (mean changes, spread doesn’t); multiplying/dividing scales both.
Formula recap
Common mistakes to avoid
Key takeaways
- Coding: y = (x − a)/b to simplify numbers.
- Mean reverses fully: x̄ = b·ȳ + a.
- Standard deviation reverses by scale only: σₓ = b·σᵧ.
Test yourself
Answer a few questions, then review anything you missed.
Keep practising
Start with the quiz above to check the key ideas. You can also choose another topic from the practice library.
Related lessons
All 5 lessons- Same chapterMeasures of Central TendencyUnderstanding mean, median, and mode as measures of central tendency.
- Same chapterOther Measures of LocationUnderstanding quartiles, percentiles, and other location measures.
- Same chapterMeasures of SpreadUnderstanding range, interquartile range, and other measures of spread.
Put the methods into practice: see how A-Level maths duels work. An account is required to play; the overview and sample are public.