Revision Notes
Cambridge O Level Statistics: Discrete probability distributions, expectation and fair games (4040) – Revision Notes
Condensed exam revision notes on probability distributions, expectation, expected gain and fair games for Cambridge O Level Statistics (4040).
- Subject
- Statistics
- Level
- O LEVELS
- Topic
- Discrete probability distributions, expectation and fair games
- Author
- Marlbridge Academic Team
- Updated
- Reviewed by
- Sajawal Zahid (what this means)
Aligned to Cambridge O Level Statistics (4040), For examination in 2025-2027. Official specification .
Syllabus points this page covers
4040
- 12.1 Formation of the probability distribution of a discrete variable
- 12.2 Expectation
These are condensed notes for topic 12 of the Cambridge O Level Statistics 4040 syllabus for examination in 2025, 2026 and 2027: section 12.1 (probability distribution of a discrete variable) and section 12.2 (expectation, expected profit and loss in simple games, fair games). For full explanations and longer worked examples, read the study guide. Then try the practice questions.
Other links: the O Level Statistics course page, the syllabus checklist and the free diagnostics.
Key definitions
| Term | Meaning |
|---|---|
| Random variable X | A quantity whose value depends on chance. Capital X is the variable, small x a value it takes. |
| Discrete | Takes separate, listable values such as 0, 1, 2, 3. |
| p(x) | The probability P(X = x). |
| Probability distribution | A table of every value of X with its probability. |
| E(X) | Expectation: the average value of X over very many repeats. |
| E[g(X)] | Expectation of a function of X. |
| Stake | The amount paid to play a game. |
| Net gain | Amount received minus stake. |
| Fair game | A game where the expected net gain is zero. |
Formulas
| Result | Formula |
|---|---|
| Probabilities sum to 1 | Σ p(x) = 1, and 0 ≤ p(x) ≤ 1 |
| Estimated probability from data | p(x) = frequency of x ÷ total frequency |
| Expectation | E(X) = Σ x p(x) |
| Expectation of a function | E[g(X)] = Σ g(x) p(x) |
| Straight-line function | E(aX + b) = a E(X) + b |
| Expected net gain | Σ (net gain) × probability = E(received) − stake |
| Expected total over n plays | n × E(net gain) |
| Fair game | E(net gain) = 0, so stake = E(received) |
The straight-line rule holds only for aX + b. It does not hold for X² or any other curve.
Method: forming a distribution
- Say what X counts and list every possible value.
- For each value, list the outcomes that give it. Count every order.
- Work out the probabilities: multiply along tree branches, add the branches that give the same value.
- Write the table.
- Check the total is exactly 1.
Reminder: with replacement the draws are independent and the probabilities stay the same. Without replacement the second probability changes.
Reminder example. A box has 3 red and 5 blue pens. Two are taken at random without replacement. X is the number of red pens.
p(0) = 5/8 × 4/7 = 20/56 = 5/14
p(1) = 2 × (3/8 × 5/7) = 30/56 = 15/28
p(2) = 3/8 × 2/7 = 6/56 = 3/28
Check: 10/28 + 15/28 + 3/28 = 1.
Method: unknown constants
- A constant k in a rule: add all the probabilities, set the sum equal to 1, solve for k.
- Two unknown probabilities: form one equation from Σ p(x) = 1 and a second from the given E(X). Solve together.
Reminder example. p(1) = 0.1, p(2) = a, p(3) = b, p(4) = 0.3, and E(X) = 2.8.
Total: 0.1 + a + b + 0.3 = 1, so a + b = 0.6
E(X): 0.1 + 2a + 3b + 1.2 = 2.8, so 2a + 3b = 1.5
Substitute a = 0.6 − b: 1.2 + b = 1.5, so b = 0.3 and a = 0.3
Method: expectation
- Write the table.
- Add a row of x p(x), or g(x) p(x) for a function.
- Add the row. Do not divide by the number of values.
Reminder example. With p(1) = 0.3, p(2) = 0.45 and p(3) = 0.25:
E(X) = 0.3 + 0.90 + 0.75 = 1.95
E(X²) = 0.3 + 1.80 + 2.25 = 4.35
E(3X−1) = 3 × 1.95 − 1 = 4.85
Note that E(X²) = 4.35 but [E(X)]² = 3.8025, about 3.80. They are different.
Method: expected profit and loss in a game
- Write each outcome, its probability and its net gain (received minus stake).
- Multiply each net gain by its probability and add.
- Positive means an expected profit for the player, negative an expected loss.
- For n plays, multiply by n. Say it is an expected total, not what will happen.
Reminder example. Stake Rs 2. A fair spinner shows 1 to 4. A 4 pays Rs 6, a 3 pays Rs 1, anything else pays nothing.
E(received) = 6 × 1/4 + 1 × 1/4 = 1.75
E(net gain) = 1.75 − 2 = −0.25
Over 200 plays: 200 × (−0.25) = −50, an expected loss of Rs 50
Method: fair games
- Find the stake that makes a game fair: stake = E(received).
- Find a missing prize that makes a game fair: set E(received) equal to the stake and solve.
- Decide who a game favours: positive favours the player, negative the organiser, zero is fair.
Reminder example. A raffle has 400 tickets: one prize of Rs 150, five of Rs 30 and ten of Rs 10.
Total prizes = 150 + 5 × 30 + 10 × 10 = 400
E(prize per ticket) = 400/400 = 1
A ticket costing Rs 1 makes the raffle fair. At Rs 1.50, the organiser expects Rs 0.50 per ticket, which is Rs 200 if all 400 sell.
Must-know distinctions
| Often confused | Difference |
|---|---|
| p(x) and E(X) | p(x) is a probability between 0 and 1. E(X) is a value on the same scale as X. |
| E(X) and the mean of the x values | E(X) weights each x by its probability. A plain mean treats them as equally likely. |
| E(X²) and [E(X)]² | Square then average, against average then square. They differ. |
| Prize and net gain | Net gain subtracts the stake. |
| Fair and “close to zero” | Fair means exactly zero expected net gain. |
| Expectation and outcome | One play never gives the expectation unless that is a possible result. It describes the long run. |
Quick self-test
- A variable has p(0) = 0.1, p(1) = 0.3, p(2) = k and p(3) = 0.35. Find k.
- A variable takes values 0 to 3 with p(x) = (x + 1)/10. Find E(X).
- Which of these lists of probabilities for the values 1, 2, 3 is valid: (0.5, 0.3, 0.3), (0.2, 0.5, 0.3), or (0.6, 0.5, −0.1)?
- Given p(0) = 0.2, p(1) = 0.4, p(2) = 0.2 and p(3) = 0.2, find E(X) and E(2X + 1).
- Find P(X ≥ 2) for the distribution in question 4.
- A game costs Rs 1. You roll a fair die and receive Rs 5 if it shows a 6, otherwise nothing. Find the expected net gain.
- Using the game in question 6, for which prize for a 6 would the game be fair?
- A game has expected net gain of Rs 0.25 per play. What is the expected total for 80 plays, and who does the game favour?
- A coin is tossed twice. X is the number of heads. Write the distribution and find E(X).
- Explain why E(X) can be a value that X can never equal.
Answers
- 1 − (0.1 + 0.3 + 0.35) = 0.25, so k = 0.25.
- p = 0.1, 0.2, 0.3, 0.4. E(X) = 0 + 0.2 + 0.6 + 1.2 = 2.
- The first adds to 1.1 and the third has a negative probability, so both are impossible. Only the second adds to 1 with no negative value, so it is valid.
- E(X) = 0.4 + 0.4 + 0.6 = 1.4. E(2X + 1) = 2 × 1.4 + 1 = 3.8.
- 0.2 + 0.2 = 0.4.
- E(received) = 5 × 1/6 = 5/6. Net gain = 5/6 − 1 = −1/6, about −Rs 0.17.
- Prize of Rs 6, since 6 × 1/6 = 1 equals the stake.
- 80 × 0.25 = Rs 20 expected profit for the player. It favours the player.
- p(0) = 1/4, p(1) = 1/2, p(2) = 1/4. E(X) = 0 + 1/2 + 1/2 = 1.
- E(X) is a probability-weighted average, like a mean. In question 4 the expectation is 1.4, yet X only takes whole numbers.
Where marks are usually lost
- Not checking that the probabilities total 1, so an arithmetic slip goes unseen.
- Counting only one order when a value can happen in two ways.
- Forgetting to change the probabilities when there is no replacement.
- Dividing the sum of x p(x) by the number of values.
- Writing E(X²) as the square of E(X).
- Giving the prize instead of the net gain, or subtracting the stake twice.
- Stating an expected loss as a positive number without saying it is a loss.
- Leaving a fair-game answer without a short check that the expectation is zero.
- Describing an expected value as what will happen on the next play.
Frequently asked questions
What is the difference between p(x) and E(X)? p(x) is a probability between 0 and 1. E(X) is a value on the same scale as X, found by weighting each value by its probability.
Is a game fair if the expected gain is close to zero? No. A fair game has an expected net gain of exactly zero; a small but non-zero expected gain still favours one side.
What is net gain in a game? Net gain is the amount received minus the stake. Treating the prize as the net gain is a common error.
Does one play of a game give the expectation? Not usually. The expectation describes the long-run average, and a single play only gives it if that value is a possible result.
Official syllabus
Cambridge O Level Statistics 4040, syllabus for examination in 2025, 2026 and 2027, Cambridge University Press & Assessment (Cambridge International Education). Topic 12, sections 12.1 and 12.2, and the mathematical notation list.
Related resources
-
Study guides
Cambridge O Level Statistics: Discrete probability distributions, expectation and fair games (4040)
Study guide to forming a discrete probability distribution, finding expectation and judging fair games, for Cambridge O Level Statistics (4040).
Statistics · Cambridge · O Level
Read guide -
Practice questions
Cambridge O Level Statistics: Discrete probability distributions, expectation and fair games (4040) – Practice Questions
Original practice questions with worked answers on discrete probability distributions, expectation and fair games, for Cambridge O Level Statistics.
Statistics · Cambridge · O Level
Try questions -
Study guides
Cambridge O Level Statistics: Effects of a constant and linear transformation to a given mean and SD (4040)
Study guide to how adding or multiplying by a constant changes mean and standard deviation, and fitting y = a + bx to a target, for O Level Statistics.
Statistics · Cambridge · O Level
Read guide
Get free revision emails (optional)
Occasional emails with practice questions, worked explanations and links to free resources for the qualification and subjects you choose. No spam, and you can unsubscribe from any email. The free tools on this site never need an email.