topic badge

10.04 Conditional probability

Lesson

Conditional probability

We are often interested in probabilities under certain conditions. For example what is the probability of it snowing tomorrow given the temperature today, or if an even number is rolled on a die what is the probability that it is a six. Giving conditions will reduce the sample space we are concerned with.

For two events A and B the probability of event A occurring given that event B has occurred has the notation P(A|B) which is read as the "probability of A given B". This given by: P(A|B)=\dfrac{P(A \cap B)}{P(B)}.

If we know the conditional probability we can calculate the probability of A and B using either: \\ P(A \cap B)=P(A|B)P(B) or P(A \cap B) = P(B|A)P(A).

Examples

Example 1

A basketball team has a probability of 0.8 of winning its first season and 0.15 of winning its first season and its second season. What is the probability of winning the second season, given they won the first?

Worked Solution
Create a strategy

Use the formula P(A|B)=\dfrac{P(A \cap B)}{P(B)}.

Apply the idea

From the given information we know that: P(\text{Win }1\text{st} \cap \text{Win }2\text{nd})=0.15 and P(\text{Win }1\text{st})=0.8.

We want to find P(\text{Win }2\text{nd}|\text{Win }1\text{st}) but we don't know the value of P(\text{Win }2\text{nd}). So instead we can find P(\text{Win }1\text{st} \cap \text{Win }2\text{nd}|\text{Win }1\text{st}) since this means the same thing.

\displaystyle P(\text{Win }1\text{st} \cap \text{Win }2\text{nd}|\text{Win }1\text{st})\displaystyle =\displaystyle \dfrac{P(\text{Win }1\text{st} \cap \text{Win }2\text{nd})}{P(\text{Win }1\text{st})}Use the formula
\displaystyle =\displaystyle \dfrac{0.15}{0.8}Substitute the probabilities
\displaystyle =\displaystyle \dfrac{3}{16}Simplify
Idea summary

For two events A and B, the probability of A occurring given that B has occurred is given by: P(A|B)=\dfrac{P(A \cap B)}{P(B)}

If we know the conditional probability we can calculate the probability of A and B using either: P(A \cap B)=P(A|B)P(B) or P(A \cap B) = P(B|A)P(A).

Conditional probability in independent events

Recall that independent events are events where the occurrence of one event does not affect the probability of the other occurring. Such as rolling a dice and then tossing a coin, or tossing a coin repeatedly. Now in the context of conditional probability this would mean that the probability of event A occurring given event B has occurred should simply be the probability of A - that is, it shouldn't matter if event B occurred or not. Mathematically we can write this property as: P(A|B)=P(A).

From our conditional formula we see that for independent events:

\displaystyle P(A \cap B)\displaystyle =\displaystyle P(A|B) \times P(B)
\displaystyle =\displaystyle P(A) \times P(B)

We used this fact last lesson to calculate the probability for P(A \cap B). We can now also use this fact to test if two events are independent if we know the probability of A,\,B and the probability of (A and B).

Examples

Example 2

The probability of two independent events, A and B are, P(A)=0.6 and P(B)=0.7.

Determine the probability of:

a

Both A and B occurring.

Worked Solution
Create a strategy

We can use the formula: P(A \cap B) = P(A) \times P(B).

Apply the idea
\displaystyle P(A \cap B)\displaystyle =\displaystyle 0.6 \times 0.7Substitute the probabilities
\displaystyle =\displaystyle 0.42Evaluate
b

Neither A nor B.

Worked Solution
Create a strategy

We can use the formula: P(A' \cap B') = P(A') \times P(B').

Apply the idea
\displaystyle P(A' \cap B')\displaystyle =\displaystyle (1-P(A))(1-P(B))Find the complement probabilities
\displaystyle P(A' \cap B')\displaystyle =\displaystyle (1-0.6)(1-0.7)Substitute P(A) = 0.6 and P(B)=0.7
\displaystyle =\displaystyle 0.4 \times 0.3Evaluate the subtraction
\displaystyle =\displaystyle 0.12Evaluate the multiplication
c

A or B or both.

Worked Solution
Create a strategy

This is the complement of neither A nor B.So we can use the formula: P(A \cup B)= 1-P(A' \cap B').

Apply the idea

We get from part (b) that P(A' \cap B') = 0.12.

\displaystyle P(A \cup B)\displaystyle =\displaystyle 1-0.12Substitute P(A' \cap B')=0.12
\displaystyle =\displaystyle 0.88Evaluate the subtraction
d

B but not A.

Worked Solution
Create a strategy

We can use the formula: P(B \cap A') = P(B) \times P(A').

Apply the idea
\displaystyle P(B \cap A')\displaystyle =\displaystyle 0.7(1-0.6)Substitute P(A)=0.6,\, P(B)=0.7
\displaystyle =\displaystyle 0.7 \times 0.4Evaluate the subtraction
\displaystyle =\displaystyle 0.28Evaluate the multiplication
e

A given that B occurs.

Worked Solution
Create a strategy

Since the two events are independent, we can use the formula : P(A|B) = P(A).

Apply the idea
\displaystyle P(A|B)\displaystyle =\displaystyle 0.6Substitute P(A)

Example 3

A flight departs from Melbourne to Sydney. The probability that the flight departs on time, given the weather is fine in Melbourne is 0.9, and the probability that the flight departs on time, given the weather is not fine in Melbourne is 0.7. The probability that the weather is fine on any particular day in July is 0.4.

a

By constructing a tree diagram or otherwise, find the probability that the flight from Melbourne to Sydney departs on time in a day in July.

Worked Solution
Create a strategy

Use a tree diagram.

Apply the idea

We can construct the following tree diagram for this situation:

A tree diagram with choices fine and not fine, and then On time and late. Ask your teacher for more information.

The flight can be on time in two different ways depending on whether the weather is fine: P(\text{On time})=P(\text{Fine}) \times P(\text{On time}|\text{Fine}) + P(\text{Not fine}) \times P(\text{On time}|\text{Not fine})

\displaystyle P(\text{On time})\displaystyle =\displaystyle 0.4 \times 0.9 + 0.6 \times 0.7Substitute the probabilities
\displaystyle =\displaystyle 0.78Evaluate
b

Find the probability that the weather is fine in Melbourne given that the flight departs on time on a day in July?

Worked Solution
Create a strategy

We can use the formula: P(A|B)=\dfrac{P(A \cap B)}{P(B)}.

Apply the idea
\displaystyle P(\text{Fine | On time})\displaystyle =\displaystyle \dfrac{P(\text{Fine}\cap \text{On time})}{P(\text{On time})}Write the formula
\displaystyle P(\text{Fine | On time})\displaystyle =\displaystyle \dfrac{0.4\times 0.9}{0.78}Substitute the probabilities
\displaystyle =\displaystyle \dfrac{6}{13}Evaluate
Idea summary

The following statements are true for any two independent events, A and B:

  • P(A \cap B)=P(A) \times P(B)

  • P(A|B) = P(A)

  • P(B|A) = P(B)

Outcomes

VCMSP348

Use the language of ‘if ....then, ‘given’, ‘of’, ‘knowing that’ to investigate conditional statements and identify common mistakes in interpreting such language.

What is Mathspace

About Mathspace