Statistics & Probability · Grade 11
Random Variables and Expected Value
Quick answer
A random variable assigns a number to every outcome of a chance process, such as the number of heads in three coin flips. Listing each value with its probability gives a probability distribution, which can be graphed like any data set. Its mean, the expected value, is found by weighting each value by its probability, and it is the average the results settle toward over many repetitions.
What you'll learn
- Define a random variable and build its probability distribution
- Calculate an expected value and interpret it as a long-run mean
- Build distributions from theoretical and from empirical probabilities
A number for every outcome
Flip three coins. The outcomes are sequences like HHT or TTT, eight of them, all equally likely. Often the question is not which sequence came up but a number built from it: how many heads?
A random variable is that kind of rule. It assigns a number to every outcome of a chance process. Here is the number of heads:
| Outcomes | |
|---|---|
| TTT | |
| HTT, THT, TTH | |
| HHT, HTH, THH | |
| HHH |
The probability distribution
List each value of with its probability and the result is a probability distribution:
The probabilities add to , because every outcome lands on exactly one value.
A distribution can be graphed the same way as data. Take a five-question multiple-choice quiz with four choices per question, answered by pure guessing. There are equally likely ways to fill in the answers, and each has some number correct:
Each bar divided by is a probability. Getting exactly one right is the most likely result, at , and a perfect paper turns up once in guesses.
Those counts come from combinations: correct answers can fall on sets of questions, and each of the other questions has wrong choices, so the count is .
Expected value
The expected value of a random variable weights each value by its probability and adds:
For three coins:
Why the expected value is a long-run average
No one ever flips three coins and gets heads. So what does mean?
Repeat the three flips many times. In the long run, each value turns up in about the share of trials its probability predicts: no heads about of the time, one head about of the time, and so on. The average of all the results is then about
which is the expected value. The expected value is the mean of the distribution: the number the average of many results settles toward. It is computed exactly the way a mean is computed from a frequency table, with probabilities in place of frequencies.
Expected scores under different grading
The same guessing quiz, scored three ways, gives three expected scores per question:
| Scoring | Expected points per guessed question |
|---|---|
| right, wrong | |
| right, wrong | |
| right, wrong |
With the one-third penalty, blind guessing gains nothing on average. That penalty was chosen for exactly that reason. Scoring rules are designed around expected values.
Probabilities from data
Some distributions come from observation instead of theory. Suppose a survey of households records how many televisions each one has:
| Televisions | |||||
|---|---|---|---|---|---|
| Households | |||||
| Probability |
Each probability is a count divided by . The expected number of televisions for a household chosen at random from this group is
These are empirical probabilities, and they describe the households surveyed. How well they describe a whole town depends on how the sample was chosen, which is the subject of surveys and experiments.
Worked examples
Common mistakes
Practice problems
-
For three coin flips, find , where is the number of heads.
Answer
Full solution
Three of the eight outcomes, HHT, HTH and THH, have exactly two heads.
-
Find the expected number of heads in three coin flips.
Answer
Full solution
.
-
Find the expected sum of two dice.
Answer
Full solution
Each die averages in the long run, so two dice average .
-
When guessing on all five four-choice questions, find the probability of getting at least right.
Answer
Full solution
of the answer sheets have three or more correct.
-
Find the expected total score for guessing on all five questions when a wrong answer costs point.
Answer
points
Full solution
Each question is worth on average, and .
-
From the television survey, find the probability that a randomly chosen surveyed household has at least televisions.
Answer
Full solution
.
-
A game pays points with probability , points with probability , and nothing otherwise. Find the expected payout.
Answer
points
Full solution
.
-
Build the probability distribution for the number of sixes in one roll of a die, and find its expected value.
Answer
, ; expected value .
Full solution
One roll gives either no six or one six. .
-
Explain what an expected value of correct answers means, since no one can get answers right.
Answer
It is the long-run average: over many students guessing, the average number correct settles near .
Full solution
Each guesser gets a whole number right. But across many guessers the results spread out according to the distribution, and their average approaches — the mean of the distribution.
-
For the television survey, Sam finds the expected number of televisions by averaging , , , and , getting . Find his error.
Hint
Are all five values equally common?
Answer
He weighted every value equally. Weighted by probability, the expected value is .
Full solution
Averaging the five values treats a household with televisions as equally likely as one with . In the survey, televisions was nine times as common as .
The expected value weights each value by its probability: .
Frequently asked questions
What is a random variable?
A rule that assigns a number to each outcome of a chance process. The number of heads in three coin flips is a random variable taking the values 0, 1, 2 and 3.
How do I calculate an expected value?
Multiply each value by its probability and add the results. For three coin flips, 0(1/8) + 1(3/8) + 2(3/8) + 3(1/8) = 1.5 heads.
Can the expected value be impossible to actually get?
Yes. Three coin flips never give 1.5 heads. The expected value is the long-run average of many repetitions, not a result any single one must produce.
What is an empirical probability distribution?
One whose probabilities come from observed data rather than theory, such as the share of surveyed households owning each number of televisions.
Is guessing on a multiple-choice test worth it?
It depends on the scoring. With no penalty, guessing adds points on average. With a penalty of one third of a point per wrong answer on four-choice questions, random guessing gains nothing on average.
Standards alignment
This lesson covers the following Common Core State Standards for Mathematics.
- CCSS.MATH.CONTENT.HSS.MD.A.1Using Probability to Make Decisions(+) Define a random variable for a quantity of interest by assigning a numerical value to each event in a sample space; graph the corresponding probability distribution using the same graphical displays as for data distributions.
- CCSS.MATH.CONTENT.HSS.MD.A.2Using Probability to Make Decisions(+) Calculate the expected value of a random variable; interpret it as the mean of the probability distribution.
- CCSS.MATH.CONTENT.HSS.MD.A.3Using Probability to Make Decisions(+) Develop a probability distribution for a random variable defined for a sample space in which theoretical probabilities can be calculated; find the expected value.
- CCSS.MATH.CONTENT.HSS.MD.A.4Using Probability to Make Decisions(+) Develop a probability distribution for a random variable defined for a sample space in which probabilities are assigned empirically; find the expected value.