Maths4UBETA

Maths4U · Learning together

Coded totals, origins and scale changes

← Range, quartiles and raw-data varianceReverse moments, feasible summaries and all valid branches →

Notes

Objective

Recover original spread from coding, and handle translations, negative scales and a second reference correctly.

Before you start

Use exact totals, order raw observations, and distinguish a frequency from a measurement. Review Measures of central tendency if you need to recover a mean or decode an origin.

Key ideas

A translation leaves spread unchanged

For u=x−cu=x-c,

xˉ=c+∑un.\bar{x}=c+\frac{\sum u}{n}.σx2=∑u2n−(∑un)2.\sigma_x^2=\frac{\sum u^2}{n}-\left(\frac{\sum u}{n}\right)^2.

Squaring each coded value before adding usually avoids large raw totals. Do not assume the coded mean is zero.

Decode a scale in the correct direction

If u=(x−a)/bu=(x-a)/b, write x=a+bux=a+bu, with b≠0b\ne0.

xˉ=a+buˉ,σx2=b2σu2,σx=∣b∣σu.\begin{aligned}\bar{x}&=a+b\bar{u},\\\sigma_x^2&=b^2\sigma_u^2,\\\sigma_x&=|b|\sigma_u.\end{aligned}

A negative multiplier reverses order, but SD remains non-negative. Translations do not change range or IQR; scaling multiplies each by the absolute multiplier.

Moving from one origin to another

Write Dc=∑(x−c)D_c=\sum(x-c), Ec=∑(x−c)2E_c=\sum(x-c)^2, and h=d−ch=d-c. Expanding each square gives

Dd=Dc−nh,Ed=Ec−2hDc+nh2.\begin{aligned}D_d&=D_c-nh,\\E_d&=E_c-2hD_c+nh^2.\end{aligned}

The variance calculated from either pair must agree.

Recover the original totals when needed

∑x=na+b∑u,∑x2=na2+2ab∑u+b2∑u2.\begin{aligned}\sum x&=na+b\sum u,\\\sum x^2&=na^2+2ab\sum u+b^2\sum u^2.\end{aligned}

Keep the cross-term: a square of a shifted variable is not just the original square plus a constant.

Finding an unknown calibration

For y=px+q with positive original SD, the new SD fixes |p|. Test both signs of p and use the mean to recover q:

∣p∣=σy/σx,q=yˉ−pxˉ.\begin{aligned}|p|&=\sigma_y/\sigma_x,\\q&=\bar{y}-p\bar{x}.\end{aligned}

If the largest original reading becomes the smallest transformed reading, select p<0. If the original SD is zero, all readings coincide and this ratio cannot be used.

Method

  1. Identify whether the observations are raw, grouped or coded.
  2. Recover the count, first total and square-total on one consistent scale.
  3. Find the requested spread without premature rounding.
  4. Restore all original conditions and give every valid result.

Common mistakes

  • The coded sum need not vanish.
  • A negative scale does not give negative SD.
  • Keep the cross-term when moving origins.
  • Decode both original totals before mixing scales.

Worked examples

A convenient origin keeps the arithmetic small

For u=x−100u=x-100, n=6, ∑u=9\sum u=9, ∑u2=39\sum u^2=39. Find the original mean and SD.

Follow the solutionxˉ=100+96=2032,σx2=396−(96)2=174,σx=172.\begin{aligned}\bar{x}&=100+\frac96=\frac{203}{2},\\\sigma_x^2&=\frac{39}{6}-\left(\frac96\right)^2=\frac{17}{4},\\\sigma_x&=\frac{\sqrt{17}}2.\end{aligned}

Undo a negative scale

For u=(x−30)/(−4)u=(x-30)/(-4), n=8, ∑u=12\sum u=12, ∑u2=30\sum u^2=30. Find the original mean and variance.

Follow the solutionuˉ=32,σu2=308−94=32,xˉ=30−4(32)=24,σx2=16(32)=24.\begin{aligned}\bar{u}&=\frac32,\\\sigma_u^2&=\frac{30}{8}-\frac94=\frac32,\\\bar{x}&=30-4\left(\frac32\right)=24,\\\sigma_x^2&=16\left(\frac32\right)=24.\end{aligned}

The SD is 262\sqrt6, not its negative.

Use a second origin without the raw data

For five readings, ∑(x−20)=−10\sum(x-20)=-10, ∑(x−20)2=46\sum(x-20)^2=46. Find both totals about 25.

Follow the solution∑(x−25)=−10−25=−35.\sum(x-25)=-10-25=-35.∑(x−25)2=46+100+125=271.\begin{aligned}\sum(x-25)^2&=46+100+125\\&=271.\end{aligned}

Both origins give variance 26/526/5. The changed square-total alone does not indicate changed spread.

Decode a square-total including its cross-term

For u=(x−10)/2u=(x-10)/2, n=4, ∑u=6\sum u=6, ∑u2=14\sum u^2=14. Find ∑x\sum x, ∑x2\sum x^2 and the variance.

Follow the solution∑x=4(10)+2(6)=52,∑x2=4(100)+4(10)(6)+4(14)=696,σx2=696/4−132=5.\begin{aligned}\sum x&=4(10)+2(6)=52,\\\sum x^2&=4(100)+4(10)(6)\\&\quad+4(14)\\&=696,\\\sigma_x^2&=696/4-13^2=5.\end{aligned}

Practise this topic