Discrete random variable and probability distribution
A discrete random variable assigns a number to each outcome of a random experiment (heads obtained, points on a die, euros won). Its probability distribution is the table that says with what probability each value occurs. In the IB exam it almost always appears like this: you are given a table with an unknown value, asked to calculate it by imposing that the sum is 1, and then asked for probabilities. It is the basis of the expectation and of the binomial.
Random variable
A random experiment has outcomes that are not always numbers (heads or tails, a red or a black ball). To work with them mathematically, a number is assigned to each one, and that rule is the random variable.
The expression is read "the probability that the variable takes the value ". Before calculating anything, write in words what counts and which values it can take: it is the first thing that gets marks.
Probability distribution
For a table to be a valid distribution, two conditions are needed.
This condition is the most useful tool in this section. If the table contains an unknown (, …), write the sum equal to 1 and solve for it. Then check that all the resulting probabilities lie between 0 and 1: if one comes out negative, that solution is not valid.
Calculating probabilities from the table
As the values of are events that cannot occur together, the probability of a set of values is the sum of the probabilities of each one:
The inequality signs must be read carefully, because for a discrete variable it matters whether the endpoint is included: includes 3, does not, and for whole-number values .
The complement also helps: . It is shorter when the table has many values and only a few of them do not meet the required condition.
Worked examples
A table with an unknown
A discrete random variable takes the values and , and its probability distribution is .
a) Calculate the value of .
b) Calculate .
c) Calculate .
Solution
a) The probabilities are . As they add up to 1: The table becomes:
| 1 | 2 | 3 | 4 | |
|---|---|---|---|---|
b) .
c) . Check: .
The difference between two dice
Two rolls of a fair six-sided die (numbered 1 to 6) are made, and the variable is defined as the absolute value of the difference between the two results.
a) Construct the probability distribution of .
b) Calculate .
c) Calculate .
Solution
a) The difference can be or . There are equally likely outcomes, which are counted in a two-way table:
- : the two dice are equal, cases.
- : pairs such as or . There are pairs of consecutive numbers and each can occur in two orders: cases.
- : pairs (-, -, -, -) in two orders: cases.
- : pairs in two orders: cases.
- : pairs in two orders: cases.
- : the pair - in two orders: cases.
| 0 | 1 | 2 | 3 | 4 | 5 | |
|---|---|---|---|---|---|---|
Simplifying: . Check: , so they add up to 1.
b) .
c) .
Breakdowns of a machine
In a factory, the number of breakdowns suffered by a machine in one week takes the values and , with the following distribution, where :
| 0 | 1 | 2 | 3 | |
|---|---|---|---|---|
a) Find the value of .
b) Calculate the probability that in one week there is at most one breakdown.
c) Given that there has been at least one breakdown in a week, calculate the probability that there has been exactly one.
d) The weeks are independent. Calculate the probability that there are no breakdowns in two consecutive weeks.
Solution
a) The sum of the probabilities must be 1: Using the quadratic formula (or the GDC equation solver): This gives or . A probability cannot be negative (), so the second is discarded and Check: and , both between 0 and 1, and .
b) "At most one breakdown" is :
c) It is a conditional probability: . The event is the complement of , so . As is contained in :
d) By independence, the probabilities of each week are multiplied:
In the exam: in part a) marks are given for writing the equation "sum " and for justifying why the negative root is discarded; if you give both roots without discarding either, you lose the last mark. Keep unrounded in the calculator for the following parts, and give the answers to 3 significant figures.
Common mistakes
Summary
- A discrete random variable assigns a number to each outcome of chance and only takes isolated values that can be listed. It is written with a capital letter () and its values with a lower-case letter ().
- The probability distribution is the table with for each value. It satisfies and .
- If the table has an unknown, set up "sum ", solve, and discard the solutions that give probabilities outside .
- The probability of several values is the sum of their probabilities; the complement () often saves working.
- Watch the endpoints: "at least" is , "more than" is , "at most" is , "fewer than" is .
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