تخطَّ إلى المحتوى الرئيسي

Variance Equation

Intermediate

معادلة التباين

Also known as: Variance, Return Variance, Variance Formula

Risk & Position Management
Last updated

Definition reviewed before publishing

Our content team writes and reviews every definition before it is published, and revisits it when the way a term is used in the markets changes. The date shows the latest change to this term.

Last updated on 25 November 2026

Variance is a statistical measure of how widely a set of values is spread around its average, and the variance equation is the method used to calculate it. In markets it is usually applied to the returns of an asset or portfolio to measure how volatile and risky they are.

Quick summary

• Measures how values spread around their mean. • Divide by n - 1 for samples. • Its square root is the standard deviation.

How it works

The equation starts by finding the mean of the values, then subtracts the mean from each value to see how far it deviates. The deviations are then squared, so that negative deviations do not cancel out positive ones and so that values far from the mean carry more weight. The squares are added up and divided by the number of values if the data covers the entire population, or by the number of values minus one if it is a sample drawn from a longer period, which is the usual case with historical returns. The result is expressed in squared units, such as percent squared, which makes it hard to interpret directly, so the standard deviation is found by taking its square root. Variance is the foundation of modern portfolio theory, in which a portfolio's variance is built from the variance of each asset and the covariance between assets. This is how the framework shows that combining assets that do not move together can lower overall risk.

Example

A hypothetical stock returned 10%, 4%, -2% and 12% over four years. The mean is 6% ((10 + 4 - 2 + 12) ÷ 4). The squared deviations are 16, 4, 64 and 36, which add up to 120. The sample variance is 40 (120 ÷ (4 - 1)), and the standard deviation is about 6.3% (the square root of 40).

Where you will see it

In risk management and asset allocation models, in standard deviation and Sharpe ratio calculations, in spreadsheet programs and statistical analysis platforms, and in fund performance reports.

Why it matters

Variance turns the idea of risk from a general impression into a number that can be compared across assets and portfolios. Widely used tools such as standard deviation, the Sharpe ratio and Bollinger Bands are built on it, and it shows mathematically why combining assets with low correlation reduces portfolio risk.

How it is calculated

Population variance: σ² = Σ(xᵢ - μ)² ÷ N. Sample variance: s² = Σ(xᵢ - x̄)² ÷ (n - 1), where xᵢ is each value, μ or x̄ is the mean, and N or n is the number of values.

How it differs from similar terms

• Standard deviation: the square root of variance, expressed in the same unit as the data, so it is easier to interpret. • Volatility: a broader idea describing how sharply a price moves, usually measured by the annualized standard deviation of returns. • Beta: measures an asset's sensitivity to market moves, not the spread of its returns around their mean.

Common mistakes

Reading variance as an ordinary percentage and comparing it directly with returns. Its unit is squared, so comparisons with returns should use the standard deviation, and historical variance does not guarantee that the same volatility will repeat in the future.

Related terms