Statistics & Analysis

Variance

Reviewed byMallik Gaddam

Definition

Variance is a statistical measure of the dispersion or spread of a set of values around their mean. It is calculated as the average of the squared deviations of each value from the mean, using the sum of squared differences divided by the number of observations (for a population variance) or by the number of observations minus one (for a sample variance, which uses Bessel's correction to provide an unbiased estimate).[1] Variance quantifies how much individual data points differ from the average, with larger variances indicating greater variability and smaller variances indicating that values are clustered closely around the mean. The positive square root of the variance is the standard deviation, which is expressed in the same units as the original data and is often more intuitive to interpret.[1]

Explore the concept

Where the spread goes

Split the variation in three blood pressure groups into between and within parts, divide by degrees of freedom to reach F, then see how the outcome variance sets a trial’s size.

Drug A, drug B and placebo, 30 patients each

Sums of squares, mmHg²Total 21,873
Between groupsWithin groups

Total sum of squares

21,873

mmHg²

All the spread in 90 readings

Square every reading’s distance from the grand mean and add them up: 21,873 mmHg² of variation across the three groups.

The big idea: Variance is the average squared deviation from the mean, in squared units; its square root is the standard deviation. Because variances add up, ANOVA can split them into between and within parts, and sample size formulas scale with the variance.

Split the total uses the article’s example (n = 30 per group, means 128, 132 and 140 mmHg, SDs 14, 16 and 15): between sum of squares 30 × [(128 − 133.3)² + (132 − 133.3)² + (140 − 133.3)²] = 2,240, within 29 × (196 + 256 + 225) = 19,633, total 21,873 across the 90 readings, between groups about 10% of it, F(2, 87) = 4.96, p = 0.009. The two rows use different scales. Plan a trial is illustrative: n per group = 2 × (1.96 + 0.84)² × variance ÷ 12², for a 12 mmHg difference (placebo 140 vs drug A 128), 80% power and two-sided alpha 0.05, rounded up: 22, 25 and 28 per group for SDs of 14, 15 and 16 mmHg, against 2 if the SD is entered in place of the variance.

Why it matters

Variance is central to many aspects of statistical analysis. It determines the precision of estimates, the power of statistical tests, the width of confidence intervals, and the ability to detect differences between groups. In ANOVA (analysis of variance), the total variance in the data is partitioned into components attributable to different sources (such as between group and within group variance), forming the basis for testing whether group means differ significantly. In regression analysis, the coefficient of determination (R squared) represents the proportion of the total variance in the dependent variable that is explained by the independent variables.[1] Understanding variance is also essential for sample size calculation, because the required sample size increases as the variance of the outcome measure increases.[2] In measurement theory, total observed variance is decomposed into true score variance and error variance, with reliability defined as the ratio of true score variance to total variance.

How it works

For a sample of n observations with values x1 through xn and a sample mean of x bar, the sample variance (s squared) is calculated as the sum of (xi minus x bar) squared for all observations, divided by (n minus 1). The division by (n minus 1) rather than n corrects for the downward bias that occurs because the sample mean is estimated from the same data.[1] The variance is always nonnegative, and equals zero only when all values are identical. In the context of ANOVA, the F statistic is the ratio of the between group variance (mean square between) to the within group variance (mean square within).[1] A large F statistic indicates that the between group variance exceeds what would be expected from random variation alone, providing evidence for group differences. In multivariate statistics, the variance covariance matrix extends the concept to multiple variables simultaneously, capturing both the variance of each variable and the covariances between pairs of variables.

When to use it

Report and interpret variance (or its square root, the standard deviation) in any descriptive statistical summary, as a measure of dispersion complements a measure of central tendency. Use variance components in ANOVA to test hypotheses about group differences. Use variance in sample size calculations by plugging in the expected variance of the outcome to determine the number of participants needed for adequate power. Use the variance covariance matrix in multivariate analyses, structural equation modeling, and principal component analysis. When comparing the variability of two distributions or testing whether variances are equal (an assumption of some parametric tests), use Levene's test or its median based Brown Forsythe version, which are generally preferred to the F test for equality of variances because that test is highly sensitive to departures from normality.[3]

Key takeaways

  • Variance is central to many aspects of statistical analysis.
  • The division by (n minus 1) rather than n corrects for the downward bias that occurs because the sample mean is estimated from the same data.
  • Report and interpret variance (or its square root, the standard deviation) in any descriptive statistical summary, as a measure of dispersion complements a measure of central tendency.
  • A common mistake is reporting only the mean without the variance or standard deviation, which gives an incomplete picture of the data.

Common mistakes

  • A common mistake is reporting only the mean without the variance or standard deviation, which gives an incomplete picture of the data.
  • Confusing variance with standard deviation in sample size formulas or when interpreting results leads to incorrect calculations; the variance is the squared standard deviation, and formulas may require either one.
  • Assuming equal variances across groups without checking this assumption (homogeneity of variance) can distort the error rates and confidence intervals of ANOVA and t tests, especially when group sizes differ.
  • Another error is interpreting a large variance as indicating a problem with the data when in fact the population being studied is inherently variable.
  • Using the population variance formula (dividing by n) for a sample estimate produces a biased underestimate.[1][2]
  • Finally, in meta analysis, confusing between study variance (tau squared) with within study variance (sampling error) can lead to incorrect interpretation of heterogeneity.

Example

A researcher measures systolic blood pressure in three groups: patients receiving drug A (n = 30, mean = 128, SD = 14), drug B (n = 30, mean = 132, SD = 16), and placebo (n = 30, mean = 140, SD = 15). The sample variances are 196, 256, and 225, respectively. The one way ANOVA partitions the total sum of squares into between group and within group parts, giving the between group variance (mean square between = 1120) and the within group variance (mean square within = 226). The F statistic is 1120 / 226 = 4.96 with 2 and 87 degrees of freedom (p = 0.009), indicating that the group means differ significantly. Post hoc pairwise comparisons reveal that only the difference between drug A and placebo is significant after Tukey adjustment.

Test your understanding

5 questions that adapt as you go: answer two in a row correctly and they get harder.

Question 1 of 5

Scenario:

A paper reports a variance of 196 for systolic blood pressure in mmHg. A reader says patients typically sit about 196 mmHg from the mean.

Question:

What is wrong with the reader's statement?

Hardness: Interpret

Sources

  1. [1]Field A. Discovering Statistics Using IBM SPSS Statistics. 6th ed. SAGE Publications, 2024. ISBN 9781529630008
  2. [2]Cochran WG. Sampling Techniques. 3rd ed. Wiley, 1977. ISBN 9780471162407
  3. [3]Brown MB, Forsythe AB. Robust tests for the equality of variances. Journal of the American Statistical Association. 1974;69(346):364-367. doi:10.1080/01621459.1974.10482955

Cite this term

FullPaperguide. (2026, October 16). Variance. In Paperguide Research Glossary. https://paperguide.ai/research-glossary/variance/
In-text(Paperguide, 2026)

Related terms