Variance
GeneralStatistical Variance
The average of squared differences from the mean, measuring how spread out a dataset is. Standard deviation is simply the square root of variance.
Definition
Variance measures how spread out a set of numbers is around its average, calculated as the mean of the squared differences between each value and the dataset's mean. A small variance means values cluster tightly around the average; a large variance means they're spread widely.
It's the mathematical foundation underneath standard deviation, which is just the square root of variance brought back into the original unit scale. The Standard Deviation Calculator computes variance as an intermediate step before taking that square root.
Formula
Variance (ϲ) = Ī£(xįµ¢ ā μ)² / n
Where xįµ¢ is each value, μ (mu) is the mean, and n is the number of values (or n ā 1 for sample variance).
Worked Example
A dataset of test scores: 70, 75, 80, 85, 90, with a mean of 80.
- Squared deviations: (70ā80)² = 100, (75ā80)² = 25, (80ā80)² = 0, (85ā80)² = 25, (90ā80)² = 100
- Sum: 100 + 25 + 0 + 25 + 100 = 250
- Variance: 250 / 5 = 50
- Standard deviation: ā50 ā 7.07
That 7.07 figure is in the same units as the original scores, unlike the variance of 50, which is in squared points.
Key Things to Know
- Variance is always non-negative. Since deviations are squared, the result can never be negative, zero only happens when every value is identical.
- Larger deviations are penalized disproportionately. A value twice as far from the mean contributes four times as much to variance, not twice, because of the squaring.
- Sample variance divides by nā1, not n. This adjustment, called Bessel's correction, corrects for bias when estimating a population's variance from a limited sample.
- Variance and standard deviation carry the same information, different units. Choose standard deviation when you want interpretability, variance when you're doing further statistical calculations that require it directly.
- Outliers inflate variance heavily. A single extreme value can dominate the variance calculation because of the squaring, even if the rest of the dataset is tightly clustered.
Frequently Asked Questions