Expected Value
Is a $5 raffle ticket a good deal? Should you play a carnival game? The expected value answers questions like these: it’s the average result you’d get per try if you repeated an experiment many, many times. Businesses use it to set prices, and it’s the key idea behind insurance, lotteries, and games of chance.
Key ideas
Section titled “Key ideas”The formula
Section titled “The formula”The expected value of a discrete random variable is
Multiply each value by its probability, then add up the products. You’ll also see it written .
What it means
Section titled “What it means”is the long-run average. If you roll a fair die thousands of times, the average of all your rolls will be very close to .
The expected value does not have to be a value can actually take. You can never roll ; it’s an average, not a prediction for one roll.
Connection to the weighted mean
Section titled “Connection to the weighted mean”Suppose a class of students has students with no siblings, with one sibling, and with two. The mean number of siblings is a weighted mean:
The fractions , , act as weights. Expected value is the same calculation, with probabilities as the weights.
Games and fair games
Section titled “Games and fair games”For a game, let be your net gain: what you win minus what you paid to play. (A loss is a negative gain.)
- If , the game favours you in the long run.
- If , the game favours the organizer.
- If , the game is fair: on average, nobody gains.
A shortcut: expected net gain expected winnings cost to play.
Worked examples
Section titled “Worked examples”Example 1: One die
Section titled “Example 1: One die”Find the expected value of the number rolled on a fair die.
Solution. Each value has probability :
In the long run, the average roll is .
Example 2: From a distribution table
Section titled “Example 2: From a distribution table”In a town, is the number of cars owned by a randomly chosen household:
Find and explain what it means.
Solution.
On average, households in this town own cars. For example, households would have about cars in total.
Example 3: A school raffle
Section titled “Example 3: A school raffle”A school sells raffle tickets at $5 each. The prizes are one $1000 gift card, two $250 gift cards, and five $50 gift cards. Find the expected net gain for someone who buys one ticket.
Solution. Find the expected winnings first. The total prize money is dollars, spread over tickets:
Now subtract the cost of the ticket:
On average, each ticket loses about $2.81. That’s fine for a fundraiser: the school expects to raise dollars, which is . ✓
Example 4: Is the carnival game fair?
Section titled “Example 4: Is the carnival game fair?”A carnival game costs $2 to play. You roll two dice. A sum of or wins $20, a sum of wins $5, and anything else wins nothing. Is the game fair? What price would make it fair?
Solution. From the two-dice distribution, and .
The game isn’t fair: players lose about cents per game on average. It would be fair if the price equalled the expected winnings: dollars, or about $1.94.
Common mistakes
Section titled “Common mistakes”Forgetting to subtract the cost. Expected winnings and expected net gain are different. In Example 3, the ticket price must come off: , not just .
Counting the cost twice. If you use net values in the table (like for the top prize and for losing), don’t subtract the $5 again at the end. Use one method or the other.
Dividing by the number of values. is not the plain average of the values unless they’re equally likely. Use the probabilities as weights.
Expecting E(X) to be a possible outcome. An expected value of or is a long-run average. It tells you nothing certain about a single trial.
Leaving out a value with zero payoff. It contributes to the sum, but its probability still matters: the probabilities must add to . Check this before you compute.
Practice
Section titled “Practice”1. (Warm-up) Find .
Solution
2. (Warm-up) In a coin game, heads wins you $3 and tails loses you $1. Find your expected gain per game.
Solution
You expect to gain $1 per game on average, so the game favours you.
3. (Warm-up) A spinner has equal sections numbered to . Find the expected value of the number spun.
Solution
4. (Core) A company sells a one-year phone protection plan for $60. From past data, of customers make a claim, and each claim costs the company $900. Find the company’s expected profit per plan.
Solution
Expected payout per plan: dollars.
Expected profit per plan: dollars. The company expects to make $24 per plan in the long run.
5. (Core) A scratch ticket costs $2. It has a chance of winning $500, a chance of winning $20, and otherwise wins nothing. Find the expected net gain per ticket.
Solution
On average, a buyer loses $1.30 per ticket.
6. (Core) Three coins are flipped, and is the number of heads. Find .
Solution
The distribution is , , , .
7. (Core) This distribution has . Find and .
Solution
The probabilities add to : , so .
The expected value: , so .
Subtracting the first equation from the second: , so .
Check: . ✓
8. (Challenge) You roll a die until you get a , but stop after rolls no matter what. On average, how many rolls do you make? (The distribution is , , ; see discrete random variables.)
Solution
On average, you make about rolls.
9. (Challenge) A multiple-choice test gives points for a correct answer and point for a wrong answer. Each question has choices.
- (a) Find the expected score from a random guess.
- (b) You can rule out one choice for certain and guess among the rest. Should you guess? Explain using expected value.
Solution
(a) . A blind guess is a fair game: on average it neither helps nor hurts.
(b) With choices left: . The expected score is positive, so guessing helps in the long run.