Discrete random variables
A discrete random variable takes a list of values, each with a probability. This page covers probability distributions given as tables or formulae, finding unknown probabilities, the expected value , and fair games.
1What you need to know
Tick these off as you go. By the end of the page you should be able to do all of them without notes.
- Read a probability distribution from a table or a formulaSL 4.7
- Use the fact that the probabilities add to 1 to find an unknownSL 4.7
- Find the expected value , by hand or on the GDCSL 4.7
- Use to find an expected total over many trialsSL 4.7
- Decide whether a game is fair: SL 4.7
2Notes & worked examples
Each idea is followed by a worked example. Try the question yourself first, then reveal the solution one step at a time.
The expected value is the long-run average: what you would get per trial if you repeated the experiment many times. It is a weighted mean, each value weighted by its probability. A game is fair when a player’s expected gain is zero: in the long run, nobody wins or loses.
2.1 Probability distributions
| 1 | 2 | 3 | 4 | 5 | |
| 0.1 | 0.2 | 0.15 | 0.05 |
2.2 Fair games
Let be the player’s gain (prize minus the cost to play). The game is fair if . If , the player loses on average (the organiser profits).
E(X) on the GDC: list 1 = values of , list 2 = probabilities. menu → Statistics → Stat Calculations → One-Variable Statistics, with list 2 as the frequency list. The mean is (check that of the frequencies, shown as n, is 1).
3Explore it
The distribution of the total score when fair dice are rolled. Choose the number of dice and a target total.
4Common mistakes & exam tips
Common mistakes
- Forgetting that the probabilities must add to exactly 1.
- Using the prize instead of the gain (prize − cost) in a fair-game question.
- Rounding to a value can take: the expected value need not be a possible value.
- Dividing by the number of values, as if all were equally likely.
Exam tips
- is in the formula booklet.
- Show the substitution in before giving the GDC answer.
- "Expected number in trials" is the probability, and "expected total in trials" is .
- For "find the prize that makes the game fair", set and solve.
5Practice
Fluency questions build the basics. Problem-solving questions make you think about which method to use.
6Exam-style questions
Original questions in the style of the IB Maths AI SL exam, with full markschemes. Your GDC is allowed throughout: use it, but write down what you entered and what it gave you. Give yourself about 1 minute per mark.
The number of goals scored by a team in a match has the distribution below.
| 0 | 1 | 2 | 3 | 4 | |
| 0.15 | 0.3 | 0.25 | 0.1 |
- (a)Find .[2]
- (b)Find .[2]
- (c)The team plays 38 matches in a season. Find the expected number of goals scored.[2]
| (a) | |
| (M1) | |
| A1 | |
| (b) | |
| (M1) | |
| 1.8 | A1 |
| (c) | |
| (M1) | |
| 68.4 goals | A1 |
A game costs $5 to play. Two fair dice are rolled. If they show a double, the player wins $; otherwise the player wins nothing.
- (a)Write down the probability of rolling a double.[1]
- (b)Find the value of for which the game is fair.[4]
| (a) | |
| A1 | |
| (b) | |
| gains and | (M1) |
| (M1)(A1) | |
| A1 | |
Two fair four-sided spinners, each numbered 1 to 4, are spun. is the larger of the two scores (or the common score if they are equal).
- (a)Show that .[2]
- (b)Find the probability distribution of .[2]
- (c)Find .[2]
| (a) | |
| sample space of 16 outcomes; 7 contain a 4 | M1 |
| AG A1 | |
| (b) | |
| for | A2 |
| (c) | |
| (M1) | |
| 3.125 | A1 |
7Check yourself
Six quick questions, marked instantly. Aim for 6/6 before moving on. Fractions like 3/2 are accepted.
8Past-paper practice
Once you're scoring well above, try these real IB Maths AI SL questions. Your school or teacher will have the papers.
| Paper | Question | Focus | Difficulty |
|---|---|---|---|
| May 2024 · TZ1 · Paper 1 | Q12 | Spinner fundraiser: expected winnings, find k | ★★★ |
| Nov 2024 · TZ1 · Paper 1 | Q11 | Fair game with win, draw and loss points | ★★☆ |
| May 2023 · TZ2 · Paper 1 | Q12 | Target hits: find k, decide whether the game is fair | ★☆☆ |
| May 2026 · TZ3 · Paper 1 | Q11 | Dice game: distribution, E(Y), when to stop | ★☆☆ |
