Remember to work through each example in the text and in the EXAMPLE and TRY IT boxes with a pencil on paper, pausing as frequently as needed to digest the process. Watch the videos by working them out on paper, pausing the video as frequently as you need to make sense of the demonstration. Don’t be afraid to ask for help — hard work and willingness to learn translate into success!
In the previous section we computed the probabilities of events that were independent of each other, for example, flipping a coin and rolling a die. In this section, we will consider events that are dependent on each other, using an idea called conditional probability. For example, if you draw a card from a deck, then the sample space for the next card drawn has changed, because you are now working with a deck of 51 cards. Let’s see how this might play out in the next example.
example
What is the probability that two cards drawn at random from a deck of playing cards will both be aces?
Show Solution
It might seem that you could use the formula for the probability of two independent events and simply multiply [latex]\frac{4}{52}\cdot\frac{4}{52}[/latex]. This would be incorrect, however, because the two events are not independent. If the first card drawn is an ace, then the probability of drawing an ace again would be different because there would only be three aces left in the deck and there are only 51 cards left in the deck.
Once the first card chosen is an ace, the probability that the second card chosen is also an ace is called the conditional probability of drawing an ace. In this case the “condition” is that the first card is an ace.
Symbolically, we write this as: P(ace on second draw | an ace on the first draw).
The vertical bar “|” is read as “given,” so the above expression is short for “The probability that an ace is drawn on the second draw given that an ace was drawn on the first draw.” What is this probability?
After an ace is drawn on the first draw, there are 3 aces out of 51 total cards left. This means that the conditional probability of drawing an ace after one ace has already been drawn is [latex]\frac{3}{51}=\frac{1}{17}[/latex]. Thus, the probability of both cards being aces is [latex]\frac{4}{52}\cdot\frac{3}{51}=\frac{12}{2652}=\frac{1}{221}[/latex].
Conditional Probability
The probability the event B occurs, given that event A has happened, is notated as [latex]P(B|A)[/latex]. This notation is read as “the probability of B given A.”
If events A and B are not independent, then [latex]P(A\text{ and }B)=P(A)\cdot P(B|A)[/latex].
example
If you pull 2 cards out of a deck, what is the probability that both are spades?
Show Solution
The probability that the first card is a spade is [latex]\frac{13}{52}[/latex].
The probability that the second card is a spade, given the first was a spade, is [latex]\frac{12}{51}[/latex], since there is one less spade in the deck, and one less total cards.
The probability that both cards are spades is [latex]\frac{13}{52}\cdot\frac{12}{51}=\frac{156}{2652}\approx0.0588[/latex]
Try It
Example
The table below shows the number of survey subjects who have received and not received a speeding ticket in the last year, and the color of their car. Find the probability that a randomly chosen person:
has a speeding ticket given they have a red car
has a red car given they have a speeding ticket
Speeding ticket
No speeding ticket
Total
Red car
15
135
150
Not red car
45
470
515
Total
60
605
665
Show Solution
Since we know the person has a red car, we are only considering the 150 people in the first row of the table. Of those, 15 have a speeding ticket, so P(ticket | red car) = [latex]\frac{15}{150}=\frac{1}{10}=0.1[/latex]
Since we know the person has a speeding ticket, we are only considering the 60 people in the first column of the table. Of those, 15 have a red car, so P(red car | ticket) = [latex]\frac{15}{60}=\frac{1}{4}=0.25[/latex].
*Notice that P(B | A) is not equal to P(A | B).*
These kinds of conditional probabilities are what insurance companies use to determine your insurance rates. They look at the conditional probability of you having accident, given your age, your car, your car color, your driving history, etc., and price your policy based on that likelihood. View more about conditional probability in the following video.
Example
If you draw two cards from a deck, what is the probability that you will get the Ace of Diamonds and a black card?
Show Solution
You can satisfy this condition by having Case A or Case B, as follows:
Case A) you can get the Ace of Diamonds first and then a black card or
Case B) you can get a black card first and then the Ace of Diamonds.
Let’s calculate the probability of Case A. The probability that the first card is the Ace of Diamonds is [latex]\frac{1}{52}[/latex]. The probability that the second card is black given that the first card is the Ace of Diamonds is [latex]\frac{26}{51}[/latex] because 26 of the remaining 51 cards are black. The probability is therefore [latex]\frac{1}{52}\cdot\frac{26}{51}=\frac{1}{102}[/latex].
Now for Case B: the probability that the first card is black is [latex]\frac{26}{52}=\frac{1}{2}[/latex]. The probability that the second card is the Ace of Diamonds given that the first card is black is [latex]\frac{1}{51}[/latex]. The probability of Case B is therefore [latex]\frac{1}{2}\cdot\frac{1}{51}=\frac{1}{102}[/latex], the same as the probability of Case 1.
Recall that the probability of A or B is P(A) + P(B) – P(A and B). In this problem, P(A and B) = 0 since the first card cannot be the Ace of Diamonds and be a black card. Therefore, the probability of Case A or Case B is [latex]\frac{1}{102}+\frac{1}{102}=\frac{2}{102}[/latex]. The probability that you will get the Ace of Diamonds and a black card when drawing two cards from a deck is [latex]\frac{2}{102}[/latex].
These two playing card scenarios are discussed further in the following video.
Try It
Example
A home pregnancy test was given to women, then pregnancy was verified through blood tests. The following table shows the home pregnancy test results.
Find
P(not pregnant | positive test result)
P(positive test result | not pregnant)
Positive test
Negative test
Total
Pregnant
70
4
74
Not Pregnant
5
14
19
Total
75
18
93
Show Solution
Since we know the test result was positive, we’re limited to the 75 women in the first column, of which 5 were not pregnant. P(not pregnant | positive test result) = [latex]\frac{5}{75}\approx0.067[/latex].
Since we know the woman is not pregnant, we are limited to the 19 women in the second row, of which 5 had a positive test. P(positive test result | not pregnant) = [latex]\frac{5}{19}\approx0.263[/latex]
The second result is what is usually called a false positive: A positive result when the woman is not actually pregnant.
See more about this example here.
Try It
Candela Citations
CC licensed content, Original
Revision and Adaptation. Provided by: Lumen Learning. License: CC BY: Attribution