Advertisement

Variance calculator

Choose whether observations are a sample estimating a larger population or the complete population you want to describe.

Calculator

Variance
2.500000
Standard deviation
1.581139
Arithmetic mean
3.000000
Observation count
5
Variance divisor
4
Sum of squared deviations
10.000000
Variance calculation
ObservationDeviation from meanSquared deviation
1.000000-2.0000004.000000
2.000000-1.0000001.000000
3.0000000.0000000.000000
4.0000001.0000001.000000
5.0000002.0000004.000000

Advertisement

How this calculator works

Variance averages squared deviations from the arithmetic mean. For a complete population the divisor is n. When the mean is estimated from a sample and the target is the broader population variance, the usual unbiased estimator divides by n - 1. This focused comparison shows the divisor and individual squared deviations, making the choice explicit. Standard deviation is the square root of variance and returns to the original measurement unit. Observations receive equal weight.

Formula

Mean = sum(x_i)/n. SS = sum[(x_i - mean)²]. Sample variance = SS/(n - 1); population variance = SS/n; SD = sqrt(variance).

Worked example

For 1, 2, 3 the mean is 2 and squared deviations sum to 2. Sample variance is 2/2 = 1; population variance is 2/3. Their SDs are 1 and approximately 0.816497.

Advertisement

Frequently asked questions

Which divisor should I choose?

Use n for the complete group you intend to describe. Use n - 1 when independent sampled observations estimate a larger population variance.

Can variance be negative?

Not mathematically. Squared deviations are non-negative; negative inputs themselves are valid observations.

Why are variance units squared?

Each deviation is squared before averaging. Use standard deviation when you need a spread in the original unit.

Sources

Advertisement