Variance & Standard Deviation Calculation
To overcome the mathematical drawback of ignoring signs in mean deviation, Karl Pearson introduced Standard Deviation. The deviations (xi − x̄) are squared (making all quantities positive and algebraically tractable).
- Variance (σ2): The arithmetic mean of the squares of deviations from the mean.
- Standard Deviation (σ): The positive square root of the variance: σ = +√Var.
1. Formulas for Ungrouped Data
Let x1, x2, ..., xn be n observations with mean x̄:
Alternative Computational Formula: σ2 = (1 / n) Σ xi2 − (x̄)2
Standard Deviation: σ = √[ (1 / n) Σ xi2 − (x̄)2 ]
2. Formulas for Grouped Data (Discrete & Continuous Distributions)
Let observations xi occur with frequencies fi, where N = Σ fi:
| Method | Variance (σ2) Formula | Standard Deviation (σ) Formula |
|---|---|---|
| Direct Method | (1 / N) Σ fi (xi − x̄)2 | √[ (1 / N) Σ fi (xi − x̄)2 ] |
| Algebraic Expansion | (1 / N) Σ fi xi2 − (x̄)2 | √[ (1 / N) Σ fi xi2 − (x̄)2 ] |
| Short-Cut / Assumed Mean (di = xi − A) |
(1 / N) Σ fi di2 − [ (1 / N) Σ fi di ]2 | (1 / N) √[ N Σ fi di2 − (Σ fi di)2 ] |
| Step-Deviation Method [ui = (xi − A) / h] |
(h2 / N2) [ N Σ fi ui2 − (Σ fi ui)2 ] | (h / N) √[ N Σ fi ui2 − (Σ fi ui)2 ] |
When working with continuous frequency distribution, always choose A (assumed mean) near the middle and divide deviations by class width h. This dramatically simplifies large arithmetic calculations.
3. Solved Examples for JEE Main
Example 1: Ungrouped Data
Problem: Find the variance and standard deviation of 2, 4, 6, 8, 10.
Solution:
n = 5
Σ xi = 2 + 4 + 6 + 8 + 10 = 30 ⇒ x̄ = 30/5 = 6.
Σ xi2 = 4 + 16 + 36 + 64 + 100 = 220.
σ2 = (220 / 5) − 62 = 44 − 36 = 8.
σ = √8 = 2√2 ≈ 2.83.
Example 2: Variance of First n Natural Numbers
Standard JEE Result:
Mean of first n natural numbers = (n + 1) / 2
Sum of squares = n(n + 1)(2n + 1) / 6
σ2 = (1/n) [ n(n+1)(2n+1)/6 ] − [ (n+1)/2 ]2
= (n+1) [ (2n+1)/6 − (n+1)/4 ]
= (n+1) [ (4n + 2 − 3n − 3) / 12 ] = (n2 − 1) / 12.
More solved examples
Example 1. Find the mean, variance and standard deviation of x = 2, 4, 6, 8 with frequencies 1, 3, 4, 2.
N = 1 + 3 + 4 + 2 = 10. Σfx = 2 + 12 + 24 + 16 = 54, so mean = 5.4.
Σfx2 = 1(4) + 3(16) + 4(36) + 2(64) = 4 + 48 + 144 + 128 = 324.
Variance = Σfx2/N − mean2 = 32.4 − 29.16 = 3.24, and the standard deviation is √3.24 = 1.8.
Answer: mean 5.4, variance 3.24, standard deviation 1.8.
Example 2. Find the standard deviation of the first 10 even natural numbers 2, 4, 6, …, 20.
Write each number as 2k with k = 1, 2, …, 10. Multiplying every observation by 2 multiplies the standard deviation by 2, so first find the variance of 1, 2, …, 10.
Variance of the first n natural numbers = (n2 − 1)/12 = (100 − 1)/12 = 99/12.
Variance of 2, 4, …, 20 = 22 × 99/12 = 33, so the standard deviation is √33 ≈ 5.74.
Answer: √33.
Common mistakes
- Variance is the mean of the squared deviations (divide by N here), and the standard deviation is its square root: do not report the variance as the standard deviation.
- In Σfx2/N − mean2, square each x first and then multiply by f; squaring the product fx gives a wrong result.
Practice problems
Try each problem yourself first, then open the solution to check your working.
Problem 1. Find the variance and standard deviation of 3, 5, 7, 9, 11, 13, 15.
Show answer
Mean = 63/7 = 9. Squared deviations: 36, 16, 4, 0, 4, 16, 36, with sum 112.
Variance = 112/7 = 16 and standard deviation = 4.
Answer: variance 16, S.D. 4.
Problem 2. Find the variance of the distribution with classes 0–10, 10–20, 20–30, 30–40, 40–50 and frequencies 1, 2, 4, 2, 1.
Show answer
Class marks: 5, 15, 25, 35, 45; N = 10. Mean = (5 + 30 + 100 + 70 + 45)/10 = 250/10 = 25.
Deviations of the marks: −20, −10, 0, 10, 20. Σf(x − mean)2 = 1(400) + 2(100) + 4(0) + 2(100) + 1(400) = 1200.
Variance = 1200/10 = 120, standard deviation = √120 = 2√30 ≈ 10.95.
Answer: variance 120.
Problem 3. The variance of the first n natural numbers is 10. Find n.
Show answer
For 1, 2, …, n the variance is (n2 − 1)/12.
(n2 − 1)/12 = 10 gives n2 = 121, so n = 11 (n is positive).
Check: (121 − 1)/12 = 10.
Answer: n = 11.
Saved on this device only — no account, no sign-in.