Expected Value: Fundamentals
The weighted average of a random variable's outcomes, and how to compute it for discrete and continuous variables.
1. The idea
The expected value of a random variable is its probability-weighted average outcome. For a discrete variable it is ; for a continuous variable with density , it is .
is not a prediction of any single outcome — it is the long-run average if you could repeat the experiment many times. A fair die shows , a value the die can never actually land on.
Expectation extends to functions of : or . This is the law of the unconscious statistician — you do not need the distribution of itself, only that of .
2. Why it matters
Every pricing, sizing, and risk question in a quant interview reduces to computing an expectation. Fluency with the definition lets you set up the right sum or integral instead of guessing.
3. Core mathematics
Discrete expectation
Continuous expectation
Function of a random variable
Law of the unconscious statistician.
Nonnegativity
4. How to recognize it
Think of this when…
- Question asks for an 'average', 'expected', or 'fair price' quantity
- A payoff or reward is defined outcome by outcome
- You are given a pmf or pdf explicitly
- You need or another moment, not just
5. Worked example
Worked example
A fair six-sided die is rolled once. Find and .
- 1
Each face has probability .
- 2
Sum times its probability.
- 3
For , sum times its probability.
- Answer: ,
6. Common mistakes
- Confusing with the most likely outcome (the mode)
- Forgetting that can be a value never actually takes
- Computing by plugging instead of averaging over the distribution — true only when is linear
- Dropping terms with probability zero contribution instead of confirming they are truly zero
7. Quick check
A biased coin shows heads with probability 0.3, paying $10 on heads and $0 on tails. What is ?
For uniform on , what is ?
8. Practice
15 QuantSolve questions use this concept.
Practice this concept9. Related methods
Create a free account to save lesson progress.
Recommended next lessonLinearity of Expectation →