Home / IB DP Maths / Application and Interpretation HL / IB Mathematics AI SL Use of Venn diagrams, tree diagrams MAI Study Notes

IB Mathematics AI SL Use of Venn diagrams, tree diagrams MAI Study Notes - New Syllabus

IB Mathematics AI SL Use of Venn diagrams, tree diagrams MAI Study Notes

LEARNING OBJECTIVE

  • Use of Venn diagrams, tree diagrams, sample space diagrams and tables of outcomes to calculate probabilities

Key Concepts: 

  • Conditional Probability
  • Sample Space Diagrams

MAI HL and SL Notes – All topics

Venn Diagrams
Used to visually represent sets and their relationships.

Universal Set (\( S \)):
Contains all possible elements under consideration.

Example:
Let \( S = \{a, b, c, d, e, f, g, h, i, j\} \), 

\( A = \{a, b, c, d, e\} \)
\( B = \{d, e, f, g\} \)

Venn Diagram:

Key:
\( n(S) = 10 \) (total elements)
\( n(A) = 5 \), \( n(B) = 4 \)

Set Operations
1. Complement (\( A’ \) or \( \overline{A} \))


Elements not in \( A \).
\( A’ = \{f, g, h, i, j\} \).

2. Union (\( A \cup B \))


 All elements in \( A \) or \( B \).
\( A \cup B = \{a, b, c, d, e, f, g\} \).

3. Intersection (\( A \cap B \))


Elements common to both \( A \) and \( B \).
\( A \cap B = \{d, e\} \).

$ n(A \cup B) = n(A) + n(B) – n(A \cap B) $
Here: \( 7 = 5 + 4 – 2 \).

Tree Diagrams

A probability tree diagram is a visual representation that helps organize and calculate the probabilities of two or more dependent or independent events.
It clearly shows all possible outcomes and the paths that lead to them.

Structure of a Tree Diagram:

  • First Event:
    • Starts at a single point (the root).
    • Branches represent each possible outcome.
    • Probabilities are written on the branches.
  • Subsequent Events:
    • Each outcome from the first event branches into the next set of outcomes.
    • Continue this process for all events.
  • Final Outcomes:
    • The ends of the branches represent combined outcomes.
    • Multiply probabilities along each path to find the joint probability.

Key Properties:

  • The sum of probabilities on branches from the same point = 1.
  • Probabilities can be expressed as fractions, decimals, or percentages.
  • For independent events, probabilities along the branches are multiplied.

Example

A game is played where one of 10 letters is picked.

 

▶️Answer/Explanation

Solution:

The distribution is:

A appears 4 times → $P(A) = \frac{4}{10} = 0.4$
B appears 6 times → $P(B) = \frac{6}{10} = 0.6$

We play this game twice.

Two A’s: $P(AA) = 0.16$
Two B’s: $P(BB) = 0.36$
A then B: $P(AB) = 0.24$

Sample Space Diagram

A sample space diagram lists all possible outcomes of an experiment and is useful for calculating probabilities.

Example

Each coin has 2 possible outcomes:

Heads (H)

Tails (T)

Find the probability of getting two tails

▶️Answer/Explanation

Solution:

To find the probability of getting two tails, we list all combinations using a sample space diagram:

Total Outcomes:

HH, HT, TH, TT

There are 4 outcomes in total.
Only 1 outcome is two tails (TT).

$P(\text { two tails })=\frac{1}{4}$

Combined Events

Remember the basic property for combined events

$
n(A \cup B) = n(A) + n(B) – n(A \cap B)
$

If we divide all terms by the TOTAL, we obtain:

$
P(A \cup B) = P(A) + P(B) – P(A \cap B)
$

Example

Consider the Venn diagram where the total number of elements is 100:

 

Find $P(A \cup B) ?$ and Venn diagram contain probabilities

▶️Answer/Explanation

Solution:

In region A only: 20
In both A and B: 10
In region B only: 30
Outside A and B: 40

Then:

$
P(A) = 0.3,\quad P(B) = 0.4,\quad P(A’) = 0.7,\quad P(B’) = 0.6
$

Also:

$
P(A \cap B) = 0.1,\quad P(A \cup B) = 0.6
$

Clearly:

$
P(A \cup B) = P(A) + P(B) – P(A \cap B)
$

$
0.6 = 0.3 + 0.4 – 0.1
$

A Venn diagram may also contain probabilities instead of numbers of elements. The Venn diagram above then takes the form:

Mutually Exclusive (Disjoint) Sets

Two sets are mutually exclusive if they have no common elements:
$ A \cap B = \emptyset $
Example: \( A = \{1, 2\} \), \( B = \{3, 4\} \).

In this case only

If \( A \) and \( B \) are disjoint:

$ n(A \cup B) = n(A) + n(B) $

$ P(A \cup B) = P(A) + P(B) $

Conditional Probability

The conditional probability of an event A, given that event B has occurred, is:

$
P(A|B) = \frac{P(A \cap B)}{P(B)}
\quad \text{provided } P(B) \ne 0
$

It represents the probability of A occurring under the condition that B is known to have occurred.

Intuitive Idea

$P(A)$ is the probability of A in the whole sample space.
$P(A|B)$ is the probability of A within the part of the sample space where B has occurred.

Example

Let the universal set have 100 elements:

 

Find $P(A|B)$

▶️Answer/Explanation

Solution:

Then:

$
P(A|B) = \frac{n(A \cap B)}{n(B)} = \frac{10}{40} = 0.25
$

Also:

$
P(A \cap B) = \frac{10}{100} = 0.1, \quad P(B) = \frac{40}{100} = 0.4
\Rightarrow
P(A|B) = \frac{0.1}{0.4} = 0.25
$

Example

Study the given table.

Find:

$P(\text{smoker}) = ?$
$P(\text{smoker}|\text{male}) =?$
$P(\text{male}|\text{smoker}) = ?$
$P(\text{non-smoker}|\text{female}) =?$

▶️Answer/Explanation

Solution:

$P(\text{smoker}) = \frac{60}{200} = 0.3$
$P(\text{smoker}|\text{male}) = \frac{40}{120} = \frac{1}{3}$
$P(\text{male}|\text{smoker}) = \frac{40}{60} = \frac{2}{3}$
$P(\text{non-smoker}|\text{female}) = \frac{60}{80} = 0.75$

 Key Formula

$
P(A \cap B) = P(A|B) \cdot P(B)
$

This formula is often used to find joint probability from conditional probability.

 Independent Events

Events A and B are independent if:

$
P(A|B) = P(A)
\quad \text{or} \quad
P(B|A) = P(B)
$

This means the occurrence of B does not affect the probability of A (and vice versa).

Equivalent Condition

$
P(A \cap B) = P(A) \cdot P(B)
$

This is often the most useful way to test whether two events are independent.

Example

Consider the following venn diagram.

A and B are independent?

▶️Answer/Explanation

Solution:

$P(A) = \frac{30}{120} = \frac{1}{4}$
$P(B) = \frac{40}{120} = \frac{1}{3}$
$P(A \cap B) = \frac{10}{120} = \frac{1}{12}$

Then:

$P(A|B) = \frac{10}{40} = \frac{1}{4} = P(A)$ 
$P(B|A) = \frac{10}{30} = \frac{1}{3} = P(B)$ 
$P(A) \cdot P(B) = \frac{1}{4} \cdot \frac{1}{3} = \frac{1}{12} = P(A \cap B)$ 

So A and B are independent.

Example

Given:

$P(A) = 0.4$,
$P(A \cup B) = 0.7$,
A and B are independent.

Find $P(B)$:

▶️Answer/Explanation

Solution:

$
P(A \cup B) = P(A) + P(B) – P(A)P(B)
\Rightarrow 0.7 = 0.4 + P(B) – 0.4P(B)
\Rightarrow 0.3 = 0.6P(B)
\Rightarrow P(B) = 0.5
$

Probabilities With and Without Replacement

When calculating probabilities across multiple events, it is important to distinguish between with replacement and without replacement situations. This affects whether events are independent or dependent, and how the total number of outcomes changes.

With Replacement

After each selection, the item is replaced back into the original set.
The total number of items remains constant.
Events are independent (the outcome of one event does not affect the next).

Example

With Replacement:

A bag contains 3 red balls and 2 blue balls.

A ball is selected twice, with replacement.

▶️Answer/Explanation

Solution:

Total balls = 5

$
P(\text{Red}) = \frac{3}{5}, \quad P(\text{Blue}) = \frac{2}{5}
$

Since the ball is replaced, the probabilities remain unchanged for the second draw.

$
P(\text{Red then Blue}) = \frac{3}{5} \times \frac{2}{5} = \frac{6}{25}
$

Without Replacement

After each selection, the item is not replaced back into the original set.
The total number of items decreases.
Events are dependent (the outcome of one event affects the next).

Example

Without Replacement

A bag contains 3 red balls and 2 blue balls.

A ball is selected twice, without replacement.

▶️Answer/Explanation

Solution:

$
P(\text{Red on first draw}) = \frac{3}{5}
$

After removing one red ball, 4 balls remain: 2 red and 2 blue.

$
P(\text{Blue on second draw}) = \frac{2}{4} = \frac{1}{2}
$

$
P(\text{Red then Blue}) = \frac{3}{5} \times \frac{1}{2} = \frac{3}{10}
$

Scroll to Top