Expectation and variance of discrete random variables
Studying this course? Keep your progress in one place.
Key facts
- : the long-run average, weighting each value by its probability.
- with ; variance is never negative.
- and : does not affect the spread.
- For unknown probabilities use and the given mean or variance as simultaneous equations.
- The expected net gain of a game is ; it is fair if .
The mean, E(X)
The expectation is the long-run average value: each value weighted by its probability.
The expectation (mean) of a discrete random variable is the long-run average value, found by weighting each value by its probability.
need not be a possible value of . If takes values symmetrically about a centre, the mean is at the centre.
- Expectation
Worked example
, , , . Find .
- 1
Multiply each value by its probability: , , , .
- 2
Add the results.
takes the values 2 and 4 with probability 0.5 each. What is ?
E(X²) and the variance
Find by squaring each value before weighting, then subtract .
: square each value first, then weight by its probability.
The variance measures spread: . The standard deviation is .
A table of , , and keeps this tidy. For the distribution below, the totals are and , so .
If you are given and , then .
- xP
- x²P
- Variance
| x = 0 | x = 1 | x = 2 | x = 3 | |
|---|---|---|---|---|
| P(X = x) | 0.2 | 0.3 | 0.4 | 0.1 |
| xP | 0 | 0.3 | 0.8 | 0.3 |
| x²P | 0 | 0.3 | 1.6 | 0.9 |
x = 0
- P(X = x):
- 0.2
- xP:
- 0
- x²P:
- 0
x = 1
- P(X = x):
- 0.3
- xP:
- 0.3
- x²P:
- 0.3
x = 2
- P(X = x):
- 0.4
- xP:
- 0.8
- x²P:
- 1.6
x = 3
- P(X = x):
- 0.1
- xP:
- 0.3
- x²P:
- 0.9
and . What is ?
Linear transformations
The mean is shifted and scaled like the values; the variance is multiplied by and ignores the constant .
For constants and , the mean is shifted and scaled in the same way as the values.
The constant has no effect on the spread, because adding a constant moves every value by the same amount.
The multiplier is squared in the variance. For a negative multiplier, for example : .
- W
- V = 3W − 4
- Mean
- Variance
Worked example
, and . Find and .
- 1
.
- 2
. The does not affect the variance.
. What is ?
Finding unknown probabilities
Write one equation from and another from the given mean or variance, then solve simultaneously.
Often the distribution contains unknowns. Write one equation from and another from a given mean or variance, then solve the simultaneous equations.
Check your constants by confirming the probabilities add to 1 and the mean agrees with the given value.
- 1
Use
first equation
- 2
Use the given mean or variance
second equation
- 3
Solve simultaneously
for the unknowns
- 4
Check
probabilities add to 1 and mean agrees
Worked example
, , , with . Find , and .
- 1
From : .
- 2
From : , so .
- 3
Solving the simultaneous equations gives and .
- 4
.
- 5
.
, , . What is ?
Interpreting expectation in context
The expected net gain of a game is ; it is fair if . It is a long-run average, not a single result.
In a game with prize and an entry fee , the expected net gain is . The game is fair if .
A positive expected gain favours the player; a negative one favours the organiser.
Remember that is a long-run average: any single game gives only the prizes available. Say 'on average' or 'in the long run' when interpreting an expectation.
- Expected net gain
- Fair game
Worked example
A die roll pays 8 pounds for a 6, 3 pounds for a 4 or 5, and nothing otherwise. The fee is 2 pounds. Find the expected net gain.
- 1
.
- 2
Net gain .
A game costs 5 pounds and has . What is it called?
Try an exam question
The discrete random variable has , , and . Find , and .
[5 marks]
- [1].
- [1].
- [1].
- [1].
- [1].
That's the notes covered.
Carry on to the next subtopic.
Try a question
Find .
1 mark, marked against the mark scheme
Find .
1 mark, marked against the mark scheme