Understanding Variance: The Key to Statistical Spread
Variance is one of the most basic ideas in statistics: a single number that describes how spread out a set of values is. It matters in quality control, finance, science and anywhere else where consistency counts as much as the average.
What Is Variance?
Variance measures how far the values in a data set are from their mean, on average, using squared distances. A variance of zero means every value is identical. A larger variance means the values are more spread out; a smaller one means they cluster around the mean.
Worked Example: Same Mean, Different Spread
Two groups of five students take the same test.
Group A scores 80, 80, 80, 80, 80. The mean is 80. Every deviation is 0, so the population variance is 0.
Group B scores 60, 70, 80, 90, 100. The mean is also 80.
| Score | Deviation from 80 | Squared |
|---|---|---|
| 60 | −20 | 400 |
| 70 | −10 | 100 |
| 80 | 0 | 0 |
| 90 | 10 | 100 |
| 100 | 20 | 400 |
| Total | 0 | 1000 |
For Group B the sum of squares is 1000. If the five students are the whole group, the population variance is 1000 / 5 = 200; if they are a sample, the sample variance is 1000 / 4 = 250.
Both groups have exactly the same average, but very different consistency. The mean cannot show that; variance can.
The Formulas
Which formula you use depends on whether your data is a sample or an entire population.
Sample Variance (s²)
When your data is a sample from a larger population:
s² = Σ(xᵢ − x̄)² / (n − 1)
- s² is the sample variance
- xᵢ is each value
- x̄ is the sample mean
- n is the number of values in the sample
Population Variance (σ²)
When you have every value in the population:
σ² = Σ(xᵢ − μ)² / N
- σ² is the population variance
- μ is the population mean
- N is the population size
Why Variance Matters
Variance is the basis of other statistics, most directly the standard deviation, which is its square root. It is used in:
- Investment analysis: the variance of returns is a standard measure of how volatile an investment has been.
- Quality control: factories track the variance of product dimensions; a rising variance suggests a machine needs adjusting.
- Medical research: trials look at how much patients’ responses vary, not just the average response.
The variance calculator computes both versions for any data you enter, shows each step, and draws a chart of the spread.