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 .
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
Ready to lock in Coding? Pick a mode and earn XP & Dobloons.