Variance Formula

The variance is the average of the squared deviations from the mean: ^2 = 1/n (x_i - x)^2.

The Formula

σ2=(xμ)2n\sigma^2 = \frac{\sum(x - \mu)^2}{n}

When to use: Another spread measure—variance =SD2= \text{SD}^2. Same idea, different scale.

Quick Example

Data: {2,4,6}\{2, 4, 6\}. Mean =4= 4. Deviations: 2,0,2-2, 0, 2. Squared: 4,0,44, 0, 4. Variance =(4+0+4)/32.67= (4+0+4)/3 \approx 2.67.

Notation

σ2\sigma^2 for population variance, s2s^2 for sample variance

What This Formula Means

The variance is the average of the squared deviations from the mean: σ2=1n(xixˉ)2\sigma^2 = \frac{1}{n}\sum (x_i - \bar{x})^2. It is the square of the standard deviation.

Another spread measure—variance =SD2= \text{SD}^2. Same idea, different scale.

Formal View

σ2=1ni=1n(xiμ)2\sigma^2 = \frac{1}{n}\sum_{i=1}^{n}(x_i - \mu)^2 (population); s2=1n1i=1n(xixˉ)2s^2 = \frac{1}{n-1}\sum_{i=1}^{n}(x_i - \bar{x})^2 (sample)

Worked Examples

Example 1

medium
Calculate the population variance for the data set: {2,4,4,4,5,5,7,9}\{2, 4, 4, 4, 5, 5, 7, 9\}.

Answer

σ2=4\sigma^2 = 4

First step

1
Find the mean: μ=2+4+4+4+5+5+7+98=408=5\mu = \frac{2+4+4+4+5+5+7+9}{8} = \frac{40}{8} = 5

See the full worked solution + why-it-works coaching

SetupKey insightWhy it worksCommon pitfallConnection

Unlock answer keys One Family plan — every worked solution, all subjects

Example 2

hard
Two investments have the same mean return of 8%. Investment A returns: {6,7,8,9,10}%\{6, 7, 8, 9, 10\}\%. Investment B returns: {2,5,8,11,14}%\{2, 5, 8, 11, 14\}\%. Calculate the variance of each and interpret.

Example 3

medium
Use the computational formula σ2=xi2nμ2\sigma^2 = \frac{\sum x_i^2}{n} - \mu^2 for {1,2,3,4,5}\{1, 2, 3, 4, 5\}.

Common Mistakes

  • Taking the square root and calling it variance — that result is the standard deviation; variance is before the root.
  • Averaging the deviations without squaring — raw deviations sum to zero, so square them first.
  • Mixing up the divisor — population variance divides by nn, sample variance (s2s^2) divides by n1n-1.

Why This Formula Matters

Variance is the algebra-friendly form of spread: variances of independent quantities add, which is why it underlies regression, ANOVA, and the central limit theorem. Standard deviation is what you report to humans; variance is what the formulas run on. Recognizing it by "Am I averaging the squared distances from the mean (and not taking the square root)?" — rather than by familiar numbers — is what lets a student tell it apart from standard deviation and mean and range in a mixed problem set.

Frequently Asked Questions

What is the Variance formula?

The variance is the average of the squared deviations from the mean: σ2=1n(xixˉ)2\sigma^2 = \frac{1}{n}\sum (x_i - \bar{x})^2. It is the square of the standard deviation.

How do you use the Variance formula?

Another spread measure—variance =SD2= \text{SD}^2. Same idea, different scale.

What do the symbols mean in the Variance formula?

σ2\sigma^2 for population variance, s2s^2 for sample variance

Why is the Variance formula important in Math?

Variance is the algebra-friendly form of spread: variances of independent quantities add, which is why it underlies regression, ANOVA, and the central limit theorem. Standard deviation is what you report to humans; variance is what the formulas run on. Recognizing it by "Am I averaging the squared distances from the mean (and not taking the square root)?" — rather than by familiar numbers — is what lets a student tell it apart from standard deviation and mean and range in a mixed problem set.

What do students get wrong about Variance?

The procedure for variance is the easy part; the trap is taking the square root and calling it variance. Asking "Am I averaging the squared distances from the mean (and not taking the square root)?" first is what keeps a correct-looking calculation from being attached to the wrong concept.

What should I learn before the Variance formula?

Before studying the Variance formula, you should understand: mean, standard deviation.