Expected Value: Is This Game Worth Playing?
Problem
A game costs $5 to play. You win $20 with probability 0.2 and $0 otherwise. Compute E(X) = Σ xᵢ pᵢ and decide if it is worth playing.
Explanation
What is expected value?
The expected value is the long-run average outcome of a random process. It's what you'd average out to if you repeated the experiment infinitely many times.
Multiply each possible outcome by its probability, then add them all up.
Step-by-step: Is this game worth playing?
Setup: Pay $5 to play. Win $20 with probability 0.2, win $0 with probability 0.8.
Step 1 — List all outcomes and probabilities:
- Win $20: probability
- Win $0: probability
Step 2 — Compute expected winnings:
Step 3 — Subtract the cost:
Step 4 — Decision: On average, you lose $1 per game. The game is not worth playing.
Important: expected value ≠ any single outcome
You never actually lose exactly $1 in a single game — you either lose $5 (80% of the time) or gain $15 (20%). But averaged over many games, your per-game loss approaches $1.
After 1000 games: expected total loss $1000.
When is a game "fair"?
A game is fair when — neither player has an advantage. Casinos always design games with for the player (the "house edge").
Try it in the visualization
Adjust the win amount, probability, and cost. The expected value updates. Simulate 1000 games to watch cumulative profit/loss converge to — confirming the theoretical prediction.
Interactive Visualization
Parameters
Got your own math or physics problem?
Turn any problem into an interactive visualization like this one — powered by AI, generated in seconds. Free to try, no credit card required.