9  Variance and Standard Deviation

Example 9.1 We’ll motivate the calculation of variance by considering a small example. Say we have data on living area \(X\), measure in thousands of square feet, for a small sample of 10 houses.

repetition X Deviation from mean Squared deviation
1 1.12
2 1.05
3 1.67
4 1.48
5 0.43
6 2.50
7 1.71
8 1.88
9 0.85
10 1.90
Sum
Average
  1. Compute the average of the \(X\) values.
  2. Compute the deviation from the mean for each \(X\) value.
  3. Compute the squared deviations.
  4. Compute the average squared deviation. This is called the variance. What are the measurement units?
  5. Compute the square root of the variance. This is called the standard deviation. What are the measurement units?




Example 9.2 An American roulette wheel has 18 black spaces, 18 red spaces, and 2 green spaces, all the same size and each with a different number on it. Xavier bets $1 on black. If the wheel lands on black, Xavier wins his bet back plus an additional $1; otherwise he loses the money he bet. Let \(X\) be Xavier’s net winnings (net of the initial bet of $1.)

  1. Find the distribution of \(X\).




  2. Compute \(\text{E}(X)\).




  3. Interpret \(\text{E}(X)\) in context.




  4. An expected profit for the casino of 5 cents per $1 bet seems small. Explain how casinos can turn such a small profit into billions of dollars.




  5. Compute \(\text{Var}(X)\).




  6. Compute and interpret \(\text{SD}(X)\).




Example 9.3 Continuing with roulette, Yasmin bets $1 on number 7. If the wheel lands on 7, Yasmin wins her bet back plus an additional $35; otherwise she loses the money she bet. Let \(Y\) be Yasmin’s net winnings (net of the initial bet of $1.)

  1. Find the distribution of \(Y\).




  2. Compute \(\text{E}(Y)\).




  3. How do the expected values of the two $1 bets—bet on black versus bet on 7—compare? Does that mean that the two $1 bets—bet on black versus bet on 7—are identical? If not, explain why not.




  4. Before doing any calculations, determine if \(\text{SD}(Y)\) is greater than, less than, or equal to \(\text{SD}(X)\). Explain.




  5. Compute \(\text{Var}(Y)\).




  6. Compute and interpret \(\text{SD}(Y)\).




Example 9.4 The SAT and ACT are standardized tests; scores range from 200 to 1600 for the SAT and from 1 to 36 for the ACT. SAT scores have, approximately, a symmetric bell-shaped distribution with a mean of 1050 and a standard deviation of 200. ACT scores have, approximately, a symmetric bell-shaped distribution with a mean of 21 and a standard deviation of 5.5. Troy’s score on the SAT is 1500. Abed’s score on the ACT is 31. Who scored relatively better on their test?

  1. Compute and interpret the standardized value for Troy’s SAT score.




  2. Compute and interpret the standardized value for Abed’s ACT score.




  3. Who scored relatively better on their test?




9.1 Exercises

Exercise 9.1 The plots in Figure 9.1 summarize hypothetical distributions of quiz scores in six classes. All plots are on the same scale. Each quiz score is a whole number between 0 and 10 inclusive.

Figure 9.1: A few discrete distributions.
  1. Donny Dont says that C represents the smallest SD, since there is no variability in the heights of the bars. Do you agree that C represents “no variability”? Explain.




  2. What is the smallest possible value the SD of quiz scores could be? What would need to be true about the distribution for this to happen? (This scenario might not be represented by one of the plots.)




  3. Without doing any calculations, arrange the classes in order based on their SDs from smallest to largest.





  4. In one of the classes, the SD of quiz scores is 5. Which one? Why?




  5. Is the SD in F greater than, less than, or equal to 1? Why?




  6. Without doing any calculations, provide a ballpark estimate of SD in each case.




  7. The standard deviation in plot E is about 1.15. Suppose that the scores are curved by adding 2 points to every score. What is the standard deviation and variance of the revised scores?




  8. The standard deviation in plot E is about 1.15. Suppose that the scores are curved by multiplying every score by 2. What is the standard deviation and variance of the revised scores?




  • Variance and linear rescaling: If \(X\) is a random variable and \(a, b\) are non-random constants then \[\begin{align*} \text{SD}(aX + b) & = |a|\text{SD}(X)\\ \text{Var}(aX + b) & = a^2\text{Var}(X) \end{align*}\]

Exercise 9.2 Recall the matching problem from Example 6.3, Exercise 7.3, and Exercise 8.2 with a general \(n\) and let \(X\) be the number of matches.

  1. Compute and interpret \(\text{Var}(X)\) and \(\text{SD}(X)\) when \(n=3\).




  2. Compute and interpret \(\text{Var}(X)\) and \(\text{SD}(X)\) for a general \(n\).




Exercise 9.3 Suppose that \(X\) has a Geometric(\(p\)) distribution.

  1. Without doing any computations, determine \(\text{Var}(X)\) if \(p=1\).




  2. As \(p\) decreases, does \(\text{Var}(X)\) increase or decrease? Why?




  • If \(X\) has a Geometric distribution with parameter \(p\) then \(\text{Var}(X) = (1-p)/p^2\).