# 6.19: Discrete Random Variables (4 of 5)

- Page ID
- 14084

Learning Objectives

- Use probability distributions for discrete and continuous random variables to estimate probabilities and identify unusual events.

## Standard Deviation for a Discrete Random Variable

The mean of a discrete random variable gives us a measure of the long-run average but it gives us no information at all about how much variability to expect. For example, earlier we found that the average cafeteria wait time at Rushmore Community College was 14 minutes. Put in terms of our random variable, this means over the long run, if we continued to keep track of wait times for students entering the cafeteria, their times would average 14 minutes. Some students would get their food in less than 14 minutes, and some would have to wait longer.

Is that all we need to know? Suppose on the one hand the average time was 14 minutes, but we knew that it was most likely that times would range from 8 to 20 minutes. Compare that to a situation where again the average time was 14 minutes, but it was most likely that times would range only from 13 to 15 minutes. That would give us a different picture of what the problem at the cafeteria might be. What we need is a measure of how much variability to expect in a random variable *X* over the long run. The standard deviation is that measure.

Just as we need both the mean and standard deviation to get a full picture of the shape of a data set, we need both the mean and standard deviation of a random variable to understand its likely long-term behavior.

In *Summarizing Data Graphically and Numerically*, we used the following formula to compute the standard deviation of a data set.

As you may recall, the most important part of this formula is the term inside the square root, which we call the *average of the squares of the deviations from the mean*.

As we will see, the formula for the standard deviation for a discrete random variable has a lot in common with this formula.

Here is the formula for the standard deviation of a discrete random variable. Note that represents the probability of *x*, where *x* is a value of the random variable *X*. And again stands for the mean of *X*.

Again, we focus on the term inside the square root:

The term here represents the deviation of each value of the random variable *X* from the mean , just as the term represents the deviation of each observation of the data set from the mean .

In both cases, we proceed to sum the squares of these deviations. In the case of a data set, we divide by *n* − 1 to find the average squared deviation. However, in the case of a discrete random variable, we again use a weighted average. Why? Because we don’t want to give undue weight to values of *X* that are unlikely to occur. So those values of *X*, even if far from the mean , will not contribute much to the standard deviation if their probability is low. On the other hand, values of *X* with large probabilities will count more in our calculation of the standard deviation of *X*.

### Example

## Cafeteria Wait Times

Let’s revisit the problem about wait times in the cafeteria at Rushmore Community College. Recall the following probability distribution.

X = Time (minutes) | 5 | 10 | 15 | 20 | 25 |

P(X) | 0.15 | 0.26 | 0.31 | 0.20 | 0.08 |

On the previous page, we found that the average wait time is 14 minutes. Now we will compute the standard deviation of wait times and think a bit about what it tells us.

We start by computing the squared deviations from the mean and weighting them by the probability. For the first value of *X*, we have

Performing the same operation on the next three values of *X* will give us

The next step of the formula is to add up the weighted square deviations from the mean, as follows:

Recall that in *Summarizing Data Graphically and Numerically* we used the standard deviation of a quantitative data set to give a range of typical values. This range of typical values was formed by blocking off an interval 1 standard deviation to the right and left of the mean. In other words, the range of typical values was . Exactly the same thing can be done in the current context of random variables.

## Contributors and Attributions

- Concepts in Statistics.
**Provided by**: Open Learning Initiative.**Located at**: http://oli.cmu.edu.**License**:*CC BY: Attribution*