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

Ask yourself: Am I averaging the squared distances from the mean (and not taking the square root)?

Quick example

Data: {2,4,6}. Mean =4. Deviations: −2,0,2. Squared: 4,0,4. Variance =(4+0+4)/3≈2.67.

Notation

σ2 for population variance, s2 for sample variance

What this formula means

The variance is the average of the squared deviations from the mean: σ2=1n∑(xi−xˉ)2. It is the square of the standard deviation.

Draw a square on each deviation: a deviation of 3 becomes a 3-by-3 square with area 9. The variance is the average area of those squares. Areas add cleanly, which is why variances combine, but an area is not a length, so you take a square root to get back to a distance.

Formal view

σ2=1n∑i=1n(xi−μ)2 (population); s2=1n−1∑i=1n(xi−xˉ)2 (sample)

Worked examples

Example 1

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

Answer

σ2=4

First step

1.
Find the mean: μ=2+4+4+4+5+5+7+98=408=5

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

SetupKey insightWhy it worksCommon pitfallConnection

Free: full solutions on 3 topics a day. No card.

Every topic, every day: the Family plan

Example 2

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

Example 3

medium
Use the computational formula σ2=∑xi2n−μ2 for {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 n, sample variance (s2) divides by n−1.

Why this formula matters

Variance is the form of spread that does arithmetic well. If two independent steps of a process have SDs of 3 and 4 minutes, the total time has variance 9+16=25, so its SD is 5 minutes, not 7. Without variance you would add standard deviations and overstate the combined uncertainty.

Frequently asked questions

What is the Variance formula?

The variance is the average of the squared deviations from the mean: σ2=1n∑(xi−xˉ)2. It is the square of the standard deviation.

How do you use the Variance formula?

Use the variance when a problem asks for the average squared deviation, when you add or subtract independent random quantities (total time of two steps, the sum of two dice), or when a formula is written in terms of σ2 or s2. The word variance itself is the plainest signal. If the question asks how spread out the data is in its own units, give the standard deviation, the square root of the variance.

What do the symbols mean in the Variance formula?

σ2 for population variance, s2 for sample variance

Why is the Variance formula important in Math?

Variance is the form of spread that does arithmetic well. If two independent steps of a process have SDs of 3 and 4 minutes, the total time has variance 9+16=25, so its SD is 5 minutes, not 7. Without variance you would add standard deviations and overstate the combined uncertainty.

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.