7.2: Conditional Probability
- Page ID
- 139287
\( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)
\( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)
\( \newcommand{\dsum}{\displaystyle\sum\limits} \)
\( \newcommand{\dint}{\displaystyle\int\limits} \)
\( \newcommand{\dlim}{\displaystyle\lim\limits} \)
\( \newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\)
( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\)
\( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)
\( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\)
\( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)
\( \newcommand{\Span}{\mathrm{span}}\)
\( \newcommand{\id}{\mathrm{id}}\)
\( \newcommand{\Span}{\mathrm{span}}\)
\( \newcommand{\kernel}{\mathrm{null}\,}\)
\( \newcommand{\range}{\mathrm{range}\,}\)
\( \newcommand{\RealPart}{\mathrm{Re}}\)
\( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)
\( \newcommand{\Argument}{\mathrm{Arg}}\)
\( \newcommand{\norm}[1]{\| #1 \|}\)
\( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)
\( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\AA}{\unicode[.8,0]{x212B}}\)
\( \newcommand{\vectorA}[1]{\vec{#1}} % arrow\)
\( \newcommand{\vectorAt}[1]{\vec{\text{#1}}} % arrow\)
\( \newcommand{\vectorB}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)
\( \newcommand{\vectorC}[1]{\textbf{#1}} \)
\( \newcommand{\vectorD}[1]{\overrightarrow{#1}} \)
\( \newcommand{\vectorDt}[1]{\overrightarrow{\text{#1}}} \)
\( \newcommand{\vectE}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash{\mathbf {#1}}}} \)
\( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)
\(\newcommand{\longvect}{\overrightarrow}\)
\( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)
\(\newcommand{\avec}{\mathbf a}\) \(\newcommand{\bvec}{\mathbf b}\) \(\newcommand{\cvec}{\mathbf c}\) \(\newcommand{\dvec}{\mathbf d}\) \(\newcommand{\dtil}{\widetilde{\mathbf d}}\) \(\newcommand{\evec}{\mathbf e}\) \(\newcommand{\fvec}{\mathbf f}\) \(\newcommand{\nvec}{\mathbf n}\) \(\newcommand{\pvec}{\mathbf p}\) \(\newcommand{\qvec}{\mathbf q}\) \(\newcommand{\svec}{\mathbf s}\) \(\newcommand{\tvec}{\mathbf t}\) \(\newcommand{\uvec}{\mathbf u}\) \(\newcommand{\vvec}{\mathbf v}\) \(\newcommand{\wvec}{\mathbf w}\) \(\newcommand{\xvec}{\mathbf x}\) \(\newcommand{\yvec}{\mathbf y}\) \(\newcommand{\zvec}{\mathbf z}\) \(\newcommand{\rvec}{\mathbf r}\) \(\newcommand{\mvec}{\mathbf m}\) \(\newcommand{\zerovec}{\mathbf 0}\) \(\newcommand{\onevec}{\mathbf 1}\) \(\newcommand{\real}{\mathbb R}\) \(\newcommand{\twovec}[2]{\left[\begin{array}{r}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\ctwovec}[2]{\left[\begin{array}{c}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\threevec}[3]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\cthreevec}[3]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\fourvec}[4]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\cfourvec}[4]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\fivevec}[5]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\cfivevec}[5]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\mattwo}[4]{\left[\begin{array}{rr}#1 \amp #2 \\ #3 \amp #4 \\ \end{array}\right]}\) \(\newcommand{\laspan}[1]{\text{Span}\{#1\}}\) \(\newcommand{\bcal}{\cal B}\) \(\newcommand{\ccal}{\cal C}\) \(\newcommand{\scal}{\cal S}\) \(\newcommand{\wcal}{\cal W}\) \(\newcommand{\ecal}{\cal E}\) \(\newcommand{\coords}[2]{\left\{#1\right\}_{#2}}\) \(\newcommand{\gray}[1]{\color{gray}{#1}}\) \(\newcommand{\lgray}[1]{\color{lightgray}{#1}}\) \(\newcommand{\rank}{\operatorname{rank}}\) \(\newcommand{\row}{\text{Row}}\) \(\newcommand{\col}{\text{Col}}\) \(\renewcommand{\row}{\text{Row}}\) \(\newcommand{\nul}{\text{Nul}}\) \(\newcommand{\var}{\text{Var}}\) \(\newcommand{\corr}{\text{corr}}\) \(\newcommand{\len}[1]{\left|#1\right|}\) \(\newcommand{\bbar}{\overline{\bvec}}\) \(\newcommand{\bhat}{\widehat{\bvec}}\) \(\newcommand{\bperp}{\bvec^\perp}\) \(\newcommand{\xhat}{\widehat{\xvec}}\) \(\newcommand{\vhat}{\widehat{\vvec}}\) \(\newcommand{\uhat}{\widehat{\uvec}}\) \(\newcommand{\what}{\widehat{\wvec}}\) \(\newcommand{\Sighat}{\widehat{\Sigma}}\) \(\newcommand{\lt}{<}\) \(\newcommand{\gt}{>}\) \(\newcommand{\amp}{&}\) \(\definecolor{fillinmathshade}{gray}{0.9}\)Often it is required to compute the probability of an event given that another event has occurred.
What is the probability that two cards drawn at random from a deck of playing cards will both be aces?
Solution
It might seem that you could use the formula for the probability of two independent events and simply multiply \(\dfrac{4}{52} \cdot \dfrac{4}{52}=\dfrac{1}{169}\). This would be incorrect, however, because the two events are not independent. Once the first card is drawn, there are only 51 cards remaining in the deck. If the first card drawn is an ace, then the probability that the second card is also an ace would be \(\dfrac{3}{51}\) because there would only be three aces 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 \(\mid\) 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 \(\dfrac{3}{51}=\dfrac{1}{17}\).
Thus, the probability of both cards being aces is \(\dfrac{4}{52} \cdot \dfrac{3}{51}=\dfrac{12}{2652}=\dfrac{1}{221}\).
The probability that event B occurs, given that event A has happened, is represented as P(B | A) This is read as “the probability of B given A”
Find the probability that a die rolled shows a 6, given that a flipped coin shows a head.
Solution
These are two independent events, so the probability of the die rolling a 6 is \(\dfrac{1}{6}\), regardless of the result of the coin flip.
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 cars. Find the probability that a randomly chosen person:
a) Has a speeding ticket given they have a red car
b) Has a red car given they have a speeding ticket
|
Speeding |
No Speeding |
Total |
|
|
Red car |
15 |
135 |
150 |
|
Not red car |
45 |
470 |
515 |
|
Total |
60 |
605 |
665 |
Solution
a) 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
\[
\mathrm{P}(\text { ticket } \mid \text { red car })=\dfrac{15}{150}=\dfrac{1}{10}=0.1
\]
b) 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
\[
\mathrm{P}(\text { red car } \mid \text { ticket })=\dfrac{15}{60}=\dfrac{1}{4}=0.25 \text {. }
\]
Notice from the last example 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 an accident,
given your age, your car, your car color, your driving history, etc., and price your policy based on that likelihood.
If Events A and B are dependent (not independent), then P(A and B) = P(A) · P(B | A)
If you pull 2 cards out of a deck, what is the probability that both are spades?
Solution
The probability that the first card is a spade is \(\dfrac{13}{52}\).
The probability that the second card is a spade, given the first was a spade, is \(\dfrac{12}{51}\), since there is one less spade in the deck, and one less total cards.
The probability that both cards are spades is \(\dfrac{13}{52} \cdot \dfrac{12}{51}=\dfrac{156}{2652} \approx 0.0588\)
If you draw 2 cards from a standard deck, what is the probability that both cards are red
kings?
- Answer
- 0.00075
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
a) P(not pregnant | positive test result)
b) P(positive test result | not pregnant)
|
Positive test |
Negative test |
Total |
|
|
Pregnant |
70 |
4 |
74 |
|
Not Pregnant |
5 |
14 |
19 |
|
Total |
75 |
18 |
93 |
Solution
a) 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 \(\mid\) positive test result \()=\dfrac{5}{75} \approx 0.067\].
b) 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 \text { (positive test result } \mid \text { not pregnant })=\dfrac{5}{19} \approx 0.263
\]
The second result is what is usually called a false positive: A positive result when the woman is not actually pregnant.

