- Foundation
- About 17 min
- 5 practice questions
Variance and standard deviation
Compute variance and standard deviation for a list, a frequency table and grouped data, using the definition, the shortcut formula and the step-deviation method.
If something looks wrong, please tell us.
The mean deviation uses absolute values, which are awkward to handle in algebra. Squaring the deviations also removes the signs and leads to the most widely used measure of spread: the variance, and its square root, the standard deviation. In this course the variance of n observations is found by dividing by n, as in the NCERT textbook: σ² = (1/n)Σ(x − x̄)². Some books divide by n − 1 when the data are a sample; we do not, and every answer here uses division by n.
Definitions
For observations x₁, …, xₙ with mean x̄, the variance is σ² = Σ(x − x̄)²/n and the standard deviation is σ = √(variance). The standard deviation is in the same units as the data (marks, kg, rupees), which is why it is the one usually reported. For a frequency table, σ² = Σf(x − x̄)²/N.
The shortcut formula
Expanding the square gives a formula that avoids subtracting the mean from every value: σ² = Σx²/n − x̄². In words: the mean of the squares minus the square of the mean. It is especially useful when the mean is not a whole number. With frequencies it becomes σ² = Σfx²/N − x̄².
σ² = Σ(x − x̄)²/n = Σx²/n − x̄² (divide by n). For grouped data with u = (x − A)/h: σ² = h²[Σfu²/N − (Σfu/N)²], and σ = √σ².
Worked example 1: from the definition
Find the variance and standard deviation of 6, 8, 10, 12, 14. The mean is 50/5 = 10. The deviations are −4, −2, 0, 2, 4, and their squares 16, 4, 0, 4, 16 add to 40. So σ² = 40/5 = 8 and σ = √8 = 2√2 ≈ 2.83.
Worked example 2: the shortcut
For 2, 4, 6, 8: Σx² = 4 + 16 + 36 + 64 = 120, so Σx²/n = 30. The mean is 5, so σ² = 30 − 25 = 5. Check by the definition: deviations −3, −1, 1, 3, squares 9, 1, 1, 9, sum 20, and 20/4 = 5.
Worked example 3: grouped data by step deviation
Use the table of lesson 2: classes 0-10 to 40-50 with frequencies 5, 10, 15, 6, 4, so N = 40. With A = 25 and h = 10, u takes the values −2, −1, 0, 1, 2.
| u | −2 | −1 | 0 | 1 | 2 | Total |
|---|---|---|---|---|---|---|
| f | 5 | 10 | 15 | 6 | 4 | 40 |
| fu | −10 | −10 | 0 | 6 | 8 | −6 |
| fu² | 20 | 10 | 0 | 6 | 16 | 52 |
Then σ² = 10² × [52/40 − (−6/40)²] = 100 × (1.3 − 0.0225) = 127.75, and σ = √127.75 ≈ 11.30. The mean, from lesson 2, was 23.5.
Why square the deviations?
Squaring makes every deviation positive, just as the absolute value did, but it also gives extra weight to values far from the mean: a deviation of 4 contributes 16 while a deviation of 1 contributes only 1. Compare 4, 5, 6 with 1, 5, 9. Both have mean 5. The first has variance (1 + 0 + 1)/3 = 2/3; the second has variance (16 + 0 + 16)/3 = 32/3. The standard deviations, about 0.82 and 3.27, describe the much larger scatter of the second set in the original units.
Points to remember
- Variance is never negative, and it is 0 only when every observation is the same.
- Variance is in squared units (marks²); the standard deviation is back in the original units.
- In the step-deviation formula, h² multiplies the whole bracket; forgetting it is the usual error.
- Do not round the mean before squaring it in the shortcut formula.
Key takeaways. Variance is the mean of squared deviations, dividing by n. The shortcut Σx²/n − x̄² saves work, and the step-deviation formula handles grouped data with small numbers. The standard deviation is the square root of the variance.
Check your understanding
-
1. What is the variance of 1, 2, 3, 4, 5 (dividing by n)?
- 2.5
- √2
- 10
- 2
Show answer
Answer: D. Mean = 3. Squared deviations 4, 1, 0, 1, 4 add to 10. Variance = 10/5 = 2.
-
2. What is the standard deviation of 4, 4, 4, 4?
- 4
- 0
- 1
- 2
Show answer
Answer: B. Every value equals the mean 4, so every deviation is 0 and the standard deviation is 0.
-
3. For some data Σx²/n = 50 and the mean is 6. What is the standard deviation?
- √14
- 14
- √44
- √50
Show answer
Answer: A. Variance = 50 − 6² = 14, so the standard deviation is √14.
-
4. Values 0, 1, 2 have frequencies 1, 2, 1. What is the variance?
- 1
- 0.25
- 0.5
- 2
Show answer
Answer: C. Mean = (0 + 2 + 2)/4 = 1. Σf(x − 1)² = 1 + 0 + 1 = 2. Variance = 2/4 = 0.5.
-
5. For grouped data, h = 5, N = 20, Σfu = 0 and Σfu² = 40. What is the variance?
- 10
- 2
- 50
- 250
Show answer
Answer: C. σ² = h²[Σfu²/N − (Σfu/N)²] = 25 × (2 − 0) = 50.
Sign in to keep track of the lessons you finish.