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

Discrete random variable and its probability distribution

3 worked examples · By Álvaro López

Key idea

A random variable turns the outcome of an experiment into a number. If it only takes isolated values (0, 1, 2, …) it is discrete, and it is described by a table giving the probability of each value. In the IB exam you are asked to complete tables with one unknown value, calculate cumulative probabilities and build the table from an experiment (draws, dice, spinners).

Discrete random variable

You toss three coins and want to know how many heads come up. The outcome of the experiment is a sequence such as ‘heads, tails, heads’, but you only record a number: 2. That number, which depends on chance, is a random variable. It is named with a capital letter, such as , and its specific values with a lower-case letter, such as .

The number of students who arrive late to a class, the points on a die or the red balls drawn from a bag are discrete. A person's height or the time a bus takes are continuous. In this topic only discrete variables are studied.

Probability distribution

The probability distribution of lists each possible value together with its probability . It is written as a table:

The reason is simple: the values of are mutually exclusive events (you cannot get 2 and 3 heads at the same time) and together they cover the whole sample space.

How to build the table for an experiment

When two dice or two spinners are involved, the most convenient method is a two-way table with all the outcomes equally likely: each cell is worth , and you only have to count how many cells give each value of .

Cumulative probabilities and unknown values

The probability that is at most is found by adding the table entries up to :

With strict inequalities you must check which values are included: does not include 3, whereas does. When it is shorter, use the complement: .

You can also combine this with conditional probability: .

Worked examples

Example 1 Basic

Table with one unknown probability

The random variable is the number of calls received by a switchboard in one minute. Its probability distribution is

0 1 2 3

a) Find the value of .

b) Find .

c) Find .

Solution

a) The probabilities sum to 1:

b) The values 2 and 3 are included:

c) By the formula for conditional probability, the numerator is and the denominator is :

Answer: a) ; b) ; c) .

Example 2 Medium

Three draws without replacement

A box contains 6 balls, 2 red and 4 blue. Three balls are drawn at random, without replacement. Let be the number of red balls obtained.

a) Write down the probability distribution of .

b) Find .

c) Find .

Solution

a) There are equally likely ways to choose 3 balls. The possible values are .

  • : the 3 balls are blue, ways, so .
  • : one red and two blue, ways, so .
  • : both red and one blue, ways, so .
0 1 2

Check: .

b) By the complement: .

c)

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

Example 3 Hard

Difference between two dice

Two fair six-sided dice are rolled. Let be the absolute difference between the two scores.

a) Construct the probability distribution of .

b) Find .

c) Find .

d) What is the most likely value of ?

Solution

a) There are equally likely outcomes. takes the values . Count the cells of the two-way table:

  • : equal scores, 6 outcomes.
  • : pairs such as or ; there are 5 pairs of consecutive values and each occurs in two orders, 10 outcomes.
  • : 4 pairs, 8 outcomes.
  • : 3 pairs, 6 outcomes.
  • : 2 pairs, 4 outcomes.
  • : only and , 2 outcomes.
0 1 2 3 4 5

Check: .

b)

c) With the condition the denominator is :

d) The largest value in the table is , which corresponds to .

Answer: b) ; c) ; d) .

In the exam: marks are given for showing the count of cases (or the two-way table) and checking that the sum is 1. In a conditional probability, write the numerator and the denominator separately before dividing.

Common mistakes

Summary

  • A random variable assigns a number to each outcome of an experiment; it is discrete if it takes isolated values.
  • Its probability distribution is the table of for each value .
  • Always and : this helps you find an unknown value and check the table.
  • adds the probabilities up to ; with inequalities, check whether the endpoint is included, and use the complement when it is shorter.
  • To build the table: define what counts, list its values, count the cases with a tree, a two-way table or combinations, and check that it sums to 1.
  • With a condition, applies to values of just as to any event.
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