Variance and standard deviation
Ask two students to report their last five test scores and both might quote the same average — yet one set could be tightly bunched near that average while the other swings wildly above and below it. The mean alone hides this difference. To capture how spread out a data set is, statisticians use the average of the squared deviations from the mean, called the variance, and its square root, the standard deviation. This topic sits at the culmination of the Statistics chapter in CBSE Class 11 Mathematics, right after range and mean deviation. You are expected to compute variance and standard deviation for ungrouped data, discrete frequency distributions, and grouped (continuous) frequency distributions — including the faster shortcut and step-deviation methods for grouped data — and to use the coefficient of variation to compare the relative variability of two different series. Squaring deviations instead of taking absolute values (as mean deviation does) turns out to be the key trick that makes the algebra tractable and the formulas so useful in the rest of statistics.
Variance is the average of the squared deviations of data from their mean, , and standard deviation restores the original units, giving a single reliable number for how spread out a data set is.
The core idea
Ungrouped data. For observations with mean , the variance is the mean of the squared deviations from :
where: is the variance, are the individual observations, is their mean, and is the number of observations. Taking the square root gives the standard deviation , which is back in the same units as the raw data — unlike variance, which is in "squared units" and therefore harder to interpret directly.
Why squares, not absolute values? Mean deviation uses to avoid positive and negative deviations cancelling out, but the modulus function is not smooth to work with algebraically. Squaring achieves the same cancellation-avoidance while staying differentiable and algebraically friendly — which is exactly why variance, not mean deviation, is the measure that the rest of statistics (correlation, regression, probability distributions) is built on.
Frequency distributions. For discrete or grouped data (using class mid-points for grouped data) with frequencies and total frequency :
Shortcut (assumed-mean) formula. Computing first and then every deviation is slow by hand. Instead pick a convenient assumed value (often a mid-point near the centre of the data), let , and use:
where: is the deviation of from the assumed mean . This avoids ever computing exactly before finding .
Step-deviation method. When class widths are equal (width ), scale the deviations further with , so becomes small whole numbers:
The outside the bracket rescales the answer back from the compressed units to the original units — a step that is easy to forget.
Coefficient of variation (CV). To compare the relative spread of two series, especially when their means or units differ, use:
A smaller CV means the series is more consistent relative to its own mean, even if its raw standard deviation is numerically larger than another series' standard deviation.
Derive the shortcut formula starting only from the definition and the substitution , to see exactly where the correction term comes from and why it must be subtracted, not added.
Step 1. Write , so the deviation from the true mean becomes . Let denote the mean of the deviations ; then .
Step 2. Substitute into the variance definition and expand the square:
Step 3. Split the sum into three separate sums, using and pulling the constant out of sums where it does not depend on :
Step 4. By definition , so the middle term becomes , and the last term becomes (since ). Combining gives .
Step 5. The result is , and since , this is exactly . The correction term is always subtracted because it came from completing the square on , which is why skipping it — as students often do — always gives an answer that is too large.
Worked example
Find the variance and standard deviation of the data set .
Step 1 — Find the mean.
Step 2 — Find each squared deviation . The deviations are , so the squared deviations are .
Step 3 — Sum the squared deviations and divide by .
Step 4 — Take the square root for standard deviation.
So the variance is 6.1875 and the standard deviation is about 2.49, in the same units as the original data.
Competitive stretch
Now compare two series using CV: Series A has , ; Series B has , . Then and . Even though Series B's raw standard deviation (10) is larger than Series A's (8), Series B is actually more consistent, since its CV is smaller — comparing raw values alone would have given the wrong conclusion.
Common traps
- Confusing variance (, squared units) with standard deviation (, original units) — always check which one the question asks for and remember the final square root.
- In the shortcut or step-deviation method, forgetting to subtract the correction term and computing only , which overstates the variance.
- In the step-deviation method, forgetting to multiply the bracketed result by to rescale from the compressed units back to the original units.
- Comparing raw standard deviations (instead of CV) to decide which of two series with different means is "more consistent" — only CV gives a valid relative comparison.
Ask the tutor: Want to work through a grouped-frequency variance problem using the step-deviation method, or check a coefficient-of-variation comparison of your own?
Why do we square the deviations instead of just adding them up directly?
If you add up the plain deviations without squaring or taking absolute values, positive and negative deviations cancel exactly, and the sum is always zero — no matter how spread out the data is. Squaring makes every term positive, so spread accumulates instead of cancelling, giving a number that genuinely reflects variability.
Is the step-deviation method giving a different variance from the direct formula?
No — it should give the same numerical answer as the direct method (up to rounding), just reached with smaller, easier arithmetic. The substitution shrinks the numbers you square and sum, and multiplying by at the end exactly undoes that shrinking, restoring the true variance in original units.
When should I use coefficient of variation instead of just comparing standard deviations?
Use CV whenever the two series you are comparing have different means or different units — for example, comparing the variability of marks (out of 100) with the variability of heights (in cm). Raw standard deviations are not comparable across different scales, but CV expresses spread as a percentage of the mean, making the comparison meaningful.