What This Tool Does
This calculator computes variance from a numeric dataset and provides supporting spread metrics such as mean, standard deviation, range, and coefficient of variation. It supports both population and sample formulas so you can match your analysis context. A row-level deviation table is included to show how each observation contributes to total dispersion.
Variance Formulas
Population Variance
σ² = Σ(xᵢ − μ)² / N
Sample Variance
s² = Σ(xᵢ − x̄)² / (n − 1)
- xᵢ: each data value
- μ or x̄: mean
- N or n: number of observations
Worked Example
For values [4, 6, 8], mean = 6.
- Deviations: -2, 0, +2
- Squared deviations: 4, 0, 4
- Sum squared deviations = 8
- Population variance = 8/3 = 2.667
- Sample variance = 8/2 = 4.000
Interpreting Results
- Higher variance indicates wider spread and less consistency around the mean.
- Lower variance indicates tighter clustering and greater consistency.
- Standard deviation is easier to interpret in original units, while variance is algebraically convenient.
- Compare coefficient of variation when datasets use different scales.
When to Use Population vs Sample Mode
Use population mode when the dataset includes every item in the target group. Use sample mode when data are a subset used to estimate broader population behavior. Sample mode uses n−1 to reduce estimation bias and is standard in inferential statistics.
Sources and References
- Rice, J. A. Mathematical Statistics and Data Analysis.
- Montgomery, D. C., & Runger, G. C. Applied Statistics and Probability for Engineers.
- NIST/SEMATECH e-Handbook of Statistical Methods — Measures of Variation.