Coded data: shift & scale
- Sliding every value by a constant moves the data, but not its spread.
- So .
- Stretching every value by stretches the spread.
- So and .
- Shift = move the ruler's zero. Scale = change the ruler's units.
Shift does nothing; scale squares
So you can find the SD straight from coded totals: , useful when the raw numbers are huge.
Sliding (−b) leaves spread untouched; stretching (×a) scales SD by |a| and variance by a². Shift = move zero; scale = change units.
- Let . Then (the −b does nothing).
- .
- ; .
- If scaled too (): .
Worked example
Scale rule (×a squares the variance)
Brand prices have SD . Imitations cost . Variance of imitation prices?
Worked example
SD from coded totals
Eight values: , . Let : so , and .
Worked example
SD from a coded frequency table
Code . With and : . Because the shift does nothing, :
Worked example
Scale + shift: recover Σx² from coded totals
For over values: . First the mean: and , so .
.
Then .
| Transform | Mean | Variance | SD |
|---|---|---|---|
| unchanged | unchanged | ||
Examiner note
Common mistake
The °F = 1.8 °C + 32 case in full
, so . The shifts every reading equally, so the spread between them is unchanged — only the unit-change stretches it.