Skip to content

Mathematics · Ch 13 — Statistics

Shortcut (Step-Deviation) Method for Grouped Data

7

Shortcut (Step-Deviation) Method for Grouped Data

When a continuous frequency distribution has midpoints that are inconveniently large or do not share a common factor, computing ∑fixi\sum f_ix_i and ∑fixi2\sum f_ix_i^2 directly by the methods of the previous two sections can involve unwieldy arithmetic. The step-deviation method avoids this by first shifting and scaling every midpoint into a small, simple integer before doing any further arithmetic — the underlying variance and standard deviation come out identical, but the numbers being multiplied and summed along the way are far smaller.

Change of origin and scale. Choose any convenient midpoint AA (the assumed mean, usually the midpoint of a middle class) and let hh be the common class width. Define the step-deviation

ui=xi−Ahu_i = \dfrac{x_i-A}{h}

for every class. Since every xi=A+h uix_i = A+h\,u_i is obtained from uiu_i by a change of origin (shifting by AA) followed by a change of scale (stretching by hh), the mean and variance of the xix_i's can be recovered from the mean and variance of the much simpler uiu_i's.

Effect on the mean. xˉ=A+h⋅uˉ\bar x = A + h\cdot\bar u, where uˉ=1N∑fiui\bar u = \dfrac1N\sum f_iu_i — that is,

xˉ=A+h⋅∑fiuiN.\boxed{\bar x = A + h\cdot\dfrac{\sum f_iu_i}{N}}.

(A shift by a constant AA shifts the mean by exactly AA; a scaling by hh scales the mean by exactly hh.)

Effect on the variance. A shift of origin (subtracting the constant AA) does not change the variance at all, since variance measures spread around the mean, and shifting every value (including the mean itself) by the same constant leaves every deviation xi−xˉx_i-\bar x completely unchanged. A scaling by hh, however, scales every deviation by hh, and therefore scales the variance (built from squared deviations) by h2h^2:

σx2=h2 σu2=h2[∑fiui2N−(∑fiuiN)2]\boxed{\sigma_x^2 = h^2\,\sigma_u^2 = h^2\left[\dfrac{\sum f_iu_i^2}{N}-\left(\dfrac{\sum f_iu_i}{N}\right)^2\right]}

using the shortcut identity of the previous section applied to the uiu_i values. The standard deviation is then σx=h⋅σu=h∑fiui2N−(∑fiuiN)2\sigma_x = h\cdot\sigma_u = h\sqrt{\dfrac{\sum f_iu_i^2}{N}-\left(\dfrac{\sum f_iu_i}{N}\right)^2} — note that, unlike the variance, the standard deviation scales by hh itself, not h2h^2, since it is a square root.

Steps to compute, using the step-deviation method.

  1. Choose an assumed mean AA (a midpoint near the centre of the data) and note the common class width hh.
  2. Compute ui=xi−Ahu_i=\dfrac{x_i-A}{h} for every class — these will be small integers such as −2,−1,0,1,2,…-2,-1,0,1,2,\ldots
  3. Form the columns fiuif_iu_i and fiui2f_iu_i^2, and sum each.
  4. Recover xˉ=A+h⋅∑fiuiN\bar x = A+h\cdot\dfrac{\sum f_iu_i}{N} and σ2=h2[∑fiui2N−(∑fiuiN)2]\sigma^2 = h^2\left[\dfrac{\sum f_iu_i^2}{N}-\left(\dfrac{\sum f_iu_i}{N}\right)^2\right]. …