IB Analysis and Approaches HL · Probability · Section 4 of 5

Conditional probability and independence of events

3 worked examples · By Álvaro López

Key idea

When you know that something has already happened, probabilities change: this is conditional probability. If knowing that has occurred does not change the probability of at all, the events are independent. In the IB exam this is asked using contingency tables, Venn diagrams and given data such as , and , and you are almost always marked on justifying independence with numbers.

Conditional probability

Suppose a gym has 200 members and you want the probability that a randomly chosen one goes in the mornings. If you are first told that the member is a student, you no longer choose from the 200, but only from the students. The information reduces the sample space, and that is all conditional probability does.

The formula is natural: if is now your whole universe, only the cases that are also in count, that is, . Dividing by gives the new universe a probability of 1.

Note that and are, in general, different numbers: the numerator is the same, but the denominator changes.

Product rule

Rearranging the definition to make the subject gives a very useful form for finding the probability that both things occur.

It is the basis of tree diagrams, which you will see in the next section. This rule and the definition of appear in the IB formula booklet, so you do not need to memorise them, but you do need to know when to use each one.

Conditional probability with a contingency table

A contingency table (or two-way table) sorts cases by two characteristics at once. With it you do not need the formula: you just keep only the row or column of the condition and divide.

The formula gives the same result: the cases in divided by the total of the table give , the cases in divided by the total give , and when you divide, the total of the table cancels.

Independent events

Two events are independent when learning that one has occurred tells you nothing new about the other.

The most convenient check in the exam is the last one: calculate on one side and on the other, and compare them. If they are equal, the events are independent; if not, they are dependent. Always write down both values.

A useful consequence: if and are independent, so are and , and , and and . For example, . In many problems the independence information is exactly what lets you replace by a product and leave an equation with a single unknown.

Worked examples

Example 1 Basic

Working from home in an office

In an office 80 people work. The table classifies them by department and by whether they work from home.

Works from home Does not work from home Total
Sales 18 12 30
Technical 20 30 50
Total 38 42 80

One person is chosen at random.

a) Given that they work in Sales, find the probability that they work from home.

b) Given that they work from home, find the probability that they work in Sales.

c) Given that they do not work from home, find the probability that they are in the Technical department.

d) Are "working in Sales" and "working from home" independent?

Solution

a) The condition is "Sales": the universe is the 30 people in that row, and 18 work from home.

b) The condition is "works from home": the column of 38 people, of whom 18 are in Sales.

c) Condition "does not work from home": 42 people, of whom 30 are in the Technical department.

d) We compare and , with "Sales" and "works from home": They do not coincide, so they are not independent. Consistent with a), , while .

Answer: a) ; b) ; c) ; d) not independent.

Example 2 Medium

Given data for two events

For two events and it is known that

a) Find .

b) Find .

c) Find .

d) Find .

e) Are and independent?

Solution

a) Product rule:

b) The condition is now :

c) Union formula:

d) The cases of that are not in are , with , and . Then

e) Compare: and . As , they are not independent. This is also seen in the fact that .

Answer: a) ; b) ; c) ; d) ; e) no.

Example 3 Hard

Independent events with two solutions

Two alarm systems on a spacecraft work independently. Let be the event "alarm 1 is triggered" and the event "alarm 2 is triggered" by the same incident. It is known that

a) Find the possible values of .

b) It is also known that . Find and .

c) Find .

d) Find .

Solution

Let and . Since and are independent, so are with and with , so

a) Subtracting the two equations, the terms cancel: , that is, . Substituting into the first: Factorising, , so or .

b) If , then ; if , then . Both pairs satisfy the two equations. The condition rules out (since ), so

c) With independence, , and

d) From the calculation above, . Check: and , as the data says.

In the exam: marks are awarded for writing that independence allows you to use and for setting up the two equations. If, when solving the quadratic, you keep only one root without explaining why, you lose the justification mark: here both roots are valid and the extra piece of data is needed to decide.

Common mistakes

Summary

  • : the probability of when the universe is reduced to .
  • Product rule: . Both formulas appear in the IB formula booklet.
  • In a contingency table, the denominator is the total of the row or column of the condition.
  • and are independent if , or if , or if . Otherwise they are dependent.
  • If and are independent, so are and , and , and and .
  • Mutually exclusive () is not the same as independent: with positive probabilities, the two can never hold together.
  • In the exam, write and to justify independence, and leave fractions simplified.
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