Objective
Here you will practice evaluating the variance of data sets.
Concept
Suppose you were given a histogram and asked to find the variance of the data it illustrates? Would you know how?
After this lesson, you will understand how to compare visualized data with variance.
Watch This
http://youtu.be/IUixkNvGuWc patrickJMT – Statistics-Calculating Variance
Guidance
Knowing how to calculate the variance of a set when it is given to you as a list of values is great, but statistical data is often shared and disseminated in visual form rather than as raw data. Because of this, it is important to practice evaluating the variance of graphed data as well as tabular or raw data so you can actually apply your understanding of variance to real-world statistics.
In general, you will need to:
- Identify the values of the dependent variable, as these are the values you will be finding the variance of.
- Sum the values and calculate the arithmetic mean.
- Subtract the mean from each value to find the deviation and square the deviation
- Sum the squared deviations and divide the total by the count of values in the data set, the result is the variance.
Example A
Find the and of the number of students in each classroom at Toni’s school:
Classroom | Number of Students |
A | 6 |
B | 5 |
C | 9 |
D | 13 |
E | 12 |
F | 16 |
G | 14 |
Solution: Follow the steps from above to find mean and variance of the students:
1. The frequency of students in each classroom is the dependent variable.
2. There are 7 values, listed in ascending order they are: 5, 6, 9, 12, 13, 14, and 16.
3. The sum of the values is: , the mean is .
4. The deviances and squared deviances are:
32.65 | |
22.22 | |
2.94 | |
1.654 | |
5.226 | |
10.798 | |
27.942 |
5. The sum of the squared deviances is 103.43. The variance is
Example B
Find the and of the graphed data.
Solution: Follow the steps outlined above:
1. Most often, the dependent variable is represented by the vertical axis, and this histogram is no exception. The number of 4.0’s each year is the dependent variable, while the year is the independent variable.
2. In ascending order, the dependent variable values are:
3. The sum of the values is: .
The mean (μ) is: which suggests that a year with 50 or more 4.0 GPA’s would be considered an above average year.
4. The deviation and squared deviation of each value is:
Deviance | Deviance ^{ 2 } |
5. The sum of the squared deviances is 334.87, making the variance .
Example C
Based on the data in the frequency polygon, which year had the greatest variance in number of shoe brands at various prices, and which had the least variance?
Solution: Each of the three data sets contains 6 values, and the mean of each set is:
- 2008: Sum : Mean :
- 2007: Sum : Mean :
- 2006: Sum : Mean :
The sum of the squared deviances for each year is:
- 2008:
- 2007:
- 2006:
The variance of each set is:
- 2008:
- 2007:
- 2006:
2008 has the greatest variance and 2006 has the least variance
Concept Problem Revisited
Could you find the variance of a data set presented as a histogram?
After your practice above, this should no longer be a problem!
Vocabulary
Disseminated data is data that has been given out to others.
Tabular data is data presented in the form of a table, or, depending on the use, it may refer to data points separated by tabs.
Guided Practice
The number of cars of various colors in a parking lot with 5 levels is summarized by the table below, use the data to answer questions 1-4.
Red | Yellow | Blue | White | |
Level 1 | 11 | 4 | 9 | 14 |
Level 2 | 9 | 3 | 8 | 11 |
Level 3 | 13 | 5 | 10 | 12 |
Level 4 | 14 | 4 | 7 | 9 |
Level 5 | 12 | 6 | 13 | 7 |
1. What is the variance of red cars among the 5 levels?
2. What is the color variance of cars above level 3?
3. What is the variance of blue cars across the 5 levels?
4. If we take a sample of levels by rolling a die and end up with levels 1, 3, and 5, what is the variance of white cars in the sample?
Solutions:
1. The population of red cars across the 5 levels is: 11, 9, 13, 14, and 12.
- Add the values and divide by five to get the mean of 11.8.
- Square each of the values and sum the squares:
- Divide the sum of the squares by the number of values in the set (since this is the whole population of red cars), getting , and subtract the mean squared
- The variance of the population of red cars is
2. The levels above level 3 include only levels 4 and 5. The total number of red, yellow, blue, and white cars is 26, 10, 20, and 16, respectively.
- The mean number of cars of each color is
- Square the values and find the sum:
- Divide the sum of the squares by the number of values: . Subtract the squared mean to get the variance:
3. The blue car counts are: 9, 8, 10, 7, and 13
- The mean number of blue cars is
- The sum of the squared values is , divided by the number of levels (5), gives us 92.6
- Subtract the squared mean to get the variance
- The variance is
4. The number of white cars on levels 1, 3, and 5 is 14, 12, and 7.
- The mean number of white cars in this sample is
- Since this is a sample, we need to use the individual deviations: subtract the mean from each value, and square the result of each subtraction, then find the sum:
- Divide the sum of the deviations by the number of values minus 1 (remember, this is a sample!):
- The sample variance is 13.
Practice
Find the variance:
1. 365, 400.7, 303, 479, 514.2, 500, 489
2. 7200, 7020, 7165.9, 7000, 7796, 7012, 7016.1
3. 17, 10.3, 30.7, 70, 66, 76, 40, 53
4. 3607, 3600, 3600, 3631, 3600.6
5. 700, 700, 712, 756, 741, 716, 782
6. 3370, 3300.5, 3366, 3306.6, 3310, 3336, 3301.3
Calculate the sample variance:
7. 34.4, 34, 34.7, 34.6, 34, 34.1, 31, 31.3
8. 989.22, 990.6, 992, 996.9, 981.1, 986, 975
9. 10, 16, 10.33, 10.63, 18, 17, 16.36, 10.46
10. 3240, 3260, 3250, 3280, 3280, 3300, 3310, 3270