Two groups of students that each have an average test score of 75 might have a score distribution that looks remarkably different. One class might be made up entirely of grades between 72 and 78 while the other class may have half the group around 50, with the other half getting near 100. Variance is a way of measuring the variation in a set of data or how spread out the data is. What is the mean and variance for the following sample test scores taken from a larger student population?
75, 73, 78, 90, 60, 51, 87, 79, 80, 77
The thought process of a person trying to describe the spread (variation) of some data for the first time must have been something like this.
Well, the average is 75. What if I try to just add up how different each number is from 75?
As the person calculates the numbers, they realize pretty quickly that this sum will be zero, essentially by definition. This is because the numbers that occur below 75 precisely cancel out with the numbers above 75.
Since I cannot add the differences directly, why don’t I just sum the absolute value of the differences?
This is a legitimate method for describing the spread of data. It is called absolute deviation and is simply the sum of the absolute values of each of the differences.
If I take the average absolute difference, I will be able to judge on average how far away each data point is from the mean. A larger difference means more spread out.
If you take the average of the absolute deviation, you get the mean absolute deviation. The mean absolute variation is a legitimate, but limited, way of describing the spread of data. Eventually, a person trying to describe the spread of data for the first time might consider a method called population variance.
What if instead of using absolute value to solve the issue, I square each difference and then add them together? Of course I’d have to divide by the number of data points to get the average difference squared
Hey wait, by squaring the differences, doesn’t that mean that the units are squared? What if I want to describe the spread in the regular units? Should I just take the square root of the variance?
Mean and variance for the population:
Mean and variance for a sample from a population:
Remember that variance is a measure of the spread of data. The bigger the variance, the more spread out the data points.
Take a six sided dice. Since the population for a six sided die is entirely known, you would use the population variance to calculate the variance and mean. You would get.
Earlier, you were asked to find the mean and variance for the following sample test scores taken from a larger student population:
75, 73, 78, 90, 60, 51, 87, 79, 80, 77
The mean of the test scores is 75. The variance is calculated by taking the difference of each number from the mean, squaring and summing these differences.
Since this data is a sample, you divide the sum by one fewer than the number of terms.
If you knew the variances for two samples, each from a different class, you could quickly determine which class had test scores that were more spread out.
Calculate the mean and variance of the following data sample of lap times.
59.8, 57.1, 58.2, 58.6, 57.8, 57.9, 58.0, 57.3
This is a sample, so you should use the sample variance formula.
Use a calculator to calculate the variance from Example 2.
To calculate variance on your calculator, enter the data in a list, choose 1-Var Stats and run the 1-Var Stats on the list you entered the data.
The two outputs that are important for you to interpret are:
Calculate the standard deviation for the following 6 numbers by hand. Assume the numbers are a population.
2, 4, 6, 8, 12, 19
Use a spreadsheet to organize your calculations for computing the variance of the following numbers. Assume these numbers are a true population.
14, 15, 7, 15, 2, 0, 6, 5, 12, 3
After entering the data in a column, you can use the power of the embedded programming of the spreadsheet to make a second column of just the average.
- The average command is: “
You can subtract one cell from another cell to find the difference. You can then square the difference to find the difference squared. You can then sum these values using the sum command.
- The sum command is: “
Finally, just divide the sum by the number of observations (which is 10) to get the variance.
1. What are the similarities and differences between standard deviation and variance?
2. Data Set A has a mean of 30 and a standard deviation of 10. Data Set B also has a mean of 30, but a standard deviation of 2. What does this mean about Data Set A compared to Data Set B?
Calculate the variance of each set of data by hand.
3. Sample: 1, 4, 7, 10, 3, 6, 12, 5, 8, 16, 21, 3, 1, 5
4. Population: 23, 27, 19, 24, 20, 22, 31, 30, 28
5. Sample: 64, 62, 60, 58, 54, 60, 61, 63, 47, 100, 29, 59
Calculate the variance of each set of data using your calculator. Compare your answers to your answers to 3-5.
6. Sample: 1, 4, 7, 10, 3, 6, 12, 5, 8, 16, 21, 3, 1, 5
7. Population: 23, 27, 19, 24, 20, 22, 31, 30, 28
8. Sample: 64, 62, 60, 58, 54, 60, 61, 63, 47, 100, 29, 59
10. Which data set has the largest standard deviation?
- 10 10 10 10 10
- 0 0 10 10 10
- 0 9 10 11 20
- 20 20 20 20 20
11. What will a large variance look like on a histogram? What will a small variance look like on a histogram?
12. You find some data organized in a bar graph. Could you calculate the variance of this data? Explain.
13. A sample set of 20 exam scores is 67, 94, 88, 76, 85, 93, 55, 87, 80, 81, 80, 61, 90, 84, 75, 93, 75, 68, 100, 98. Calculate the mean, variance, and standard deviation for this data.
14. All of Mike’s bowling scores are: 1, 1, 2, 10, 12, 1, 9, 6, 7, 8, 4, 3, 4, 1, 4, 1, 6, 7, 11, 5. Calculate the mean, variance, and standard deviation for this data.
15. Why can’t you always calculate the population variance and standard deviation? Why do you sometimes have to calculate the sample variance and standard deviation?
To see the Review answers, open this PDF file and look for section 15.5.