Variance Notes
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
- Set up the problem.
- Write the formula.
- Find the mean of the values.
- Subtract the mean from each value.
- Square each difference.
- Add the squared differences.
- Substitute the total and the count into the formula.
- 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.
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
- How to find the mean, covered in the Mean Calculator.
- How to add the squared differences, covered in the Sum Calculator.
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
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Find the mean of the values.
- Subtract the mean from each value.
- Square each difference.
- Add the squared differences.
- Substitute the total and the count into the formula.
- 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.
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.
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.
Step 3
Step 3 - Find the mean of the values.
In this problem: The mean of the values is \(\bar{x} = 7.25\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Find the total of the values and how many values there are.
- Substitute the total and the count into the formula.
- Divide to get the mean.
Step 1
Step 1 - Set up the problem.
In this problem: We are finding the mean of the values \(6,\; 6,\; 7,\; 10\).
Step 2
Step 2 - Write the formula.
In this problem: The mean shares the total equally between the values, so the total is divided by how many there are.
Step 3
Step 3 - Find the total of the values and how many values there are.
In this problem: The formula needs the total \(\Sigma x\) of the values and their count \(n\).
Step 3a
Step 3a - Add the values together.
In this problem: Adding the values in order gives \(6 + 6 + 7 + 10 = 29\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Add the values together to get the total.
Step 1
Step 1 - Set up the problem.
In this problem: We are adding the \(4\) values \(6,\; 6,\; 7,\; 10\) together.
Step 2
Step 2 - Write the formula.
In this problem: The total is what every value adds up to, written as the sum of all the values.
Step 3
Step 3 - Add the values together to get the total.
In this problem: Adding them in order gives \(6 + 6 + 7 + 10 = 29\).
Final Answer
Step 3b
Step 3b - Count the values.
In this problem: Counting along the list reaches \(4\) at the last value, so \(n = 4\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Count the values in the list.
Step 1
Step 1 - Set up the problem.
In this problem: We are counting how many values are in the list \(6,\; 6,\; 7,\; 10\).
Step 2
Step 2 - Write the formula.
In this problem: The count is simply how many values the list holds, written as n.
Step 3
Step 3 - Count the values in the list.
In this problem: Counting along the list from left to right reaches \(4\) at the last value, so \(n = 4\).
Final Answer
Step 4
Step 4 - Substitute the total and the count into the formula.
In this problem: Replacing \(\Sigma x\) with \(29\) and \(n\) with \(4\) gives \(\bar{x} = \frac{29}{4}\).
Step 5
Step 5 - Divide to get the mean.
In this problem: Dividing the total by the count gives \(29 \div 4 = 7.25\).
Final Answer
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\).
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\).
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\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Add the values together to get the total.
Step 1
Step 1 - Set up the problem.
In this problem: We are adding the \(4\) values \(1.56,\; 1.56,\; 0.06,\; 7.56\) together.
Step 2
Step 2 - Write the formula.
In this problem: The total is what every value adds up to, written as the sum of all the values.
Step 3
Step 3 - Add the values together to get the total.
In this problem: Adding them in order gives \(1.56 + 1.56 + 0.06 + 7.56 = 10.74\).
Final Answer
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}\).
Step 8
Step 8 - Divide to get the variance.
In this problem: Dividing gives \(10.75 \div 4 \approx 2.69\).
Final Answer
See Example 2 Hide Example 2
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Find the mean of the values.
- Subtract the mean from each value.
- Square each difference.
- Add the squared differences.
- Substitute the total and the count into the formula.
- 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.
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.
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.
Step 3
Step 3 - Find the mean of the values.
In this problem: The mean of the values is \(\bar{x} = 8\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Find the total of the values and how many values there are.
- Substitute the total and the count into the formula.
- Divide to get the mean.
Step 1
Step 1 - Set up the problem.
In this problem: We are finding the mean of the values \(4,\; 9,\; 11\).
Step 2
Step 2 - Write the formula.
In this problem: The mean shares the total equally between the values, so the total is divided by how many there are.
Step 3
Step 3 - Find the total of the values and how many values there are.
In this problem: The formula needs the total \(\Sigma x\) of the values and their count \(n\).
Step 3a
Step 3a - Add the values together.
In this problem: Adding the values in order gives \(4 + 9 + 11 = 24\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Add the values together to get the total.
Step 1
Step 1 - Set up the problem.
In this problem: We are adding the \(3\) values \(4,\; 9,\; 11\) together.
Step 2
Step 2 - Write the formula.
In this problem: The total is what every value adds up to, written as the sum of all the values.
Step 3
Step 3 - Add the values together to get the total.
In this problem: Adding them in order gives \(4 + 9 + 11 = 24\).
Final Answer
Step 3b
Step 3b - Count the values.
In this problem: Counting along the list reaches \(3\) at the last value, so \(n = 3\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Count the values in the list.
Step 1
Step 1 - Set up the problem.
In this problem: We are counting how many values are in the list \(4,\; 9,\; 11\).
Step 2
Step 2 - Write the formula.
In this problem: The count is simply how many values the list holds, written as n.
Step 3
Step 3 - Count the values in the list.
In this problem: Counting along the list from left to right reaches \(3\) at the last value, so \(n = 3\).
Final Answer
Step 4
Step 4 - Substitute the total and the count into the formula.
In this problem: Replacing \(\Sigma x\) with \(24\) and \(n\) with \(3\) gives \(\bar{x} = \frac{24}{3}\).
Step 5
Step 5 - Divide to get the mean.
In this problem: Dividing the total by the count gives \(24 \div 3 = 8\).
Final Answer
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\).
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\).
Step 6
Step 6 - Add the squared differences.
In this problem: Adding the squared differences gives \(16 + 1 + 9 = 26\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Add the values together to get the total.
Step 1
Step 1 - Set up the problem.
In this problem: We are adding the \(3\) values \(16,\; 1,\; 9\) together.
Step 2
Step 2 - Write the formula.
In this problem: The total is what every value adds up to, written as the sum of all the values.
Step 3
Step 3 - Add the values together to get the total.
In this problem: Adding them in order gives \(16 + 1 + 9 = 26\).
Final Answer
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}\).
Step 8
Step 8 - Divide to get the variance.
In this problem: Dividing gives \(26 \div 3 \approx 8.67\).
Final Answer
See Example 3 Hide Example 3
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Find the mean of the values.
- Subtract the mean from each value.
- Square each difference.
- Add the squared differences.
- Substitute the total and the count into the formula.
- 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.
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.
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.
Step 3
Step 3 - Find the mean of the values.
In this problem: The mean of the values is \(\bar{x} = 4\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Find the total of the values and how many values there are.
- Substitute the total and the count into the formula.
- Divide to get the mean.
Step 1
Step 1 - Set up the problem.
In this problem: We are finding the mean of the values \(2,\; 4,\; 4,\; 6\).
Step 2
Step 2 - Write the formula.
In this problem: The mean shares the total equally between the values, so the total is divided by how many there are.
Step 3
Step 3 - Find the total of the values and how many values there are.
In this problem: The formula needs the total \(\Sigma x\) of the values and their count \(n\).
Step 3a
Step 3a - Add the values together.
In this problem: Adding the values in order gives \(2 + 4 + 4 + 6 = 16\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Add the values together to get the total.
Step 1
Step 1 - Set up the problem.
In this problem: We are adding the \(4\) values \(2,\; 4,\; 4,\; 6\) together.
Step 2
Step 2 - Write the formula.
In this problem: The total is what every value adds up to, written as the sum of all the values.
Step 3
Step 3 - Add the values together to get the total.
In this problem: Adding them in order gives \(2 + 4 + 4 + 6 = 16\).
Final Answer
Step 3b
Step 3b - Count the values.
In this problem: Counting along the list reaches \(4\) at the last value, so \(n = 4\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Count the values in the list.
Step 1
Step 1 - Set up the problem.
In this problem: We are counting how many values are in the list \(2,\; 4,\; 4,\; 6\).
Step 2
Step 2 - Write the formula.
In this problem: The count is simply how many values the list holds, written as n.
Step 3
Step 3 - Count the values in the list.
In this problem: Counting along the list from left to right reaches \(4\) at the last value, so \(n = 4\).
Final Answer
Step 4
Step 4 - Substitute the total and the count into the formula.
In this problem: Replacing \(\Sigma x\) with \(16\) and \(n\) with \(4\) gives \(\bar{x} = \frac{16}{4}\).
Step 5
Step 5 - Divide to get the mean.
In this problem: Dividing the total by the count gives \(16 \div 4 = 4\).
Final Answer
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\).
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\).
Step 6
Step 6 - Add the squared differences.
In this problem: Adding the squared differences gives \(4 + 0 + 0 + 4 = 8\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Add the values together to get the total.
Step 1
Step 1 - Set up the problem.
In this problem: We are adding the \(4\) values \(4,\; 0,\; 0,\; 4\) together.
Step 2
Step 2 - Write the formula.
In this problem: The total is what every value adds up to, written as the sum of all the values.
Step 3
Step 3 - Add the values together to get the total.
In this problem: Adding them in order gives \(4 + 0 + 0 + 4 = 8\).
Final Answer
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}\).
Step 8
Step 8 - Divide to get the variance.
In this problem: Dividing gives \(8 \div 4 = 2\).
Final Answer
See Example 4 Hide Example 4
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Find the mean of the values.
- Subtract the mean from each value.
- Square each difference.
- Add the squared differences.
- Substitute the total and the count into the formula.
- 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.
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.
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.
Step 3
Step 3 - Find the mean of the values.
In this problem: The mean of the values is \(\bar{x} = 5\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Find the total of the values and how many values there are.
- Substitute the total and the count into the formula.
- Divide to get the mean.
Step 1
Step 1 - Set up the problem.
In this problem: We are finding the mean of the values \(3,\; 5,\; 7\).
Step 2
Step 2 - Write the formula.
In this problem: The mean shares the total equally between the values, so the total is divided by how many there are.
Step 3
Step 3 - Find the total of the values and how many values there are.
In this problem: The formula needs the total \(\Sigma x\) of the values and their count \(n\).
Step 3a
Step 3a - Add the values together.
In this problem: Adding the values in order gives \(3 + 5 + 7 = 15\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Add the values together to get the total.
Step 1
Step 1 - Set up the problem.
In this problem: We are adding the \(3\) values \(3,\; 5,\; 7\) together.
Step 2
Step 2 - Write the formula.
In this problem: The total is what every value adds up to, written as the sum of all the values.
Step 3
Step 3 - Add the values together to get the total.
In this problem: Adding them in order gives \(3 + 5 + 7 = 15\).
Final Answer
Step 3b
Step 3b - Count the values.
In this problem: Counting along the list reaches \(3\) at the last value, so \(n = 3\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Count the values in the list.
Step 1
Step 1 - Set up the problem.
In this problem: We are counting how many values are in the list \(3,\; 5,\; 7\).
Step 2
Step 2 - Write the formula.
In this problem: The count is simply how many values the list holds, written as n.
Step 3
Step 3 - Count the values in the list.
In this problem: Counting along the list from left to right reaches \(3\) at the last value, so \(n = 3\).
Final Answer
Step 4
Step 4 - Substitute the total and the count into the formula.
In this problem: Replacing \(\Sigma x\) with \(15\) and \(n\) with \(3\) gives \(\bar{x} = \frac{15}{3}\).
Step 5
Step 5 - Divide to get the mean.
In this problem: Dividing the total by the count gives \(15 \div 3 = 5\).
Final Answer
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\).
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\).
Step 6
Step 6 - Add the squared differences.
In this problem: Adding the squared differences gives \(4 + 0 + 4 = 8\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Add the values together to get the total.
Step 1
Step 1 - Set up the problem.
In this problem: We are adding the \(3\) values \(4,\; 0,\; 4\) together.
Step 2
Step 2 - Write the formula.
In this problem: The total is what every value adds up to, written as the sum of all the values.
Step 3
Step 3 - Add the values together to get the total.
In this problem: Adding them in order gives \(4 + 0 + 4 = 8\).
Final Answer
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}\).
Step 8
Step 8 - Divide to get the variance.
In this problem: Dividing gives \(8 \div 3 \approx 2.67\).
Final Answer
Calculator and Practice Mode
Want to check your own working? The Variance Calculator solves any problem you type in and shows every step, so you can compare it line by line with your answer and find exactly where a mistake crept in. When you are ready to test yourself, Variance Practice gives you a new problem at Easy, Medium or Hard level, checks your answer and shows the full working whenever you get one wrong. Practice Mode is available on the Plus and Pro plans.