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.
Homework
Section titled “Homework”Try these independently after the practice questions. Show your setup and explain your reasoning. Use exact answers where possible, and check that your answers fit the question. Homework solutions are not provided on the published site.
Foundations
Section titled “Foundations”H1. A weighted average. A random variable takes values with probabilities . Find its expected value. Must this value be a possible outcome?
H2. Uniform numbers. Choose a ticket uniformly from tickets numbered 6 to 17 inclusive. Find the expected ticket number, showing how many tickets there are.
H3. From frequencies. In a group of 20 households, 3 own no bicycles, 8 own one, 7 own two, and 2 own three. Choose a household uniformly. Make the probability distribution and find the expected number of bicycles. Interpret it for a group of 100 households with the same proportions.
H4. A fundraiser. A school sells 500 tickets at $4 each. Different tickets win one $600 prize, three $100 prizes, and ten $20 prizes; all other tickets win nothing. Find a buyer’s expected winnings and net gain for one ticket, and the school’s total proceeds after paying the prizes.
H5. Dice prizes. A game rolls two fair dice independently. Doubles pay $9, a sum of 9 pays $4, and all other results pay nothing. The entry fee is $2. Find the expected net gain and the exact entry fee that would make the game fair. Explain why the two prize events do not overlap.
H6. Repair plans. A one-year device plan costs $25. Under the model, a customer has no claim with probability 0.90, a $120 repair with probability 0.08, or a $500 replacement with probability 0.02. Find the company’s expected payout and profit per plan, ignoring other costs.
Challenge
Section titled “Challenge”H7. Missing probabilities. A variable takes values with probabilities . Its expected value is 2. Find and check that the distribution is valid.
H8. When does guessing help? A fictional quiz gives 3 points for a correct answer, loses 2 points for an incorrect answer, and gives 0 for a blank. A question has six choices and exactly one correct answer.
- (a) Find the expected score of a blind random guess.
- (b) Repeat after ruling out three choices, and after ruling out four choices.
- (c) If your probability of answering correctly is , find exactly when answering has a greater expected score than leaving it blank.
H9. A capped experiment. Flip a fair coin until the first head, but stop after four flips even if no head occurs. Find the distribution of the number of flips and its expected value. Explain why multiplying four by does not answer the question about the number of flips.
H10. Set a fair prize. A fair spinner has six equal sectors. One pays an unknown prize of $M, two pay $5 each, and three pay nothing. The entry fee is $6.
- (a) Find so that the expected net gain is zero.
- (b) At that prize, find the probabilities of a positive net gain and a negative net gain.
- (c) Explain why a fair expected value does not mean a 50% chance of gaining money.