Data Coding

Coding transforms data with $y = \frac{x - a}{b}$ to make calculations simpler. Means follow the coding exactly; standard deviations ignore the shift $a$ but are scaled by $b$.

Key points

Worked example

Question. $y = \frac{x - 100}{5}$; $\bar{y} = 2.4$, $\sigma_y = 1.2$. Find $\bar{x}$ and $\sigma_x$.

  1. $\bar{x} = 5(2.4) + 100 = 112$
  2. $\sigma_x = 5 \times 1.2 = 6$

Answer. $\bar{x} = 112$, $\sigma_x = 6$

Common mistakes

Related topics