Expected value is the average result you’d get if you repeated something many, many times. It’s how casinos stay in business, how insurance companies set prices, and how you can tell whether a game at a school fair is a good deal.
The formula
Multiply each outcome by its probability, then add:
E(X) = x₁p₁ + x₂p₂ + x₃p₃ + …
Example What’s the expected value of one roll of a fair die?
- Each face has probability 1/6.
- E = 1(1/6) + 2(1/6) + 3(1/6) + 4(1/6) + 5(1/6) + 6(1/6) = 21/6 = 3.5
You can never roll a 3.5. The expected value doesn’t have to be a possible result. It’s what the results average out to over many rolls.
From a probability table
A soccer team’s goals per game follow this table:
| Goals | 0 | 1 | 2 | 3 | 4 |
|---|---|---|---|---|---|
| Probability | 0.20 | 0.35 | 0.25 | 0.15 | 0.05 |
Example Find the team’s expected number of goals per game.
- Check that the probabilities add to 1: 0.20 + 0.35 + 0.25 + 0.15 + 0.05 = 1. Good.
- E = 0(0.20) + 1(0.35) + 2(0.25) + 3(0.15) + 4(0.05)
- = 0 + 0.35 + 0.50 + 0.45 + 0.20 = 1.5 goals per game.
If a table has a missing probability, find it first by subtracting the others from 1.
Games: count your net winnings
For any game that costs money, use what you actually gain or lose on each outcome, after paying to play.
Example It costs $2 to roll a die. If you roll a 6, you get $10. Should you play?
- Roll a 6: you get $10 but paid $2, so you’re up $8. Probability 1/6.
- Anything else: you’re down $2. Probability 5/6.
- E = 8(1/6) + (−2)(5/6) = 8/6 − 10/6 = −2/6 ≈ −$0.33
- On average you lose about 33 cents a game. Over 30 games, expect to be down about $10.
A negative expected value doesn’t mean you’ll lose every time. Plenty of people win once. It means that the longer you play, the more surely you’ll end up behind.
Example A raffle sells 500 tickets at $5 each. There’s one $1,000 prize and two $250 prizes. What’s the expected value of one ticket?
- Total prize money: $1,000 + $500 = $1,500.
- Spread over 500 tickets, each ticket gets back $3 on average.
- The ticket costs $5, so E = 3 − 5 = −$2.
That shortcut works for any raffle: total prizes divided by tickets, minus the price. Charity raffles are supposed to have a negative expected value. That’s where the money for the charity comes from.
Fair games and fair prices
A game is fair if its expected value is 0. To find a fair price, set the expected payout equal to the cost.
Example A game pays $10 if you roll a 6. What’s a fair price to play?
- Expected payout: 10 × 1/6 ≈ $1.67.
- A fair price is about $1.67. Anything more favors whoever runs the game.
Insurance and warranties
Example A phone costs $800 to replace. There’s a 4% chance per year you’ll lose or break it. A protection plan costs $60 a year. Is the plan worth it on average?
- Expected loss without the plan: 0.04 × $800 = $32 a year.
- The plan costs $60, more than the $32 expected loss.
- On average, the plan costs you $28 a year. That’s the company’s profit margin.
That doesn’t automatically make insurance a bad choice. Expected value ignores how much one bad outcome would hurt. If losing $800 at once would be a disaster for you, paying a predictable $60 can be worth it. For an amount you could cover without much pain, skipping the plan comes out ahead in the long run.
Guessing on a test
Some tests take points off for wrong answers. Expected value tells you when guessing helps.
Example A test gives +1 for a right answer and −¼ for a wrong one. Each question has 5 choices. Should you guess?
- Blind guess: E = 1(1/5) + (−¼)(4/5) = 0.2 − 0.2 = 0. No gain, no loss.
- If you can rule out one choice: E = 1(1/4) + (−¼)(3/4) = 0.25 − 0.1875 = 0.0625. Now guessing helps.
The SAT and ACT don’t take off points for wrong answers anymore, so there, a blind guess always beats a blank.
Shortcuts
- Expected values add. The expected sum of two dice is 3.5 + 3.5 = 7.
- Repeated yes/no trials: with n tries and a chance p of success each time, the expected number of successes is np. A 70% free-throw shooter taking 20 shots expects 14 makes.
Practice
A spinner has four equal sections: 1, 2, 5 and 10. Find the expected value.
Show answer
(1 + 2 + 5 + 10)/4 = 4.5.
It costs $1 to flip two coins. You win $3 if both land heads. Find the expected value.
Show answer
Net +$2 with probability 1/4, −$1 with probability 3/4. E = 0.5 − 0.75 = −$0.25.
P(0) = 0.1, P(1) = 0.3, P(3) = 0.2, and the only other outcome is 2. Find P(2) and the expected value.
Show answer
P(2) = 0.4. E = 0 + 0.3 + 0.8 + 0.6 = 1.7.
You guess on all 50 questions of a quiz with 4 choices each. How many do you expect to get right?
Show answer
50 × 1/4 = 12.5.
A game pays $20 if you roll doubles with two dice. What’s a fair price?
Show answer
P(doubles) = 6/36 = 1/6. Fair price = 20/6 ≈ $3.33.
A raffle sells 1,000 tickets at $2 each for one $500 prize. Find the expected value of a ticket.
Show answer
500/1,000 − 2 = −$1.50.
A player makes 40% of three-point shots. In 15 attempts, how many makes should they expect?
Show answer
15 × 0.4 = 6.