← Back to the lesson

Probability & Statistics 1 (9709) · Measures of central tendency · Quick revision

Coded data, scale changes and unknown observations

Reverse the coding, keep the two moments separate, and restore every count, sign and ordering condition.

Write the inverse before calculating

u=x−ab⟹x=a+bu(b≠0).u=\frac{x-a}{b}\quad\Longrightarrow\quad x=a+bu\qquad(b\ne0).xˉ=a+buˉ,∑x=na+b∑u.\bar{x}=a+b\bar{u},\qquad\sum x=na+b\sum u.

Apply one rule to every observation. The chosen origin aa need not equal the mean. An offset changes the total once for each observation.

Location and spread transform differently

σu2=∑u2n−uˉ 2,σx2=b2σu2,σx=∣b∣σu.\sigma_u^2=\frac{\sum u^2}{n}-\bar{u}^{\,2},\qquad\sigma_x^2=b^2\sigma_u^2,\qquad\sigma_x=|b|\sigma_u.

Translation does not change spread. Negative scaling reverses order, but standard deviation stays non-negative. Use descriptive divisor nn, retain exact values, and keep coded and original summaries separate.

Two origins can reveal the count

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

The summaries must describe the same observations. Use different origins, then check that the recovered count is a positive integer and satisfies both original equations. Identical origins provide no new count equation.

Use two moments to recover missing values

∑x2=na2+2ab∑u+b2∑u2.\sum x^2=na^2+2ab\sum u+b^2\sum u^2.

Subtract known observations from both moments. If missing values have sum SS and square-sum QQ, then

pq=S2−Q2,t2−St+pq=0.pq=\frac{S^2-Q}{2},\qquad t^2-St+pq=0.

Keep every permitted branch and apply any ordering. A sum alone is usually insufficient. Negative variance is impossible; non-negative variance alone does not verify every stated restriction.