topic badge

Honors: 9.03 Conditional probability

Lesson

Concept summary

Conditional probability

Notated as P(A \vert B), it is the probability that event A occurs given that event B has already occurred.

To find the probability of event A happening given that event B already happened we can use the following formula:

\displaystyle P\left( A \vert B \right)=\dfrac{P\left( A \cap B \right)}{P\left( B \right)}
\bm{A}
The first event
\bm{B}
The second event

We read P\left( A \vert B \right) as "The probability of A given B".

We can use the conditional probability formula to determine whether two events are independent.

For two independent events, A and B, the probability of both happening is \\ P(A \cap B)=P(A)\cdot P(B).

So the conditional probability formula becomes:

\begin{aligned} P\left( \left. A \right| B \right)&=\dfrac{P(A)\cdot P(B)}{P(B)} \\ &= P(A) \end{aligned}

and:

\begin{aligned} P\left( \left. B \right| A \right)&=\dfrac{P(A)\cdot P(B)}{P(A)} \\ &= P(B) \end{aligned}

Therefore, events A and B are independent if P\left( \left. A \right| B \right)=P(A) and P\left( \left. B \right| A \right)=P(B).

Worked examples

Example 1

A group of people were asked whether they went on a vacation last summer. The results are provided in the given table:

VacationNo vacationTotal
Male222648
Female322052
Total5446100

Find the probability that a randomly selected person went on a vacation, given that they are male.

Approach

For this event, A represents the people that went on vacation, and B represents the people that are male.

First we should find P(\text{B}) and P(A \cap B) and then substitute the values into the formula for P(A \vert B).

Solution

\displaystyle P(\text{B})\displaystyle =\displaystyle P(\text{Male})
\displaystyle \text{}\displaystyle =\displaystyle \dfrac{48}{100}There were 48 males out of 100 people surveyed.
\displaystyle P(A \cap B)\displaystyle =\displaystyle P(\text{Vacation} \cap \text{Male})
\displaystyle \text{}\displaystyle =\displaystyle \dfrac{22}{100}There were 22 males that went on vacation out of the 100 people surveyed.
\displaystyle P(A \vert B)\displaystyle =\displaystyle \dfrac{P\left( A \cap B \right)}{P\left( B \right)}Conditional probability formula
\displaystyle P(\text{Vacation} \vert \text{Male})\displaystyle =\displaystyle \dfrac{P\left( \text{Vacation} \cap \text{Male} \right)}{P\left( \text{Male} \right)}
\displaystyle \text{}\displaystyle =\displaystyle \dfrac{\dfrac{22}{100}}{\dfrac{48}{100}}
\displaystyle \text{}\displaystyle =\displaystyle \dfrac{11}{24}

The probability that a person went on a vacation, given that they are male is \dfrac{11}{24}.

Reflection

Alternatively, we could find this probability using a different method.

Because it is given that the person is a male, we are only selecting the person out of the 48 males that were surveyed. So the total number of outcomes is 48. The number of these people that went on vacation is 22. So the number of outcomes that match the event is 22. So can use the following formula:

\displaystyle P(\text{event})\displaystyle =\displaystyle \dfrac{\text{number outcomes that match the event}}{\text{total number of possible outcomes}}
\displaystyle P(\text{Vacation} \vert \text{Male})\displaystyle =\displaystyle \dfrac{22}{48}
\displaystyle \text{}\displaystyle =\displaystyle \dfrac{11}{24}

Example 2

John selects one card from a standard deck of 52 cards:

A standard deck of 52 cards with 2 black suits, clubs and spades, and 2 red suits, hearts and diamonds. Each suit has 13 cards: Ace, King, Queen, Jack, 10, 9, 8, 7, 6, 5, 4, 3, and 2.

He considers the following events:

  • Event A: A black card will be selected.

  • Event B: A Jack card will be selected.

a

Describe P\left( \left. A \right| B \right).

Approach

The notation P\left( \left. A \right| B \right) means the probability of A given B. This tells us that the event B has already happened and we want to find the probability that event A happens next.

Solution

P\left( \left. A \right| B \right) is the probability that a black card was selected given that the card selected is a Jack.

b

Describe P\left( \left. B \right| A \right).

Approach

The notation P\left( \left. B \right| A \right) means the probability of B given A. This tells us that the event A has already happened and we want to find the probability that event B happens next.

Solution

P\left( \left. B \right| A \right) is the probability that a Jack was selected given that the card selected is black.

c

Describe P\left( A \cap B\right).

Approach

The notation P\left( A \cap B \right) means the probability that both A and B occur.

Solution

Given the events A and B, P\left( A \cap B\right) is the probability that both a black card and a Jack is selected. This is the probability that a black Jack is selected.

d

Determine if A and B are independent events using conditional probability.

Approach

Events A and B are independent if P\left( \left. A \right| B \right)=P(A) and P\left( \left. B \right| A \right)=P(B).

So we will need to find P(A), P(B), P(A \vert B) and P(B \vert A) to determine whether A and B are independent.

Solution

The total number of cards is 52. There are 26 black cards and 4 Jack cards. So:

\displaystyle P(A)\displaystyle =\displaystyle \dfrac{26}{52}26 black cards out of a deck of 52 cards
\displaystyle \text{}\displaystyle =\displaystyle \dfrac{1}{2}Simplified
\displaystyle P(B)\displaystyle =\displaystyle \dfrac{4}{52}4 jacks out of a deck of 52 cards
\displaystyle \text{}\displaystyle =\displaystyle \dfrac{1}{13}Simplified
\displaystyle P(A \cap B)\displaystyle =\displaystyle \dfrac{2}{52}2 black jacks out of a deck of 52 cards
\displaystyle P(A \vert B)\displaystyle =\displaystyle \dfrac{P(A \cap B)}{P(B)}Conditional probability formula
\displaystyle \text{}\displaystyle =\displaystyle \dfrac{\dfrac{2}{52}}{\dfrac{4}{52}}Substitution
\displaystyle \text{}\displaystyle =\displaystyle \dfrac{1}{2}Simplified
\displaystyle \text{}\displaystyle =\displaystyle P(A)The first condition, P\left( \left. A \right| B \right)=P(A), holds
\displaystyle P(B \vert A)\displaystyle =\displaystyle \dfrac{P(A \cap B)}{P(A)}Conditional probability formula
\displaystyle \text{}\displaystyle =\displaystyle \dfrac{\dfrac{2}{52}}{\dfrac{26}{52}}Substitution
\displaystyle \text{}\displaystyle =\displaystyle \dfrac{1}{13}Simplified
\displaystyle \text{}\displaystyle =\displaystyle P(B)The second condition, P\left( \left. B \right| A \right)=P(B), holds

Since P\left( \left. A \right| B \right)=P(A) and P\left( \left. B \right| A \right)=P(B), we have shown that A and B are independent events.

Outcomes

MA.912.DP.4.1

Describe events as subsets of a sample space using characteristics, or categories, of the outcomes, or as unions, intersections or complements of other events.

MA.912.DP.4.3

Calculate the conditional probability of two events and interpret the result in terms of its context.

MA.912.DP.4.4

Interpret the independence of two events using conditional probability.

What is Mathspace

About Mathspace