🎲 Probability Marsh · Probability
Expected Value
Work out what a chance situation is worth in the long run by weighting every payout by how likely it is.
In short
- Expected value weights every payout by its probability and adds them: E = p1 x v1 + p2 x v2 + ...
- It is a long-run average, not a prediction of any single play, and it can be a value no single play ever produces.
- A game is fair when expected winnings equal the stake; the stake is certain, so it is subtracted in full.
- Expected values add over repeated plays, so the long-run total is just n times the per-play net.
A weighted average
Expected value answers the question "what is this chance situation worth, per go, in the long run?"
It is an average of the payouts, but not the plain average — the likely payouts have to count for more than the rare ones. So every payout is weighted by its own probability, and the weighted payouts are added up:
E = p1 x v1 + p2 x v2 + p3 x v3 + ...
A game paying 10 gold with probability 1/5, 8 gold with probability 1/10, and nothing otherwise:
E = 1/5 x 10 + 1/10 x 8 + 7/10 x 0 = 2 + 0.8 + 0 = 2.80 gold.
The plain average of 10, 8 and 0 is 6, which is more than twice as much — because it pretends the 70% chance of nothing is no more likely than the 20% chance of ten gold.
Because the probabilities add to 1, the expected value always lands somewhere between the smallest payout and the largest.
What "expected" does not mean
The expected value of a single roll of a fair die is 3.5, and no die has ever shown 3.5. Expected value is not a prediction of one play; it is the long-run average of many.
Roll a die 1000 times and the mean of the results will sit very close to 3.5. Roll it once and you will get a whole number, guaranteed not to be the expected value.
That is why expected value is a tool for deciding whether to keep doing something, not for guessing what happens next. It answers "if I did this every day for a year, where would I end up?" — and for that question it is exactly right.
Stakes and fair games
Most games cost something to play. The stake is certain, so it comes off in full:
expected net gain = expected winnings - stake
A game is fair when the expected net gain is zero: expected winnings exactly equal the stake, and over a long run neither side ends up ahead. Above zero the game favours the player; below zero it favours the stallholder.
Real stalls run at a negative expected value for the player, and that is how they stay open. A big top prize does not change this. A prize of 1000 gold that comes up once in 5000 plays contributes 1000/5000 = 0.20 gold to the expected value, and no more.
To find the prize that makes a game fair, set expected winnings equal to the stake and solve. If a prize turns up with probability 1/8, then to add 3 gold to the expected value it has to be worth 3 x 8 = 24 gold.
The long run
Expected values add up over repeated plays, so scaling to many plays is a single multiplication:
expected total over n plays = n x (expected net gain per play)
If each play has an expected net of -0.40 gold, then 200 plays have an expected net of -80 gold. That figure is far more trustworthy than the per-play one, because the wobble grows more slowly than the total does — this is the same law of large numbers that steadies an experimental probability.
Do one play properly first. Everything about the game is identical every time, so the per-play figure is all the work there is; the rest is multiplication.
Worked examples
Example 1
A stall charges 3 gold a play. It pays 12 gold with probability 1/10, 5 gold with probability 1/5, and nothing otherwise. What is the expected net gain per play?
- First the probability of nothing: 1 - 1/10 - 1/5 = 1 - 0.1 - 0.2 = 0.7.
- Expected winnings = 1/10 x 12 + 1/5 x 5 + 0.7 x 0 = 1.2 + 1 + 0 = 2.20 gold.
- The stake is paid on every play, so subtract it in full: 2.20 - 3 = -0.80 gold.
- The expected net gain is -0.80 gold per play — a loss of 80 copper each time, on average.
- The game is in the stallholder's favour. Over 100 plays a player should expect to be about 80 gold down.
Example 2
A game pays 20 gold with probability 1/4 and an unknown prize p with probability 1/4; otherwise it pays nothing. It is meant to be fair at a stake of 9 gold. What should p be?
- Fair means the expected winnings equal the stake, so E = 9.
- Write E in terms of p: E = 1/4 x 20 + 1/4 x p + 1/2 x 0 = 5 + p/4.
- Set that equal to the stake: 5 + p/4 = 9.
- p/4 = 4, so p = 16 gold.
- Check: 1/4 x 20 + 1/4 x 16 = 5 + 4 = 9, which is exactly the stake. The game is fair.
Practice problems, with solutions
Three problems of increasing difficulty, each with the full working. In the game these are generated fresh every time; these three are fixed so this page always shows the same ones.
Problem 1
Difficulty 1 of 5The Dice Landing stall pays out according to the table. What is the expected value of one play, in gold?
Answer: 4 gold
- a reed: probability 1/5, pays 20 gold, contributes 1/5 x 20 = 4 gold.
- a frog: probability 4/5, pays 0 gold, contributes 4/5 x 0 = 0 gold.
- Expected value = (1 x 20 + 4 x 0) / 5 = 20/5
- = 4 gold per play.
- That is a long-run average, not a prize anyone actually wins.
Problem 2
Difficulty 3 of 5Mei pays 18 gold to play the reed-cup game once, and the prize table is shown. What is the expected NET gain per play, in gold? (A loss is negative.)
Answer: -0.3 gold
- Expected winnings = (1 x 14 + 17 x 20 + 2 x 0) / 20 = 17.7 gold.
- The stake of 18 gold is paid on every play, so it is subtracted in full.
- Expected net gain = 17.7 - 18 = -0.3 gold per play.
- A negative expected value means the game costs money in the long run.
Problem 3
Difficulty 4 of 5The Dice Landing stall charges 7.5 gold a play and pays out as the table shows. In the long run, is this game in the player's favour, fair, or in the stallholder's favour?
- in the player’s favour
- fair — neither side gains in the long run
- in the stallholder’s favour
Answer: A. in the player’s favour
- Expected winnings = (9 x 15 + 1 x 25 + 2 x 5 + 8 x 0) / 20 = 8.5 gold.
- Stake = 7.5 gold per play.
- Expected net = 8.5 - 7.5 = 1 gold.
- Since that is positive, the game is in the player’s favour.
Common mistakes
- Taking the plain average of the payouts instead of weighting each one by its probability.
- Forgetting the stake and reporting the expected winnings as the expected gain.
- Judging a game by the size of its top prize rather than by the prize weighted with how rarely it comes up.
- Adding the weighted payouts but never dividing by the total number of equally likely results.
- Expecting a single play to produce the expected value, and concluding the calculation was wrong when it does not.
What you should be able to do
- Compute the expected value of a payout table.
- Decide whether a game is fair by comparing its expected value with its stake.
- Predict the long-run total over many repetitions of the same game.
- Find the payout that would make a given game fair.
Where this fits in the curriculum
Common Core
- HSS-MD.A.2
High school — Calculate the expected value of a random variable and interpret it as the mean of the probability distribution.
This is a (+) standard in the Common Core — intended for students going beyond the college-and-career-ready core — which is why it appears in some courses and not others.