Variance Notes

Published on: September 29, 2026

These Variance Notes explain how to measure how spread out a list of numbers is, with the working shown line by line. The mean is found first, then the distance from it to each value. Squaring those distances stops the ones above and below the mean cancelling each other out, and their average is the variance. The answer is in squared units, which is why the standard deviation takes its square root. Following the same pattern every time keeps it easy to check.

Step-by-step method

  1. Set up the problem.
  2. Write the formula.
  3. Find the mean of the values.
  4. Subtract the mean from each value.
  5. Square each difference.
  6. Add the squared differences.
  7. Substitute the total and the count into the formula.
  8. Divide to get the variance.

Formula: Variance Formula

This formula averages the squared distances from the mean. Take the mean from each value, square the results, add them, then divide by n.

\(\sigma^{2} = \frac{\Sigma (x - \bar{x})^{2}}{n}\)

Useful Tips to Remember

The variance is the mean of the squared deviations from the mean. Squaring removes negative signs, so the variance can never be negative. It is in squared units, so the standard deviation, its square root, is easier to interpret. Divide by \(n\) for a population and by \(n - 1\) for a sample.

Required knowledge

Where Is the Variance Used?

The variance measures spread as the average of the squared distances from the mean. Squaring makes every distance positive and gives extra weight to values far from the mean, which makes variance sensitive to unusual results. It is used in finance to measure the volatility of returns, in quality control to monitor processes, and in science to compare the variability of different methods. Variances also add up neatly for independent quantities, which is why they are used to combine uncertainties and build statistical models.

  • Measuring the volatility of stocks and portfolios
  • Monitoring the consistency of manufacturing processes
  • Combining uncertainties from independent measurements
  • Comparing variability between experimental methods
  • Building statistical and machine learning models

Variance Practice Problems

Example 1 uses 6, 6, 7, 10, and Example 2 uses 4, 9, 11. Examples 3 and 4 give you two more of the same kind to try, \(2,\; 4,\; 4,\; 6\) and \(3,\; 5,\; 7\). Try averaging the squared deviations yourself before checking.

The worked examples below go through the same pattern from start to finish, so you can compare every step with your own working. Try each problem on paper first, then open the example and check your working one step at a time, so you can see exactly which step went wrong if your answer does not match. Use them to check your answers and to understand why each step works.

See Example 1 Hide Example 1

Problem

\(6,\; 6,\; 7,\; 10\)

Approach

Step-by-step method

  1. Set up the problem.
  2. Write the formula.
  3. Find the mean of the values.
  4. Subtract the mean from each value.
  5. Square each difference.
  6. Add the squared differences.
  7. Substitute the total and the count into the formula.
  8. Divide to get the variance.

Formula

Formula: Variance Formula

This formula averages the squared distances from the mean. Take the mean from each value, square the results, add them, then divide by n.

\(\sigma^{2} = \frac{\Sigma (x - \bar{x})^{2}}{n}\)

Step 1

Step 1 - Set up the problem.

In this problem: We are finding how far the values \(6,\; 6,\; 7,\; 10\) sit from their own mean, on average.

\(6,\; 6,\; 7,\; 10\)

Step 2

Step 2 - Write the formula.

In this problem: The variance is the average of the squared distances from the mean, so the squared differences are added and divided by how many values there are.

\(\sigma^{2} = \frac{\Sigma (x - \bar{x})^{2}}{n}\)

Step 3

Step 3 - Find the mean of the values.

In this problem: The mean of the values is \(\bar{x} = 7.25\).

\(\bar{x} = 7.25\)

Step 4

Step 4 - Subtract the mean from each value.

In this problem: Taking the mean away from each value in turn gives \(6 - 7.25 = -1.25\), \(6 - 7.25 = -1.25\), \(7 - 7.25 = -0.25\), \(10 - 7.25 = 2.75\).

\(\begin{array}{c|c} x & x - \bar{x} \\ \hline 6 & -1.25 \\ 6 & -1.25 \\ 7 & -0.25 \\ 10 & 2.75 \end{array}\)

Step 5

Step 5 - Square each difference.

In this problem: Squaring each of those differences removes the minus signs, giving \(\left(-1.25\right)^{2} = 1.56\), \(\left(-1.25\right)^{2} = 1.56\), \(\left(-0.25\right)^{2} = 0.06\), \(2.75^{2} = 7.56\).

\(\begin{array}{c|c} x - \bar{x} & (x - \bar{x})^{2} \\ \hline -1.25 & 1.56 \\ -1.25 & 1.56 \\ -0.25 & 0.06 \\ 2.75 & 7.56 \end{array}\)

Step 6

Step 6 - Add the squared differences.

In this problem: Adding the squared differences gives \(1.56 + 1.56 + 0.06 + 7.56 = 10.75\).

\(\Sigma (x - \bar{x})^{2} = 1.56 + 1.56 + 0.06 + 7.56 = 10.75\)

Step 7

Step 7 - Substitute the total and the count into the formula.

In this problem: Replacing \(\Sigma (x - \bar{x})^{2}\) with \(10.75\) and \(n\) with \(4\), the number of values, gives \(\sigma^{2} = \frac{10.75}{4}\).

\(\sigma^{2} = \frac{10.75}{4}\)

Step 8

Step 8 - Divide to get the variance.

In this problem: Dividing gives \(10.75 \div 4 \approx 2.69\).

\(\sigma^{2} = \frac{10.75}{4} \approx 2.69\)

Final Answer

\(\sigma^{2} \approx 2.69\)
See Example 2 Hide Example 2

Problem

\(4,\; 9,\; 11\)

Approach

Step-by-step method

  1. Set up the problem.
  2. Write the formula.
  3. Find the mean of the values.
  4. Subtract the mean from each value.
  5. Square each difference.
  6. Add the squared differences.
  7. Substitute the total and the count into the formula.
  8. Divide to get the variance.

Formula

Formula: Variance Formula

This formula averages the squared distances from the mean. Take the mean from each value, square the results, add them, then divide by n.

\(\sigma^{2} = \frac{\Sigma (x - \bar{x})^{2}}{n}\)

Step 1

Step 1 - Set up the problem.

In this problem: We are finding how far the values \(4,\; 9,\; 11\) sit from their own mean, on average.

\(4,\; 9,\; 11\)

Step 2

Step 2 - Write the formula.

In this problem: The variance is the average of the squared distances from the mean, so the squared differences are added and divided by how many values there are.

\(\sigma^{2} = \frac{\Sigma (x - \bar{x})^{2}}{n}\)

Step 3

Step 3 - Find the mean of the values.

In this problem: The mean of the values is \(\bar{x} = 8\).

\(\bar{x} = 8\)

Step 4

Step 4 - Subtract the mean from each value.

In this problem: Taking the mean away from each value in turn gives \(4 - 8 = -4\), \(9 - 8 = 1\), \(11 - 8 = 3\).

\(\begin{array}{c|c} x & x - \bar{x} \\ \hline 4 & -4 \\ 9 & 1 \\ 11 & 3 \end{array}\)

Step 5

Step 5 - Square each difference.

In this problem: Squaring each of those differences removes the minus signs, giving \(\left(-4\right)^{2} = 16\), \(1^{2} = 1\), \(3^{2} = 9\).

\(\begin{array}{c|c} x - \bar{x} & (x - \bar{x})^{2} \\ \hline -4 & 16 \\ 1 & 1 \\ 3 & 9 \end{array}\)

Step 6

Step 6 - Add the squared differences.

In this problem: Adding the squared differences gives \(16 + 1 + 9 = 26\).

\(\Sigma (x - \bar{x})^{2} = 16 + 1 + 9 = 26\)

Step 7

Step 7 - Substitute the total and the count into the formula.

In this problem: Replacing \(\Sigma (x - \bar{x})^{2}\) with \(26\) and \(n\) with \(3\), the number of values, gives \(\sigma^{2} = \frac{26}{3}\).

\(\sigma^{2} = \frac{26}{3}\)

Step 8

Step 8 - Divide to get the variance.

In this problem: Dividing gives \(26 \div 3 \approx 8.67\).

\(\sigma^{2} = \frac{26}{3} \approx 8.67\)

Final Answer

\(\sigma^{2} \approx 8.67\)
See Example 3 Hide Example 3

Problem

\(2,\; 4,\; 4,\; 6\)

Approach

Step-by-step method

  1. Set up the problem.
  2. Write the formula.
  3. Find the mean of the values.
  4. Subtract the mean from each value.
  5. Square each difference.
  6. Add the squared differences.
  7. Substitute the total and the count into the formula.
  8. Divide to get the variance.

Formula

Formula: Variance Formula

This formula averages the squared distances from the mean. Take the mean from each value, square the results, add them, then divide by n.

\(\sigma^{2} = \frac{\Sigma (x - \bar{x})^{2}}{n}\)

Step 1

Step 1 - Set up the problem.

In this problem: We are finding how far the values \(2,\; 4,\; 4,\; 6\) sit from their own mean, on average.

\(2,\; 4,\; 4,\; 6\)

Step 2

Step 2 - Write the formula.

In this problem: The variance is the average of the squared distances from the mean, so the squared differences are added and divided by how many values there are.

\(\sigma^{2} = \frac{\Sigma (x - \bar{x})^{2}}{n}\)

Step 3

Step 3 - Find the mean of the values.

In this problem: The mean of the values is \(\bar{x} = 4\).

\(\bar{x} = 4\)

Step 4

Step 4 - Subtract the mean from each value.

In this problem: Taking the mean away from each value in turn gives \(2 - 4 = -2\), \(4 - 4 = 0\), \(4 - 4 = 0\), \(6 - 4 = 2\).

\(\begin{array}{c|c} x & x - \bar{x} \\ \hline 2 & -2 \\ 4 & 0 \\ 4 & 0 \\ 6 & 2 \end{array}\)

Step 5

Step 5 - Square each difference.

In this problem: Squaring each of those differences removes the minus signs, giving \(\left(-2\right)^{2} = 4\), \(0^{2} = 0\), \(0^{2} = 0\), \(2^{2} = 4\).

\(\begin{array}{c|c} x - \bar{x} & (x - \bar{x})^{2} \\ \hline -2 & 4 \\ 0 & 0 \\ 0 & 0 \\ 2 & 4 \end{array}\)

Step 6

Step 6 - Add the squared differences.

In this problem: Adding the squared differences gives \(4 + 0 + 0 + 4 = 8\).

\(\Sigma (x - \bar{x})^{2} = 4 + 0 + 0 + 4 = 8\)

Step 7

Step 7 - Substitute the total and the count into the formula.

In this problem: Replacing \(\Sigma (x - \bar{x})^{2}\) with \(8\) and \(n\) with \(4\), the number of values, gives \(\sigma^{2} = \frac{8}{4}\).

\(\sigma^{2} = \frac{8}{4}\)

Step 8

Step 8 - Divide to get the variance.

In this problem: Dividing gives \(8 \div 4 = 2\).

\(\sigma^{2} = \frac{8}{4} = 2\)

Final Answer

\(\sigma^{2} = 2\)
See Example 4 Hide Example 4

Problem

\(3,\; 5,\; 7\)

Approach

Step-by-step method

  1. Set up the problem.
  2. Write the formula.
  3. Find the mean of the values.
  4. Subtract the mean from each value.
  5. Square each difference.
  6. Add the squared differences.
  7. Substitute the total and the count into the formula.
  8. Divide to get the variance.

Formula

Formula: Variance Formula

This formula averages the squared distances from the mean. Take the mean from each value, square the results, add them, then divide by n.

\(\sigma^{2} = \frac{\Sigma (x - \bar{x})^{2}}{n}\)

Step 1

Step 1 - Set up the problem.

In this problem: We are finding how far the values \(3,\; 5,\; 7\) sit from their own mean, on average.

\(3,\; 5,\; 7\)

Step 2

Step 2 - Write the formula.

In this problem: The variance is the average of the squared distances from the mean, so the squared differences are added and divided by how many values there are.

\(\sigma^{2} = \frac{\Sigma (x - \bar{x})^{2}}{n}\)

Step 3

Step 3 - Find the mean of the values.

In this problem: The mean of the values is \(\bar{x} = 5\).

\(\bar{x} = 5\)

Step 4

Step 4 - Subtract the mean from each value.

In this problem: Taking the mean away from each value in turn gives \(3 - 5 = -2\), \(5 - 5 = 0\), \(7 - 5 = 2\).

\(\begin{array}{c|c} x & x - \bar{x} \\ \hline 3 & -2 \\ 5 & 0 \\ 7 & 2 \end{array}\)

Step 5

Step 5 - Square each difference.

In this problem: Squaring each of those differences removes the minus signs, giving \(\left(-2\right)^{2} = 4\), \(0^{2} = 0\), \(2^{2} = 4\).

\(\begin{array}{c|c} x - \bar{x} & (x - \bar{x})^{2} \\ \hline -2 & 4 \\ 0 & 0 \\ 2 & 4 \end{array}\)

Step 6

Step 6 - Add the squared differences.

In this problem: Adding the squared differences gives \(4 + 0 + 4 = 8\).

\(\Sigma (x - \bar{x})^{2} = 4 + 0 + 4 = 8\)

Step 7

Step 7 - Substitute the total and the count into the formula.

In this problem: Replacing \(\Sigma (x - \bar{x})^{2}\) with \(8\) and \(n\) with \(3\), the number of values, gives \(\sigma^{2} = \frac{8}{3}\).

\(\sigma^{2} = \frac{8}{3}\)

Step 8

Step 8 - Divide to get the variance.

In this problem: Dividing gives \(8 \div 3 \approx 2.67\).

\(\sigma^{2} = \frac{8}{3} \approx 2.67\)

Final Answer

\(\sigma^{2} \approx 2.67\)

Calculator and Practice Mode