- 1. Same average, different players: why the mean is not enough
- 2. Measures of dispersion and the range
- 3. Mean deviation: the average distance from the centre
- 4. Mean deviation for a frequency table
- 5. Mean deviation for class intervals
- 6. Mean deviation about the median, and its limitations
- 7. Why square? Variance and standard deviation
- 8. Standard deviation of frequency distributions
- 9. The shortcut method for variance
- 10. What changes the spread? Shifting, scaling and fixing errors
- 11. Which series is more variable? The coefficient of variation
- Review
8 of 11·NCERT §13.5.2 · §13.5.3·6 min
Standard deviation of frequency distributions
The big ideaFor a frequency table, weight each squared deviation by its frequency and divide by \( N \); and since \( \sigma^2 \) also equals "the mean of the squares minus the square of the mean", you can skip the deviations altogether.
In simple words
When a number shows up many times, its "times itself" distance also counts many times. For groups, we again let the middle of each group stand for everyone in it. There is also a clever second way: square the numbers themselves, find their average, and take away the average squared. You get the same answer with fewer awkward decimals.
Discrete frequency distribution
If the values \( x_1, \ldots, x_n \) occur with frequencies \( f_1, \ldots, f_n \) and \( N = \sum f_i \), then
\[ \sigma^2 = \frac{1}{N}\sum_{i=1}^{n} f_i (x_i - \bar{x})^2 \]
\[ \sigma = \sqrt{\frac{1}{N}\sum_{i=1}^{n} f_i (x_i - \bar{x})^2} \]
Worked example 1: a discrete table
Find the variance and standard deviation.
| \( x_i \) | \( f_i \) | \( f_i x_i \) | \( x_i - \bar{x} \) | \( (x_i - \bar{x})^2 \) | \( f_i (x_i - \bar{x})^2 \) |
|---|---|---|---|---|---|
| 2 | 3 | 6 | −4 | 16 | 48 |
| 4 | 5 | 20 | −2 | 4 | 20 |
| 6 | 9 | 54 | 0 | 0 | 0 |
| 8 | 5 | 40 | 2 | 4 | 20 |
| 10 | 3 | 30 | 4 | 16 | 48 |
| Total | 25 | 150 | 136 |
\( \bar{x} = \frac{150}{25} = 6 \), \( \sigma^2 = \frac{136}{25} = 5.44 \), \( \sigma = \sqrt{5.44} \approx 2.33 \).
Continuous frequency distribution
Replace each class by its mid-point \( x_i \), and the class table becomes a discrete one. The same formula then applies.
Worked example 2: travel time again
The travel-time data from the mean deviation pages: mean 27 minutes.
| Minutes | \( f_i \) | \( x_i \) | \( (x_i - \bar{x})^2 \) | \( f_i (x_i - \bar{x})^2 \) |
|---|---|---|---|---|
| 0–10 | 4 | 5 | 484 | 1936 |
| 10–20 | 11 | 15 | 144 | 1584 |
| 20–30 | 15 | 25 | 4 | 60 |
| 30–40 | 13 | 35 | 64 | 832 |
| 40–50 | 5 | 45 | 324 | 1620 |
| 50–60 | 2 | 55 | 784 | 1568 |
| Total | 50 | 7600 |
\( \sigma^2 = \frac{7600}{50} = 152 \) and \( \sigma = \sqrt{152} \approx 12.33 \) minutes. (The mean deviation was 10 minutes.)
Another formula: no deviations needed
When \( \bar{x} \) is a messy decimal like 36.2, every \( (x_i - \bar{x})^2 \) is messy too. Expand the square to avoid them:
\[ \begin{aligned} \sigma^2 &= \frac{1}{N}\sum f_i (x_i^2 - 2\bar{x}x_i + \bar{x}^2) \\ &= \frac{1}{N}\sum f_i x_i^2 - 2\bar{x}\cdot\frac{1}{N}\sum f_i x_i + \bar{x}^2 \cdot \frac{1}{N}\sum f_i \\ &= \frac{1}{N}\sum f_i x_i^2 - 2\bar{x}^2 + \bar{x}^2 = \frac{1}{N}\sum f_i x_i^2 - \bar{x}^2 \end{aligned} \]
using \( \frac{1}{N}\sum f_i x_i = \bar{x} \) and \( \sum f_i = N \). In words: variance = mean of the squares − square of the mean. Writing \( \bar{x} = \frac{1}{N}\sum f_i x_i \) and taking out \( \frac{1}{N^2} \):
\[ \sigma^2 = \frac{1}{N^2}\left[ N\sum f_i x_i^2 - \left(\sum f_i x_i\right)^2 \right] \]
\[ \sigma = \frac{1}{N}\sqrt{N\sum f_i x_i^2 - \left(\sum f_i x_i\right)^2} \]
For ungrouped data, put every \( f_i = 1 \) and \( N = n \): \( \sigma^2 = \frac{1}{n}\sum x_i^2 - \bar{x}^2 \).
Try it: lift every value onto the curve \( y = x^2 \) and the formula becomes a picture. Use the table from Worked example 1.
Worked example 3: using the new formula
Classes 10–20, 20–30, 30–40, 40–50, 50–60 with frequencies 4, 10, 18, 12, 6. Find the standard deviation.
| Class | \( f_i \) | \( x_i \) | \( f_i x_i \) | \( x_i^2 \) | \( f_i x_i^2 \) |
|---|---|---|---|---|---|
| 10–20 | 4 | 15 | 60 | 225 | 900 |
| 20–30 | 10 | 25 | 250 | 625 | 6250 |
| 30–40 | 18 | 35 | 630 | 1225 | 22050 |
| 40–50 | 12 | 45 | 540 | 2025 | 24300 |
| 50–60 | 6 | 55 | 330 | 3025 | 18150 |
| Total | 50 | 1810 | 71650 |
- \( N\sum f_i x_i^2 = 50 \times 71650 = 3582500 \) and \( \left(\sum f_i x_i\right)^2 = 1810^2 = 3276100 \).
- Difference: 306400, so \( \sigma = \frac{1}{50}\sqrt{306400} \approx \frac{553.5}{50} \approx 11.07 \).
- Check: \( \bar{x} = 36.2 \), and \( \sigma^2 = \frac{71650}{50} - 36.2^2 = 1433 - 1310.44 = 122.56 \), whose square root is 11.07.
Don't mix these up
- \( \frac{1}{N}\sum f_i x_i^2 \) (mean of the squares) is not \( \bar{x}^2 \) (square of the mean). Variance is their difference, and it is never negative.
- \( \sum f_i x_i^2 \) means \( f_i \times x_i^2 \), not \( (f_i x_i)^2 \).
Try it. For the shoe sizes (\( x_i \): 5, 6, 7, 8, 9, 10; \( f_i \): 3, 7, 10, 11, 5, 4), \( \sum f_i x_i = 300 \). Find \( \sum f_i x_i^2 \), the variance and the standard deviation.
Answer
- \( \sum f_i (x_i - \bar{x})^2 \)
- The frequency-weighted sum of squared deviations.
- \( \sum f_i x_i^2 \)
- Each value squared, times its frequency, all added.
- Mean of the squares
- \( \frac{1}{N}\sum f_i x_i^2 \).
- Square of the mean
- \( \bar{x}^2 \); variance is the mean of the squares minus this.
Words to know
For a distribution, \( N = 25 \), \( \sum f_i x_i = 100 \) and \( \sum f_i x_i^2 = 500 \). What is \( \sigma \)?
- 4
- 2
- \( \sqrt{20} \approx 4.47 \)
A student finds \( \frac{1}{N}\sum f_i x_i^2 = 40 \) and \( \bar{x} = 7 \). What should they conclude?
- The variance is −9
- They have made a mistake, since the mean of the squares can't be less than \( \bar{x}^2 \)
- The variance is 33
Picture and video credits