To find the probability of event A happening given that event B already happened we can use the following formula:
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).
For dependent events, the probability of B occuring depends on whether or not A occurred. We use the notation: P\left(A \vert B \right) to say "the probability of A given that B has occurred". The probability of both events occuring is the product of the probability of B and the probability of A after B occurs:
Notice that this formula is a rearrangement of the conditional probability formula.
A group of people were asked whether they went on a vacation last summer. The results are provided in the given table:
Vacation | No vacation | Total | |
---|---|---|---|
Male | 22 | 26 | 48 |
Female | 32 | 20 | 52 |
Total | 54 | 46 | 100 |
Find the probability that a randomly selected person went on a vacation, given that they are male.
John selects one card from a standard deck of 52 cards:
He considers the following events:
Event A: A black card will be selected.
Event B: A Jack card will be selected.
Describe P\left( \left. A \right| B \right).
Describe P\left( \left. B \right| A \right).
Describe P\left( A \cap B\right).
Determine if A and B are independent events using conditional probability.