Skip to content
Marlbridge

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
Updated

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

Found an error? Report a correction.

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

  1. Say what X counts and list every possible value.
  2. For each value, list the outcomes that give it. Count every order.
  3. Work out the probabilities: multiply along tree branches, add the branches that give the same value.
  4. Write the table.
  5. 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.

A tree diagram for taking two counters without replacement from a bag of 3 green and 5 yellow. The first counter is green with probability 3/8 or yellow 5/8; the second depends on the first. The four paths give 6/56, 15/56, 15/56 and 20/56. Grouped by number of green counters X: X=2 has 3/28, X=1 has the two middle paths adding to 15/28, and X=0 has 5/14. The three values add up to 1.
Multiply along each path, then add the paths that give the same value of X. The two orders for X = 1 are added. Check that the probabilities total 1.
Four rows of small squares, each square worth k. The row for x = 1 has 3 squares, x = 2 has 4, x = 3 has 5 and x = 4 has 6, because p(x) = k(x + 2). Together they make one bar of 18 squares, which must equal probability 1, so 18k = 1 and k = 1/18. The probabilities are 3/18, 4/18, 5/18 and 6/18.
Because the probabilities must add to 1, 3k + 4k + 5k + 6k = 18k = 1, so k = 1/18.

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

  1. Write the table.
  2. Add a row of x p(x), or g(x) p(x) for a function.
  3. 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.

A beam with four bars standing on it at x = 0, 1, 2 and 3 faults per roll, with heights 0.45, 0.35, 0.15 and 0.05 (36, 28, 12 and 4 rolls out of 80). A triangle supports the beam at 0.8 and the beam balances there. The balance point is E(X) = 0.8, found as 0 + 0.35 + 0.30 + 0.15.
E(X) = Σ x p(x) is the balance point of the distribution. For the fabric faults it is 0.80, which is the observed mean (64 faults in 80 rolls).
Two bars. The left bar is built from three pieces, 0.35, 0.60 and 0.45, from x = 1, 2 and 3 (x squared times p of x), and totals E of X squared = 1.40. The right bar is the square of the expectation, 0.80 squared = 0.64. A not-equal sign sits between them. A note says that for a straight line E(3X + 2) = 3 times 0.80 + 2 = 4.40.
Square each value first, then weight and add: E(X²) = 1.40. Squaring the expectation gives 0.64, a different number. The shortcut only works for straight lines, such as E(3X + 2) = 4.40.

Method: expected profit and loss in a game

  1. Write each outcome, its probability and its net gain (received minus stake).
  2. Multiply each net gain by its probability and add.
  3. Positive means an expected profit for the player, negative an expected loss.
  4. 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
Six dice faces. A 6 pays Rs 15 so the net gain is +11; a 4 or 5 pays Rs 3 so the net gain is minus 1; a 1, 2 or 3 pays nothing so the net gain is minus 4. A bar chart shows each net gain times its probability: +11/6, minus 2/6 and minus 12/6. They add to minus 3/6, an expected loss of Rs 0.50 per play.
Net gain = amount received − stake. Weight each net gain by its probability and add: E(net gain) = −0.50, so the player expects to lose Rs 0.50 per play.
Ten cards, two of them winning cards. With a stake of Rs 5 the expected prize is w times 2/10, which equals Rs 5 when w = 25, so the game is fair. A number line of expected net gain runs from minus 1 to plus 1: left of zero favours the organiser, right of zero favours the player, and zero is fair. The die game sits at minus 0.50 and the card game at 0.
A game is fair when E(net gain) = 0, that is, when the stake equals the expected amount received. With 2 winning cards in 10 and a stake of Rs 5, the prize must be Rs 25.

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

  1. A variable has p(0) = 0.1, p(1) = 0.3, p(2) = k and p(3) = 0.35. Find k.
  2. A variable takes values 0 to 3 with p(x) = (x + 1)/10. Find E(X).
  3. 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)?
  4. 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).
  5. Find P(X ≥ 2) for the distribution in question 4.
  6. 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.
  7. Using the game in question 6, for which prize for a 6 would the game be fair?
  8. 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?
  9. A coin is tossed twice. X is the number of heads. Write the distribution and find E(X).
  10. Explain why E(X) can be a value that X can never equal.

Answers

  1. 1 − (0.1 + 0.3 + 0.35) = 0.25, so k = 0.25.
  2. p = 0.1, 0.2, 0.3, 0.4. E(X) = 0 + 0.2 + 0.6 + 1.2 = 2.
  3. 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.
  4. E(X) = 0.4 + 0.4 + 0.6 = 1.4. E(2X + 1) = 2 × 1.4 + 1 = 3.8.
  5. 0.2 + 0.2 = 0.4.
  6. E(received) = 5 × 1/6 = 5/6. Net gain = 5/6 − 1 = −1/6, about −Rs 0.17.
  7. Prize of Rs 6, since 6 × 1/6 = 1 equals the stake.
  8. 80 × 0.25 = Rs 20 expected profit for the player. It favours the player.
  9. p(0) = 1/4, p(1) = 1/2, p(2) = 1/4. E(X) = 0 + 1/2 + 1/2 = 1.
  10. 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

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.