4.7 Discrete random variables and expected value
Studying this course? Keep your progress in one place.
Key facts
- A discrete random variable takes separate values by chance; its probabilities add up to 1.
- Use to find an unknown such as .
- The expected value is : a long-run average.
- For a game, of the gain is if the game is fair.
- Expected total over plays .
Discrete random variables
A distribution lists every value of with its probability, and the probabilities add up to 1.
A discrete random variable takes separate values (usually whole numbers) according to chance, such as the score on a die. A probability distribution lists each value with its probability .
Every probability satisfies , and all of them add up to 1:
A table has probabilities , , . What is ?
Tables and formulae
A distribution is given as a table or a formula; substitute to build the table, then add probabilities for ranges.
A distribution can be a table, such as with , or a formula, such as for .
Substitute each value to build the table: , which sum to 1. For , add the probabilities of every value that qualifies.
| Table | Formula | |
|---|---|---|
| Looks like | Values and probabilities listed | |
| To use it | Read the entries directly | Substitute each |
Table
- Looks like:
- Values and probabilities listed
- To use it:
- Read the entries directly
Formula
- Looks like:
- To use it:
- Substitute each
Worked example
for . Find .
- 1
Build the table: , , .
- 2
means or , so add those two.
- 3
.
For , what is ?
Expected value
The expected value is the probability-weighted mean of , the long-run average over many trials.
The expected value (mean) of a discrete random variable is .
It is the long-run average of , not necessarily a value can take. With , , , :
On the GDC, enter values and probabilities as two lists and use the probabilities as frequencies in one-variable statistics.
Worked example
, , , . Find .
- 1
Multiply each value by its probability: , , , .
- 2
These are , , and .
- 3
Add them up.
with . What is ?
Games and fairness
A game is fair if the expected gain is zero; a negative expected gain favours the organiser.
If is the gain of a player (prize minus entry fee), then is the expected gain per game. If the game is fair. Negative favours the organiser; positive favours the player.
A game costs 4 AED and pays 0, 6 or 10 AED with probabilities , , . The expected prize is AED, so the expected gain is AED. Over 500 games the organiser expects to make AED.
- 1
Expected prize
prize probability
- 2
Subtract the entry fee
this is the expected gain
- 3
Compare with zero
zero means fair
Worked example
A game costs 4 AED to play and pays 0, 6 or 10 AED with probabilities , , . Is it fair?
- 1
Expected prize: AED.
- 2
Expected gain AED.
- 3
Compare with zero: the expected gain is not zero.
A fair game has expected gain...
Applications
Count equally likely outcomes for each value of , check the total, then calculate .
Many problems build a distribution by counting outcomes. For two fair four-sided dice with the larger number, there are 16 equally likely outcomes, and because five outcomes have a larger number of 3.
The full table is , giving . For a total over repeated plays, multiply by the number of plays.
Worked example
Two fair four-sided dice are rolled and is the larger number. Find .
- 1
There are 16 equally likely outcomes.
- 2
: 1 outcome. : 3 outcomes. : 5 outcomes. : 7 outcomes.
- 3
.
Two fair four-sided dice: how many outcomes give a larger number of 2?
Try an exam question
The discrete random variable has , , and . Find and .
[4 marks]
- [1]Uses : .
- [1].
- [1].
- [1].
That's the notes covered.
Carry on to the next subtopic.
Try a question
Find the value of .
1 mark, marked against the mark scheme
Find the value of .
1 mark, marked against the mark scheme