Variance Examples in Math

Start with the recap, study the fully worked examples, then use the practice problems to check your understanding of Variance.

This page combines explanation, solved examples, and follow-up practice so you can move from recognition to confident problem-solving in Math.

Concept Recap

The variance is the average of the squared deviations from the mean: Οƒ2=1nβˆ‘(xiβˆ’xΛ‰)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.

Read the full concept explanation β†’

How to Use These Examples

  • Read the first worked example with the solution open so the structure is clear.
  • Try the practice problems before revealing each solution.
  • Use the related concepts and background knowledge badges if you feel stuck.

What to Focus On

Core idea: Variance is the average squared distance from the mean β€” the spread measured in squared units.

Common stuck point: 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.

Sense of Study hint: Ask: Am I averaging the squared distances from the mean (and not taking the square root)?

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\}.

Example 4

medium
Compute the sample variance s2=1nβˆ’1βˆ‘(xiβˆ’xΛ‰)2s^2 = \frac{1}{n-1}\sum(x_i - \bar{x})^2 for {2,4,6,8}\{2, 4, 6, 8\}.

Example 5

medium
For XX taking values 1,2,31, 2, 3 each with probability 1/31/3, compute Var⁑(X)=E[X2]βˆ’(E[X])2\operatorname{Var}(X) = E[X^2] - (E[X])^2.

Example 6

hard
Fair die: let XX be the value rolled. Compute Var⁑(X)\operatorname{Var}(X).

Example 7

hard
For a Bernoulli random variable with success probability p=0.3p = 0.3, find Var⁑(X)\operatorname{Var}(X).

Example 8

challenge
Show that for two values {a,b}\{a,b\}, the population variance equals (bβˆ’a)24\frac{(b-a)^2}{4}.

Practice Problems

Try these problems on your own first, then open the solution to compare your method.

Example 1

easy
Calculate the population variance for: {1,3,5,7,9}\{1, 3, 5, 7, 9\}.

Example 2

medium
A data set has n=5n=5 values with mean ΞΌ=10\mu = 10 and βˆ‘xi2=530\sum x_i^2 = 530. Find the variance using the computational formula Οƒ2=βˆ‘xi2nβˆ’ΞΌ2\sigma^2 = \frac{\sum x_i^2}{n} - \mu^2.

Example 3

easy
Find the variance of {2,4,6}\{2, 4, 6\} (population).

Example 4

easy
If standard deviation is 5, what is the variance?

Example 5

easy
Variance of {5,5,5}\{5, 5, 5\}?

Example 6

easy
The mean of {1,3}\{1, 3\} is 2. Find the population variance.

Example 7

easy
If variance is 36, what is the standard deviation?

Example 8

easy
Data measured in meters has variance 9. What are the units of the variance?

Example 9

easy
Which is larger spread: variance 4 or variance 16?

Example 10

easy
Population variance divides the squared-deviation sum by what?

Example 11

medium
Find the population variance of {1,2,3,4,5}\{1, 2, 3, 4, 5\}.

Example 12

medium
Find the sample variance of {2,4,6,8}\{2, 4, 6, 8\}.

Example 13

medium
A set has population variance 10. Multiply every value by 3. New variance?

Example 14

medium
A set has variance 7. Add 5 to every value. New variance?

Example 15

medium
A fair coin: X=1X=1 for heads (p=0.5), 00 for tails. Find Var(X)\text{Var}(X).

Example 16

medium
Population variance of {0,0,0,4}\{0, 0, 0, 4\}?

Example 17

medium
Variance equals E[X2]βˆ’(E[X])2E[X^2]-(E[X])^2. If E[X2]=20E[X^2]=20 and E[X]=4E[X]=4, find the variance.

Example 18

medium
Two independent variables: Var(X)=3\text{Var}(X)=3, Var(Y)=5\text{Var}(Y)=5. Find Var(X+Y)\text{Var}(X+Y).

Example 19

medium
Population variance of {4,4,10,10}\{4, 4, 10, 10\}?

Example 20

challenge
A data set has values {3,5,5,x}\{3, 5, 5, x\}, where the population variance is computed using deviations from the value 55 (i.e., treating 55 as the reference mean). If the resulting variance equals 55, find the positive value of xx.

Example 21

challenge
Show the variance of {a,βˆ’a}\{a, -a\} (population) equals a2a^2.

Example 22

challenge
A binomial XX has n=12n=12, p=0.25p=0.25. Find Var(X)\text{Var}(X) and explain via additivity.

Example 23

easy
Find the population variance of {4,4,4,4}\{4, 4, 4, 4\}.

Example 24

easy
Find the population variance of {0,2}\{0, 2\}.

Example 25

medium
Find the population variance of {3,6,9}\{3, 6, 9\}.

Example 26

medium
Each value of a data set is multiplied by 33. If the original variance was 44, what is the new variance?

Example 27

medium
Each value of a data set is increased by 1010. If the original variance was 2525, what is the new variance?

Example 28

medium
Find the population variance of {10,10,10,14}\{10, 10, 10, 14\}.

Example 29

medium
A data set has population variance Οƒ2=16\sigma^2 = 16 measured in seconds2^2. What is the standard deviation, in seconds?

Example 30

medium
Find the population variance of {βˆ’2,0,2}\{-2, 0, 2\}.

Example 31

medium
A class of 55 students scored {70,80,90,80,80}\{70, 80, 90, 80, 80\}. Find the population variance.

Example 32

hard
A data set of n=10n=10 has βˆ‘xi=50\sum x_i = 50 and βˆ‘xi2=300\sum x_i^2 = 300. Find the population variance.

Example 33

hard
XX and YY are independent with Var⁑(X)=4\operatorname{Var}(X) = 4 and Var⁑(Y)=9\operatorname{Var}(Y) = 9. Find Var⁑(X+Y)\operatorname{Var}(X + Y).

Example 34

hard
XX and YY are independent with Var⁑(X)=4\operatorname{Var}(X) = 4 and Var⁑(Y)=9\operatorname{Var}(Y) = 9. Find Var⁑(Xβˆ’Y)\operatorname{Var}(X - Y).

Example 35

hard
Given Var⁑(X)=5\operatorname{Var}(X) = 5, find Var⁑(2X+7)\operatorname{Var}(2X + 7).

Example 36

hard
A sample variance is s2=12s^2 = 12 for n=9n = 9. What is βˆ‘(xiβˆ’xΛ‰)2\sum (x_i - \bar{x})^2?

Example 37

hard
The variance of {a,a+d,a+2d}\{a, a+d, a+2d\} (population) is 2d23\frac{2d^2}{3}. Verify for a=1a=1, d=2d=2.

Example 38

challenge
A data set of nn values has mean ΞΌ\mu and variance Οƒ2\sigma^2. A new value equal to ΞΌ\mu is added. What is the new population variance?

Example 39

challenge
Three numbers have mean 55 and population variance 66. Two of them are 22 and 55. Find the third.

Background Knowledge

These ideas may be useful before you work through the harder examples.

meanstandard deviation