Maths4UBETA

Maths4U · Learning together

Coded data, scale changes and unknown observations

← Mean, median, mode and choosing a centreFrequency tables, grouped estimates and median interpolation →

Notes

Objective

Undo a coding in the correct direction and use separate moment equations to recover missing information.

Before you start

Order data, read a frequency table and retain exact fractions. Mixed-topic written tasks also use descriptive variance and SD, introduced in the first lesson.

Key ideas

Translation changes the mean, not the spread

If u=x−au=x-a, then

∑x=na+∑u,xˉ=a+uˉ,σx=σu.\begin{aligned}\sum x&=na+\sum u,\\\bar{x}&=a+\bar{u},\\\sigma_x&=\sigma_u.\end{aligned}

A coded sum is not the original sum unless the offset is zero.

Scaling affects SD by an absolute multiplier

If u=(x−a)/bu=(x-a)/b, write x=a+bux=a+bu before decoding:

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

A negative multiplier reverses order but does not produce a negative SD.

Two origins can reveal a missing count

∑(x−a)−∑(x−b)=n(b−a).\sum(x-a)-\sum(x-b)=n(b-a).

Each observation contributes the same difference. Check that the recovered count is a positive integer before using it.

A sum and a square-sum give different information

Two unknown observations usually need two independent conditions. Recover both their sum and the sum of their squares, solve the resulting quadratic and restore the requested ordering. Do not confuse ∑x2\sum x^2 with (∑x)2(\sum x)^2.

Method

  1. Identify the observation count, measurement units and requested measure.
  2. Keep exact totals and distinguish raw values from grouped estimates.
  3. Restore every original count, coding or value condition.
  4. State the complete result and justify a contextual choice separately.

Common mistakes

  • Undo the coding rather than applying it again.
  • Use the absolute scale factor for SD.
  • Two unknown observations need more than a sum alone.
  • Check integer counts, ordering and original moment conditions.

Worked examples

Recover an original mean and SD from a translation

For u=x−40u=x-40, n=8n=8, ∑u=12\sum u=12, ∑u2=50\sum u^2=50. Find the original mean and SD.

Follow the solutionxˉ=40+128=41.5.\bar{x}=40+\frac{12}{8}=41.5.σx=508−(128)2=2.\sigma_x=\sqrt{\frac{50}{8}-\left(\frac{12}{8}\right)^2}=2.

The translation adds 40 to the mean and leaves the SD unchanged.

Decode the scale as well as the origin

For u=(x−20)/3u=(x-20)/3, n=5n=5, ∑u=10\sum u=10, ∑u2=30\sum u^2=30. Find the original mean and SD.

Follow the solutionuˉ=2,σu2=6−4=2.\bar{u}=2,\quad\sigma_u^2=6-4=2.xˉ=20+3(2)=26,σx=32.\begin{aligned}\bar{x}&=20+3(2)=26,\\\sigma_x&=3\sqrt2.\end{aligned}

Two coded sums determine the sample size

Given ∑(x−10)=30\sum(x-10)=30 and ∑(x−15)=−10\sum(x-15)=-10, find n and the mean.

Follow the solution30−(−10)=5n⇒n=8.30-(-10)=5n\quad\Rightarrow\quad n=8.∑x=30+10(8)=110,xˉ=554.\begin{aligned}\sum x&=30+10(8)=110,\\\bar{x}&=\frac{55}{4}.\end{aligned}

The difference of the two totals counts the same offset once per observation.

Recover two missing observations

Six observations have mean 6 and square-sum 256. Four values are 2, 4, 7, 9. Find the remaining a and b with a<ba<b.

Follow the solutiona+b=36−22=14,a2+b2=256−150=106.\begin{aligned}a+b&=36-22=14,\\a^2+b^2&=256-150=106.\end{aligned}a2+(14−a)2=106⇒a=5 or 9.\begin{gathered}a^2+(14-a)^2=106\\\Rightarrow\quad a=5\text{ or }9.\end{gathered}

With the specified order, (a,b)=(5,9)(a,b)=(5,9). Both moment conditions are satisfied.

Practise this topic