IB Applications and Interpretation SL · Probability · Section 3 of 4

Conditional probability and independence of events

3 worked examples · By Álvaro López

Key idea

Sometimes you know something before calculating a probability: "I already know that the student is in the second year", "I already know that the customer paid by card". That information changes the probability, and conditional probability measures how much. If the information changes nothing, the events are independent. In the IB exam it appears with contingency tables, Venn diagrams and given data such as , and .

Conditional probability

Imagine that a library has 100 users and you want the probability that a randomly chosen one has a membership card. If you are first told that the user is a minor, you no longer choose from the 100: you choose only from the minors. The information reduces the sample space, and that is all that conditional probability does.

The formula makes sense: from the set , which is now your whole universe, only the cases that are also in count, that is, . Dividing by brings the universe back to probability 1.

Note that and are different numbers: the denominator changes.

Product rule

If you rearrange the definition to isolate , you obtain a very useful form for calculating the probability that both things occur.

Conditional probability with a contingency table

A contingency table (or two-way table) divides the individuals according to two characteristics at once. With it you do not need the formula: you simply keep only the row or column of the condition and divide.

With the formula you obtain the same thing: the number of individuals in divided by the total of the table is , and the total of divided by the total of the table is ; when you divide, the total of the table cancels out.

Independent events

Two events are independent when knowing that one has occurred does not change the probability of the other.

The most convenient check in the exam is the last one: calculate in one way and in another, 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 . So, for example, .

Worked examples

Example 1 Basic

Season-pass holders on a train

120 people are travelling in a carriage. The table classifies them by age and by whether or not they hold a travel pass.

With pass Without pass Total
Young people 28 12 40
Adults 32 48 80
Total 60 60 120

One person is chosen at random from the carriage.

a) Given that the person is young, calculate the probability that they hold a pass.

b) Given that they hold a pass, calculate the probability that they are young.

c) Given that they do not hold a pass, calculate the probability that they are an adult.

Solution

a) The condition is "young", so the universe is the 40 people in the first row. Of these, 28 hold a pass:

b) Now the condition is "with pass", that is, the first column, with 60 people. Of these, 28 are young:

c) The condition is "without pass": 60 people, of whom 48 are adults:

Notice that parts a) and b) give different results: the numerator is the same (28), but the denominator changes with the condition.

Example 2 Medium

Two events with given data

In a neighbourhood, a household is chosen at random. Let be the event "has a dog" and the event "has a cat". It is known that

a) Calculate the probability that the household has a dog and a cat.

b) Given that the household has a cat, calculate the probability that it has a dog.

c) Given that the household has a dog, calculate the probability that it has a cat.

d) Are and independent?

Solution

a) Use and solve for it:

b) Divide by the probability of the condition, which is :

c) Now the condition is :

d) Compare with : They do not coincide, so and are not independent. This is consistent with the previous parts: . Having a cat makes it more likely that the household has a dog.

Example 3 Hard

Independent, but not mutually exclusive

In a café, a customer chosen at random orders a dessert (event ) and orders a coffee (event ). It is known that , that and that and are independent.

a) Calculate .

b) Calculate .

c) Calculate the probability that a customer orders a coffee, given that they did not order a dessert.

d) Are and mutually exclusive?

Solution

a) Since they are independent, . Substitute this into the formula for the union, with :

b) .

c) If and are independent, so are and . Therefore, knowing that they did not order a dessert does not change the probability of the coffee: This can be checked with the definition: and , so .

d) Since , the events are not mutually exclusive: some customers order a dessert and a coffee at the same time.

In the exam: you earn marks for writing as a consequence of independence and substituting it into the formula for the union; without that step you cannot reach the value of . In part d) it is not enough to say "they are independent, so they are not mutually exclusive": use the value of to justify it.

Common mistakes

Summary

  • : the probability of when the universe is reduced to .
  • Product rule: .
  • 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, two events are never both.
  • In the exam, write and to justify independence.
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