Expected Value and Standard Deviation
The expected value is what a random variable averages out to if you repeat the experiment over and over: every value weighted by how likely it is. The standard deviation tells you how far a single outcome typically lands from that average.
What the symbols mean
- Mean
The long-run average value.
- Expected value
Another name for the mean of a random variable.
What the symbols mean
- Variance
The probability-weighted average squared distance from the mean; σ is its square root.
Explanation
The expected value is simply the long-run average of a random variable: what you'd get per try, on average, over thousands of tries. The formula is short: each value , times (how often it comes up), all added together. The variance formula has more symbols but the same structure: (how far each value is from the average, squared), weighted by and added up. It's exactly the standard deviation from descriptive statistics, with probabilities playing the role of "how many times each value appeared."
Why weight by probability? Think about rolling a die 600 times. You'd expect about 100 of each face, so the total is about , and the average per roll is that total over 600. Dividing each 100 by 600 gives , the probability. So is just the ordinary average of a very long run, written with probabilities instead of counts.
Expected value as a balance point. Draw the distribution as bars: is where it would balance on a fulcrum, just like the mean of a data set.
Fair games have expected net gain 0. Casinos and insurers choose prices so that your expected gain is negative and theirs is positive; the law of large numbers then guarantees their profit over many bets.
A common mistake. The word "expected" makes it tempting to think it's the value you should expect to see. It needn't even be possible. A die's expected value is , though no roll gives . It's a long-run average, not a prediction for one try.
See it
Worked examples
takes 0, 1, 2, 3 with probabilities 0.1, 0.3, 0.4, 0.2. Find and .
- 1
Weight each value by its probability: .
Practice
Type your answer and check it. Solve them all to complete the lesson.
takes 0, 1, 2, 3 with probabilities 0.1, 0.3, 0.4, 0.2. Find .
Find the standard deviation of that .
Find the expected value of one roll of a fair die.
A $2 ticket wins $100 with probability . Find the expected net gain per ticket.
For a fair game, the expected net gain is:
An insurer sells a one-year phone policy for 120. There's a 5% chance of a 900 claim and a 10% chance of a 300 claim, and otherwise nothing. What is the expected profit per policy?
What is the expected sum of 10 fair dice?
The hardest one here. Get it, and you've got this lesson.
You turn over cards from a well-shuffled deck one at a time until the first ace appears. What is the expected position of the first ace?
Where it's used
Insurers set premiums from expected payouts, investors weigh expected returns against standard deviation (risk), and AI agents choose actions that maximize expected reward.