AP Statistics · Topic 2.9 · Reading guide, about 5 min

Expected value and standard deviation of a discrete model

Compute and interpret the expected value and standard deviation of a discrete random variable, with a full worked example about a game.

In one minute

Once you have a probability model, two numbers summarize it: the expected value, which is the long-run average, and the standard deviation, which is the typical long-run distance from that average. Together they describe the center and spread of the random variable.

This topic is about computing both from a table and, just as important, saying what they mean in the context of the situation, with units.

Key terms

Parameter
A fixed number that describes a population or a probability distribution, such as μX\mu_X or σX\sigma_X.
Expected value
The long-run average of a random variable: E(X)=μX=∑xiP(xi)E(X) = \mu_X = \sum x_i P(x_i).
Mean of XX
Another name for the expected value, written μX\mu_X. It is a weighted average with probabilities as weights.
Variance
σX2=∑(xi−μX)2P(xi)\sigma_X^2 = \sum (x_i - \mu_X)^2 P(x_i), the long-run average squared distance from the mean.
Standard deviation
σX=∑(xi−μX)2P(xi)\sigma_X = \sqrt{\sum (x_i - \mu_X)^2 P(x_i)}, the typical distance of XX from μX\mu_X in the same units as XX.
Weighted average
An average in which each value counts in proportion to its probability, so likelier values pull the mean toward them.
Long run
Many repetitions of the chance process. Expected value describes what happens over the long run, not one trial.
Fair game
A game whose expected net gain is 0, so players neither win nor lose on average in the long run.

Expected value as a long-run average

The expected value is found by multiplying each value by its probability and adding: μX=∑xiP(xi)\mu_X = \sum x_i P(x_i). Each value is weighted by how often it occurs, so its contribution to the mean is xiP(xi)x_i P(x_i). A rare value adds little unless it is very large, and a very large value can pull the mean noticeably even when it is rare.

The meaning is a long-run one. If you repeat the process many times, the average of all the results gets close to μX\mu_X. It does not predict any single trial, and it need not be a possible outcome. A fair die has μ=3.5\mu = 3.5, a value that can never be rolled.

For a game, let XX be the net gain. A negative expected value means the player loses on average. Over 1,000 plays with μ=−0.4\mu = -0.4 dollars per play, the expected total is about a 400-dollar loss, although any actual run will be somewhat above or below that.

Standard deviation and variance

Variance measures how far values typically fall from μX\mu_X in squared units. For each value, find the deviation xi−μXx_i - \mu_X, square it, multiply by P(xi)P(x_i), and add them up. The standard deviation is the square root, which returns to the units of XX.

A small σX\sigma_X means results cluster near the mean from play to play. A large σX\sigma_X means results are spread out, even when two models share the same mean. Two games can both have a fair expected value, yet one is much riskier.

Keep notation straight. These are parameters of the model, written with Greek letters μX\mu_X and σX\sigma_X, not sample statistics from data. The course asks you to compute them for a single random variable; combining or transforming random variables is not part of this course.

Invented game: net gain XX in dollars for one play
Net gain xxP(x)P(x)x⋅P(x)x \cdot P(x)(x−μ)2P(x)(x - \mu)^2 P(x)
-20.60-1.201.536
10.300.300.588
50.100.502.916
Total1.00μ=−0.40\mu = -0.40σ2=5.04\sigma^2 = 5.04

Worked example

A school carnival game costs 2 dollars to play. With probability 0.60 you win nothing (net gain −2-2), with probability 0.30 you get 3 dollars back (net gain +1+1), and with probability 0.10 you get 7 dollars back (net gain +5+5). The probabilities add to 1, so the model is valid. Find and interpret μX\mu_X and σX\sigma_X.

Expected value: μX=(−2)(0.60)+(1)(0.30)+(5)(0.10)=−1.20+0.30+0.50=−0.40\mu_X = (-2)(0.60) + (1)(0.30) + (5)(0.10) = -1.20 + 0.30 + 0.50 = -0.40 dollars.

Variance: the deviations are −2−(−0.40)=−1.60-2 - (-0.40) = -1.60, 1−(−0.40)=1.401 - (-0.40) = 1.40 and 5−(−0.40)=5.405 - (-0.40) = 5.40. Then σX2=(1.60)2(0.60)+(1.40)2(0.30)+(5.40)2(0.10)=2.56(0.60)+1.96(0.30)+29.16(0.10)=1.536+0.588+2.916=5.040\sigma_X^2 = (1.60)^2(0.60) + (1.40)^2(0.30) + (5.40)^2(0.10) = 2.56(0.60) + 1.96(0.30) + 29.16(0.10) = 1.536 + 0.588 + 2.916 = 5.040.

Standard deviation: σX=5.040=2.2450\sigma_X = \sqrt{5.040} = 2.2450 dollars, rounded to four decimals.

Interpretation. In the long run, a player's net gain averages about −0.40-0.40 dollars per play, that is, a loss of 40 cents. The net gain on a single play typically differs from that average by about 2.25 dollars. Notice that −0.40-0.40 is not a possible result of any single play, which is fine because the expected value is a long-run average.

How it connects

  • Back to 2.8: the probability table you built is the input to every calculation here.
  • Back to 1.7: the mean and standard deviation of data measure center and spread of a sample; here the same ideas describe a model, using probabilities as weights.
  • Forward to 2.10: a binomial model has shortcut formulas for its mean and standard deviation.

Common mistakes

  • Averaging the values without weights. (−2+1+5)/3(-2 + 1 + 5)/3 ignores probabilities. Multiply each value by its probability first.
  • Forgetting to square the deviation or to take the root. Variance uses squared deviations; the final standard deviation needs the square root.
  • Saying the expected value will happen next. It is a long-run average, not a prediction for the next trial, and it may not be a possible value.
  • Leaving out units or context. State dollars, orders or other units, and say what the number means for the situation.

How it shows up on the exam

  • A table of values and probabilities, with a request to compute the expected value and standard deviation and to interpret each in context.
  • A game or decision scenario in which you use the expected value to decide whether the game is fair or who benefits.

Check yourself

  1. In the carnival game, the +5 outcome is less likely than the +1 outcome. Why does it still add more to the expected value?
  2. What does an expected value of 2.6 mean in a situation that only ever produces whole numbers?
  3. Two games both have μ=0\mu = 0 but different standard deviations. How would play differ?
  4. How do you get from a variance of 5.04 back to units of dollars?

Practice this topic. AP Practice questions on exactly what this lesson covers, with an explanation for every answer.