Expectation of a random variable
Expectation is the long-run mean. More likely values receive more weight in that mean.
Expectation is a weighted centre
x = 0
p = 0.1
x = 1
p = 0.3
x = 2
p = 0.4
x = 3
p = 0.2
0(0.1) + 1(0.3) + 2(0.4) + 3(0.2) = 1.7
Multiply each value by its probability
Symbols
- = one possible value of X (context unit)
- = probability of that value (none)
- = expectation or long-run mean (same as X)
Here , so the same formula can be written as .
In many repetitions, a value with probability occurs about times out of . That is why the mean uses probability weights.
Worked example
A four-value distribution
| x | P(X = x) |
|---|---|
| 0 | 0.1 |
| 1 | 0.3 |
| 2 | 0.4 |
| 3 | 0.2 |
| x | 0 | 1 | 2 | 3 |
|---|---|---|---|---|
| P(X = x) | 0.1 | 0.3 | 0.4 | 0.2 |
Common mistake
Expectation predicts an average, not the next result
- need not be a possible value. A long-run average of 1.7 is possible even when each result is an integer.
- It has the same units as the random variable.
- Across repetitions of the same model, the expected total is .
Worked example
Expected total over 200 games
If the expected score in one game is 1.7, then
Key idea
Two unknown probabilities need two equations
The total gives one equation. A stated expectation can give the second.
Worked example
Use the total and E(X) together
For , the probabilities are and . (9709/52/O/N/23 Q1)
- Total: , so .
- Expectation: , so .
- Subtract, then substitute back.
Examiner note
has probabilities 0.2, 0.5 and 0.3. Find and the expected total over 40 repetitions.
Show worked answer
.
