girgit.org

Statistics

The shortcut method for variance

The big ideaReplace each \( x_i \) by the small step deviation \( y_i = \frac{x_i - A}{h} \); then \( \bar{x} = A + h\bar{y} \) and \( \sigma_x = h\,\sigma_y \), so you work with tiny numbers and convert back once at the end.

In simple words

Big numbers make for slow sums. So pick a number near the middle and call it zero. Count every other number as "how many jumps away" from it. Do all the work with these small jump counts. At the end, turn jumps back into the real size. Moving the zero does not change how spread out things are; only the jump size does.

Why a shortcut?

Squaring big numbers, such as heights like 165 cm or salaries like ₹45,000, quickly gives huge totals, whether they are single values or class mid-points. The shortcut method (or step-deviation method) shrinks them first.

The two rules

Choose an assumed mean \( A \) and a scale \( h \) (usually the class width), and define the step deviations

\[ y_i = \frac{x_i - A}{h} \quad\text{so that}\quad x_i = A + h y_i \]

Mean. Put \( x_i = A + h y_i \) into \( \bar{x} = \frac{1}{N}\sum f_i x_i \):

\[ \bar{x} = \frac{1}{N}\sum f_i (A + h y_i) = \frac{A\sum f_i}{N} + h \cdot \frac{1}{N}\sum f_i y_i = A + h\bar{y} \]

because \( \sum f_i = N \).

Variance. Subtract: \( x_i - \bar{x} = (A + h y_i) - (A + h\bar{y}) = h(y_i - \bar{y}) \). The \( A \) has vanished. So

\[ \sigma_x^2 = \frac{1}{N}\sum f_i\, h^2 (y_i - \bar{y})^2 = h^2 \sigma_y^2 \]

\[ \sigma_x = h\,\sigma_y \]

Using the "mean of squares minus square of mean" form for \( \sigma_y \):

\[ \sigma_x^2 = \frac{h^2}{N^2}\left[ N\sum f_i y_i^2 - \left(\sum f_i y_i\right)^2 \right] \]

\[ \sigma_x = \frac{h}{N}\sqrt{N\sum f_i y_i^2 - \left(\sum f_i y_i\right)^2} \]

Here \( \sigma_x \) is the standard deviation of the original data and \( \sigma_y \) that of the step deviations.

Worked example: the short way

Classes 10–20, 20–30, 30–40, 40–50, 50–60 with frequencies 4, 10, 18, 12, 6. Find the mean, variance and standard deviation. Take \( A = 35 \), \( h = 10 \).

Class\( f_i \)\( x_i \)\( y_i = \frac{x_i - 35}{10} \)\( y_i^2 \)\( f_i y_i \)\( f_i y_i^2 \)
10–20415−24−816
20–301025−11−1010
30–4018350000
40–501245111212
50–60655241224
Total50662
  1. Mean: \( \bar{x} = 35 + 10 \times \frac{6}{50} = 35 + 1.2 = 36.2 \).
  2. Variance: \( \sigma^2 = \frac{10^2}{50^2}\left[ 50 \times 62 - 6^2 \right] = \frac{100}{2500} \times (3100 - 36) = \frac{3064}{25} = 122.56 \).
  3. Standard deviation: \( \sigma = \sqrt{122.56} \approx 11.07 \).

The same answer as with \( \sum f_i x_i^2 = 71650 \) on the last page, but the biggest number we squared was 2 instead of 55.

Try it: stretch and slide the step scale. The y's change every time; \( \sigma_x \) never does.

Remember

  • \( y_i = \frac{x_i - A}{h} \), \( \bar{x} = A + h\bar{y} \), \( \sigma_x = h\,\sigma_y \).
  • The assumed mean \( A \) changes the mean but not the spread.
  • Do not forget to multiply by \( h \) (for \( \sigma \)) or \( h^2 \) (for \( \sigma^2 \)) at the end.

Try it. Heights (cm) of 20 plants: \( x_i \): 150, 155, 160, 165, 170 with \( f_i \): 2, 5, 8, 4, 1. Use \( A = 160 \), \( h = 5 \) to find the mean and standard deviation.

Answer
\( y_i \): −2, −1, 0, 1, 2. \( \sum f_i y_i = -4 - 5 + 0 + 4 + 2 = -3 \); \( \sum f_i y_i^2 = 8 + 5 + 0 + 4 + 4 = 21 \). Mean \( = 160 + 5 \times \frac{-3}{20} = 159.25 \) cm. \( \sigma^2 = \frac{25}{400}(20 \times 21 - 9) = \frac{411}{16} \approx 25.69 \), so \( \sigma \approx 5.07 \) cm.

Words to know

Shortcut method
Finding mean and variance from step deviations instead of the raw values.
Assumed mean \( A \)
A central value chosen as the new zero.
Scale \( h \)
The common factor divided out, usually the class width.
\( \sigma_x, \sigma_y \)
Standard deviations of the original values and of the step deviations; \( \sigma_x = h\sigma_y \).

With \( h = 10 \), the step deviations have standard deviation \( \sigma_y = 1.5 \). What is \( \sigma_x \)?

  1. 150
  2. 15
  3. 1.5

Two students use the shortcut on the same data, one with \( A = 60 \) and one with \( A = 65 \) (same \( h \)). What do they find?

  1. The same mean and the same standard deviation
  2. Different means, same standard deviation
  3. The same mean, different standard deviations