IB Analysis and Approaches HL · Discrete random variables and the binomial distribution · Section 2 of 4

Expected value, variance and fair games

3 worked examples · By Álvaro López

Key idea

The expected value is the mean value that tends to if you repeat the experiment many times; the variance measures how far the values spread around that mean. With them you can decide whether a game is fair (expected gain equal to zero). In the IB exam they are calculated by hand in Paper 1 and with the GDC in Paper 2.

Expected value of a discrete variable

If you play many times, you do not expect the most frequent value but the weighted average: each value counts according to its probability.

The expected value does not have to be a value that can take. A normal die has , which never comes up in a single roll: it is the long-term average, not a concrete result.

If the expected value is a decimal, leave it as a decimal or as a simplified fraction; do not round it to an integer.

Variance and standard deviation

The formula is the most convenient by hand: first calculate (the mean) and then by squaring the values of before multiplying by the probability. The probabilities are not squared.

Games and expected gain

A game of chance can be described by a random variable : the gain of the player (the prize minus what they pay to play, with a negative sign if they lose). The value is what the player wins or loses on average per game if they play many times.

Be careful with the meaning of ‘gain’: if the question gives the gross prize, you must subtract what is paid to play to obtain the net gain. Always interpret the result: “on average, the player loses 0.80 euros per game”.

Also, for games the total expected gain is .

Worked examples

Example 1 Basic

Mean and standard deviation of a table

A student records the number of assignments handed in per week. The random variable has this distribution:

0 1 2 3 4

a) Calculate .

b) Calculate .

c) Calculate the standard deviation .

Solution

a)

b) We calculate using the squares of the values:

c)

Answer: a) ; b) ; c) .

Example 2 Medium

Two unknown probabilities

The random variable has the distribution

1 2 3 4

and it is known that .

a) Find the values of and .

b) Find .

c) Find .

Solution

a) There are two unknowns, so two equations are needed. The probabilities sum to 1: And the expected value is : Subtracting the first equation from the second: , so and . Both are between 0 and 1.

b) With the complete table:

c) As , the condition is equivalent to :

Answer: a) , ; b) ; c) .

Example 3 Hard

A raffle with two gold balls

At a fair, playing costs 6 euros. There is a bag with 6 balls, 2 gold and 4 grey. The player draws 2 balls at random, without replacement: if both are gold they win 30 euros, if only one is gold they win 6 euros and if none is gold they win nothing. (The 6 euros entry fee has already been paid.)

Let be the player's net gain in one game, that is, the prize minus 6 euros.

a) Write down the probability distribution of .

b) Find and interpret the result.

c) The organiser changes the prize for a single gold ball to euros and leaves the others unchanged. Find so that the game is fair.

d) With the original game, what is the organiser's expected gain after 150 games?

Solution

a) There are equally likely pairs.

  • Two gold: pair, , and .
  • One gold: pairs, , and .
  • No gold: pairs, , and .

Check: .

b) That is, euros: on average, the player loses 0.80 euros per game. The game is not fair and favours the organiser.

c) With a prize of for one gold ball, the gain in that case is : The game is fair if , that is, and euros.

d) The player's gain is the organiser's loss, so the organiser gains on average euros per game:

Answer: b) euros; c) euros; d) euros.

In the exam: define clearly (net or gross), write the table and the sum of products, and finish by interpreting the sign of in the context of the game; without that sentence you lose the interpretation mark.

Common mistakes

Summary

  • : a weighted average by probability; it need not be a value that can take.
  • , with ; .
  • In Paper 2 the GDC gives and when you enter values and probabilities as frequencies; still write down the set-up.
  • A game is fair if the expected net gain is zero; if it is positive it favours the player, if negative, the organiser.
  • The total expected gain after games is .
  • With two unknowns in a table: plus or a cumulative probability give two equations.
Maths classes in Aldaia and online

Want to work on it together?

Free first consultation: we look at your level and your exam, and build a plan. Álvaro replies on WhatsApp.

Message us on WhatsApp