girgit.org

Statistics

What changes the spread? Shifting, scaling and fixing errors

The big ideaAdding the same number to every observation moves the mean but leaves the spread alone; multiplying every observation by \( k \) multiplies the mean and standard deviation by \( k \) (in size) and the variance by \( k^2 \). With \( \sum x_i \) and \( \sum x_i^2 \) you can also undo copying mistakes.

In simple words

If everyone in a line takes one step forward, the line moves but the gaps between people stay the same. If everyone doubles their distance from the front, the gaps double too. Spread only cares about gaps. And if one number in a list was written wrong, you can take it out of the totals and put the right one in, without starting again.

Guess first: grace marks

A class's test marks have mean 52 and standard deviation 8. The teacher gives every student 5 grace marks. Guess: what are the new mean and standard deviation?

See what happens
The mean rises to 57, but the standard deviation stays 8. Every mark moves up by 5, and so does the mean, so each deviation \( x_i - \bar{x} \) is exactly what it was. The marks are no more and no less spread out. Many students guess the standard deviation goes up too: it doesn't.

Adding a constant

Let \( y_i = x_i + a \) for every \( i \) (\( a \) positive or negative). Then

\[ \bar{y} = \frac{1}{n}\sum (x_i + a) = \bar{x} + a \]

\[ y_i - \bar{y} = (x_i + a) - (\bar{x} + a) = x_i - \bar{x} \]

The deviations are unchanged, so the variance and standard deviation are unchanged. Subtracting a constant works the same way.

Multiplying by a constant

Let \( y_i = k x_i \). Then \( \bar{y} = k\bar{x} \) and \( y_i - \bar{y} = k(x_i - \bar{x}) \), so

\[ \sigma_y^2 = \frac{1}{n}\sum k^2 (x_i - \bar{x})^2 = k^2 \sigma_x^2, \qquad \sigma_y = |k|\,\sigma_x \]

For example, if 20 observations have variance 5 and each is doubled, the new variance is \( 2^2 \times 5 = 20 \). Putting both rules together, for \( y_i = k x_i + c \):

Remember

  • \( \bar{y} = k\bar{x} + c \)
  • \( \sigma_y^2 = k^2 \sigma_x^2 \) and \( \sigma_y = |k|\,\sigma_x \): the \( c \) never matters.

Worked example 1: Celsius to Fahrenheit

May noon temperatures in a town have mean 30 °C and standard deviation 2 °C. Find them in °F, using \( F = 1.8C + 32 \).

Mean: \( 1.8 \times 30 + 32 = 86 \) °F. Standard deviation: \( 1.8 \times 2 = 3.6 \) °F. The 32 shifts every value and plays no part in the spread.

Try it: write your own rule for the new marks and watch every mark travel.

Finding missing observations

Two facts unlock these questions: \( \sum x_i = n\bar{x} \), and from \( \sigma^2 = \frac{1}{n}\sum x_i^2 - \bar{x}^2 \), \( \sum x_i^2 = n(\sigma^2 + \bar{x}^2) \).

Worked example 2

Five observations have mean 6 and variance 9.2. Three of them are 2, 5 and 9. Find the other two.

  1. Call them \( x \) and \( y \). Sum: \( 2 + 5 + 9 + x + y = 5 \times 6 = 30 \), so \( x + y = 14 \).
  2. Sum of squares: \( 5(9.2 + 36) = 226 \). So \( 4 + 25 + 81 + x^2 + y^2 = 226 \), giving \( x^2 + y^2 = 116 \).
  3. \( (x + y)^2 = 196 = x^2 + y^2 + 2xy \), so \( 2xy = 80 \).
  4. \( (x - y)^2 = x^2 + y^2 - 2xy = 36 \), so \( x - y = \pm 6 \).
  5. With \( x + y = 14 \): the two observations are 10 and 4.

Correcting a wrong observation

Worked example 3

25 observations were found to have mean 40 and standard deviation 6. Later it turned out that one value, 52, had been copied as 27. Find the correct mean and standard deviation.

  1. Wrong \( \sum x_i = 25 \times 40 = 1000 \). Correct sum \( = 1000 - 27 + 52 = 1025 \), so the correct mean is \( \frac{1025}{25} = 41 \).
  2. Wrong \( \sum x_i^2 = 25(6^2 + 40^2) = 25 \times 1636 = 40900 \).
  3. Correct \( \sum x_i^2 = 40900 - 27^2 + 52^2 = 40900 - 729 + 2704 = 42875 \).
  4. Correct variance \( = \frac{42875}{25} - 41^2 = 1715 - 1681 = 34 \), so \( \sigma = \sqrt{34} \approx 5.83 \).

Try it: what if the true value had been something else? Every possible correction is on one curve.

JEE note: these "missing value" and "wrong value" problems, and the shift and scale rules, are among the most common Statistics questions in JEE Main. Always work through \( \sum x_i \) and \( \sum x_i^2 \); never try to fix the standard deviation directly.

Don't mix these up

  • Multiplying by \( k \) multiplies the variance by \( k^2 \) but the standard deviation by \( |k| \).
  • Multiplying by \( -1 \) flips the data but does not change the standard deviation: it is \( |k| \), never negative.
  • When correcting data, fix the mean first; the new variance uses the new mean.

Try it. A set of marks has mean 12 and standard deviation 3. Every mark is scaled by 4 and then 7 is taken away. What are the new mean and standard deviation?

Answer
Mean: \( 4 \times 12 - 7 = 41 \). Standard deviation: \( |4| \times 3 = 12 \). The \( -7 \) moves the data but does not change their spread.

Words to know

Shift (change of origin)
Adding or subtracting the same number from every value; spread unchanged.
Scale (change of scale)
Multiplying every value by \( k \); standard deviation times \( |k| \).
\( \sum x_i = n\bar{x} \)
The total of the observations, recovered from the mean.
\( \sum x_i^2 = n(\sigma^2 + \bar{x}^2) \)
The total of the squares, recovered from the mean and variance.

The variance of some data is 4. Each value is multiplied by 3. What is the new variance?

  1. 12
  2. 36
  3. 6

If the standard deviation of \( x \) is 2, what is the standard deviation of \( 5 - 3x \)?

  1. −6
  2. 6
  3. 1
  4. 18