Discrete random variables
Probability distributions of discrete random variables, 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.
- Know that the probabilities in a distribution add to 1SL 4.7
- Find unknown probabilities in a distribution table or formulaSL 4.7
- Find the expected value SL 4.7
- Use expected value in context, including fair gamesSL 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.
A random variable is a number whose value depends on chance, such as the score on a die or the number of heads in three flips. Listing its values with their probabilities gives its distribution, and the expected value is the long-run average.
2.1 Distributions and expected value
"Discrete" means the values are separate, usually whole numbers, so you can list them. (Heights and times are continuous: they can take any value in a range. See Normal distribution.)
A discrete random variable takes separate values with probabilities . These probabilities must add to 1.
A probability distribution is often shown in a table, with the values of in one row and their probabilities in the other. The probabilities must add to 1 because one of the values is certain to happen. This fact is often used to find a missing probability.
Roll a fair die 600 times. You would expect about 100 of each score, so the total would be about , and the average score about . That is the same as . So is a weighted average: each value is weighted by how often it occurs. It does not have to be a value that can actually take.
2.2 Fair games
A game is fair if the expected gain (winnings minus cost) is 0.
Casinos and lotteries are designed so that the expected gain for the player is negative: over many games, the player loses money on average, even though some individuals win. To check a game, list each possible gain (prize minus cost to play), multiply by its probability and add.
Setting up your own distribution. Some questions describe a situation, such as drawing two counters, and ask you to find the distribution of . List every possible value of first, then find the probability of each (a tree diagram often helps), and check that the probabilities add to 1. Only then work out .
Put the values in list and the probabilities in list on a Lists & Spreadsheet page, then One-Variable Statistics with as the Frequency List: is . Or type sum(x*p).
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 1.
- Calculating as the average of the values without weighting.
- Forgetting to subtract the cost to play when finding the expected gain.
- Expecting to be a possible value of : it need not be (e.g. 3.5 on a die).
Exam tips
- Lay out a table of and first.
- Two unknowns usually need two equations: sum to 1 and the given mean.
- In context, interpret as a long-run average.
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 exam, with full markschemes. Give yourself about 1 minute per mark.
takes the values 1, 2, 3, 4 with probabilities 0.1, 0.3, , 0.2.
- (a)Find .[2]
- (b)Find .[2]
- (c)Find .[2]
| (a) | |
| M1 | |
| A1 | |
| (b) | |
| M1 | |
| A1 | |
| (c) | |
| M1 | |
| A1 | |
A spinner lands on red with probability , blue with probability and green with probability . It costs €2 to play. Red wins €6, blue wins €1 and green wins nothing. Determine whether the game is fair.
| Expected winnings | M1 A1 |
| A1 | |
| Expected gain | M1 |
| so the game is fair | R1 |
for .
- (a)Show that this is a valid probability distribution.[2]
- (b)Find .[2]
- (c)Find .[1]
| (a) | |
| M1 | |
| , and every probability is between 0 and 1 | R1 |
| (b) | |
| M1 | |
| A1 | |
| (c) | |
| 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 real IB questions. Your school or teacher will have these papers.
| Paper | Question | Focus | Difficulty |
|---|---|---|---|
| Nov 2025 · TZ3 · Paper 1 | Q1 | Find k in probability table, then P(X>1.5) and E(X) | ★☆☆ |
| Nov 2024 · TZ1 · Paper 2 | Q4 | Find k for distribution P(X=x)=kx/15, then find E(X) | ★★☆ |
| Nov 2023 · TZ1 · Paper 2 | Q6 | Find a in probability distribution given E(X) = 2.6 | ★★☆ |
| May 2025 · TZ2 · Paper 1 | Q7 | Find k in distribution, conditional probability, expected value gives a | ★★★ |
