Mean and variance of discrete distributions
Studying this course? Keep your progress in one place.
Key facts
- Mean: , the long-run average, which need not be a value can take.
- Variance: , with ; it cannot be negative.
- , and , but in general.
- Probabilities sum to : use this to find unknown constants.
- A fair game has expected profit ; a model should match the data's mean and spread.
The mean of a random variable
Weight each value by its probability and add.
A discrete random variable takes separate values with probabilities that sum to 1.
The expected value or mean is . It is the long-run average of many observations, not necessarily a value can take.
For , , : . The plain average of the values () is wrong unless all probabilities are equal.
- Expected value
, , . What is ?
The variance
Find by squaring each value before weighting, then subtract .
The variance measures spread: , where .
The standard deviation is the square root of the variance.
A variance cannot be negative; a negative answer means an arithmetic error or a forgotten square. Stopping at and quoting it as the variance is a common slip: you must subtract .
- X
- Y
- Variance
Worked example
, , . Find and the standard deviation.
- 1
From before, .
- 2
.
- 3
.
- 4
to 3 s.f.
and . What is ?
Expected value of a function
Apply to each value, then weight by the probability.
For any function , . For this is .
The special case gives .
In the example, . In general : but , and the difference is exactly the variance.
Costs, profits and penalties are often functions of a random variable, so gives the expected cost or profit. is not .
. What is ?
Finding unknown constants
Use , then check every probability lies between and .
Probabilities are often given by a formula with an unknown constant. Use to find it. Check every probability lies between and once the constant is found.
Keep fractions exact until the end; rounding early causes errors in and .
Worked example
for . Find , and .
- 1
, so .
- 2
.
- 3
.
- 4
.
for . What is ?
Expected profit and fair games
Define the profit for each outcome, weight by probability and add; the game is fair if the result is zero.
A game's profit is a function of the outcome, so is found by weighting each profit by its probability.
A game is fair if the expected profit is zero.
Define the profit variable first: payout minus cost. Do not use the payout as the value of . Interpret answers in context, with units. The variance tells you how much results vary around the average, which matters when the expected value is small.
- Profitpayout − cost
- Fair game
Worked example
A game costs £3 and pays £20 with probability 0.05, £6 with probability 0.2 and nothing otherwise. Find the expected profit.
- 1
The profit is payout minus cost: , or .
- 2
The probability of nothing is .
- 3
.
A game has an expected profit of £0.50 for the player. Is it fair?
Assessing a model
Compare the model's mean and variance with the data's; both should be close.
A model for a real situation should reproduce the observed mean and variance.
Calculate and for the model and compare with the sample mean and variance (or standard deviation). If they are close, the model may be suitable.
If the model's variance is much smaller than the data's, it underestimates spread and the chance of extreme values; costs from will be too low. Also check the model allows every value seen in the data. Always state a conclusion and say why.
- 1
Model
find and
- 2
Data
find the sample mean and variance
- 3
Compare
are both close?
- 4
Conclude
state suitability and give a reason
A model has the same mean as the data but a much smaller variance. What should you conclude?
Try an exam question
The discrete random variable has for . Find , and .
[5 marks]
- [1], so .
- [1].
- [1].
- [1]Uses .
- [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