Calculate population variance σ² and sample variance s² from the accepted finite values, using n and n − 1 denominators.
The Variance Calculator reports population variance σ² and sample variance s² from the accepted numeric values. Each value is the average squared distance from the appropriate mean, with a denominator that depends on whether the list represents a complete population or a sample. The page reports both so you can select the one that matches the data’s role.
Population variance divides the sum of squared deviations by n. Sample variance divides by n − 1. The sample denominator is used for the usual sample-based variance estimate; it does not mean that every observed dataset should automatically be described with s². State the selected interpretation with the result.
The input accepts finite numeric tokens separated by commas or whitespace. Empty separators are not values, and malformed or non-finite tokens are shown as ignored. Variance is measured in squared input units: if the observations are in metres, variance is in square metres. A standard deviation returns to the original unit, but it is not an output on this page.
For a population with mean μ, σ² = Σ(xᵢ − μ)² / n. Each accepted observation is centred at μ, the deviations are squared, and their sum is divided by the population count.
For a sample with mean x̄, s² = Σ(xᵢ − x̄)² / (n − 1). The n − 1 divisor is used for the sample variance calculation. Taking the square root of either variance would produce its corresponding standard deviation, but this page displays variances only.
The calculation uses unweighted observations. It does not accept a precomputed mean, sample weights, or frequency counts, and it does not adjust for a study design. If values have unequal importance or arise from a complex sampling scheme, these two formulas may not describe the required estimator.
The two results use the same accepted values but divide by different quantities. Population variance describes the entered complete group; sample variance uses n − 1. Keep the σ² or s² label with the number because the label records which calculation was made.
For the default values 4, 8, 15, 16, 23, 42, the mean is 18 and the squared deviations sum to 910. Population variance is 910 / 6 = 151.6667, while sample variance is 910 / 5 = 182. Their units are the square of the original measurement unit.
Variance is sensitive to large deviations because each difference from the mean is squared. A single distant value can have a noticeable effect. The result alone does not identify which observation contributed most, test for outliers, or say whether the spread is acceptable for a particular purpose.
A useful consistency check is how the result behaves under a change of scale. Adding the same constant to every observation shifts the mean but leaves every deviation from that mean unchanged, so variance stays the same. Multiplying each observation by a conversion factor c multiplies every squared deviation, and therefore variance, by c². This is why changing metres to centimetres changes the numerical variance by the square of the unit conversion, not by the conversion factor itself.
For a sample and population computed from the same list, the squared-deviation total is shared; the divisor creates the difference. With six accepted values, n is 6 and n − 1 is 5. Keeping the divisor visible makes the two values auditable and helps prevent a correct calculation from being reported under the wrong interpretation.
The calculator provides population and sample variance summaries for the accepted values only. It does not choose the correct statistical model, estimate uncertainty, or make an inference about unobserved cases.
For research or operational reporting, document the input definition, units, and denominator. Confirm that an unweighted variance is suitable for the data-collection design.