Discrete random variables and expected value
In a minute
A is a number decided by chance, such as the goals a team scores. Its lists each value it can take with its probability, and those probabilities always add up to . The is its long-run average, and it tells you whether a game is fair.
You'll be able to
- Work with a and its , given as a table or as a formula.
- Use the fact that the probabilities add up to to find an unknown such as .
- Find probabilities such as from a distribution.
- Find the and say what it means.
- Use in problems: decide whether a game is a , and set a fee or a prize that makes it fair.
Before you start3 quick questions on what this builds on
Revise first: 4.5 Probability foundations and expected value and 4.6 Probability diagrams, rules and independence
Random variables and their distributions
Five cards are numbered to . You pick two at random and look at the smaller number. You can't know it in advance. But you can list every value it could be, and how likely each one is.
The symbol means "add up over every value of ". This rule is not in the formula booklet, so learn it. It is how you find an unknown in a distribution.
Try it first, then reveal one step at a time.
- List the as pairs, smaller number first: . That is pairs.
- Count the pairs for each value. Smaller number : four pairs. Smaller number : three. Smaller number : two. Smaller number : one. can't be , because there is no larger card to go with it.
- (a) Write the table:
- Check the total: .
- (b) "At least " means or . Add their probabilities: .
Try it first, then reveal one step at a time.
- (a) The probabilities add up to : .
- Collect the terms: , so and .
- Fill in the table: and . Both lie between and .
- (b) means , or : .
- Check with the complement: .
Try it first, then reveal one step at a time.
- The probabilities add up to : .
- Rearrange into a quadratic equal to : . Multiply by to clear the decimal: .
- Factorise: , so or .
- Test each root in the table. makes , and a probability can't be negative. Reject it.
- With : and . The total is , as it should be.
Distributions given by a formula
Look again at the smaller-card table. Each probability is minus the value, over . So the whole table fits in one line: for .
A formula like this is just a short way to write a table. The set after "for" lists the values can take. To work with it, substitute each value of and write the table out.
Try it first, then reveal one step at a time.
- Substitute each value of :
- The probabilities add up to : .
- Use the common denominator : , so , which is .
- So . The table is , and each lies between and .
Try it first, then reveal one step at a time.
- Substitute each value. gives . Then gives , gives , and gives .
- (a) Add and set equal to : , so and .
- The table is
- (b) means or , so .
Notice that can take a negative value here. A value of can be any number. Only the probabilities have to lie between and .
Expected value
Suppose the hockey team plays matches. You'd expect about with no goals, with one goal, with two, with three and with four.
That is about goals, or per match. Dividing by turns each count back into its probability.
You don't need to memorise this; it's in the formula booklet. Multiply each value by its probability, then add the results. It is the mean of a frequency table from 4.3, with probabilities in place of frequencies.
No match ends with goals. That is fine: is an average, so it need not be a value can take.
Try it first, then reveal one step at a time.
- Write every term as value times probability: .
- Work out each product: .
- Add them: .
- Check it makes sense: lies between the smallest value, , and the largest, .
Try it first, then reveal one step at a time.
- Write with every term in: .
- Expand: .
- Collect the terms: , so and .
- Check the table: the probabilities are . Each lies between and , and they add up to .
Try it first, then reveal one step at a time.
- (a) The probabilities add up to : . Write this sum down, then work it out on the GDC: .
- So .
- (b) Use the formula: . Dividing by keeps exact.
- The GDC gives . So
- Round only now: jams per day. It lies between and , as it must.
Games and fairness
Many games cost money to play and sometimes pay a prize. Let be a player's gain in one game: prize minus cost. A loss is a negative gain.
Then is the player's average gain per game in the long run. If it is positive, players come out ahead. If it is negative, the organiser does.
Over games, the expected total gain is . This is the same idea as the expected number of occurrences in 4.5.
Try it first, then reveal one step at a time.
- Take the $2 off each prize to get the gains: , and .
- The probability of winning nothing is . So the distribution is
- (a) .
- The game is not fair. On average, a player loses $0.70 per game.
- (b) Over games: . The player expects to lose $140 in total.
Try it first, then reveal one step at a time.
- One spin lands on red with probability . The two spins are independent, so multiply (4.6).
- Both red: . Neither red: . Exactly one red is red then not red, or not red then red: . Check: .
- Let be the gain. Take the $3 off each prize:
- A fair game needs : .
- Multiply by : , so and . A prize of $35 for two reds makes the game fair.
Common mistakes
- Averaging the values of to find , as if they were equally likely. Weight each value by its probability: .
- Setting the values of , or the terms without , equal to . It is the probabilities that add up to .
- Leaving out an in an equation for , for example writing where the term should be . Write every term as first.
- Treating as . For whole-number values, "greater than " starts at .
- Keeping a value of that makes a probability negative or bigger than . Substitute each root back into the table and reject any that fails.
- Rounding before multiplying by the number of games. Multiply the exact value, then round the final answer.
Exam tips
- Show that has a given value: start from and solve. Substituting the given to check the total assumes the answer, so it doesn't show it.
- Find : write the sum with every term in, such as , before the value. That line earns the method mark.
- Hence find : use the you just found. If that was wrong but you use it correctly, you can still earn follow-through marks.
- Determine whether a game is fair: define as the gain, find , and state clearly whether it equals .
Key takeaways
Practise this
12 past-paper questions on 4.7 in the AA HL bank, each with a mark scheme and a worked explanation.