How to calculate expected value
- List every possible outcome x and its probability P(x). The probabilities must add up to 1.
- Multiply each outcome by its probability.
- Add the products.
Example: a raffle ticket costs $5. There is a 1 in 1,000 chance of winning $2,000. Net outcomes are +$1,995 (P = 0.001) and −$5 (P = 0.999), so E(X) = 1,995 × 0.001 − 5 × 0.999 = 1.995 − 4.995 = −$3.00 per ticket.
What expected value does (and doesn’t) mean
E(X) is an average over many repetitions, not a prediction for one. A fair die has E(X) = 3.5, which you can never roll. A negative expected value for a bet means you lose on average in the long run, even though individual plays can win. For repeated yes/no trials, the binomial calculator gives E(X) = np directly.
Frequently asked questions
What is the expected value of rolling a die?
3.5: (1 + 2 + 3 + 4 + 5 + 6) × 1/6 = 21 ÷ 6.
Can expected value be negative?
Yes, whenever outcomes are losses on average, as with most lottery and casino games.
How is expected value different from a weighted average?
It is a weighted average whose weights are probabilities that add up to 1.