Statistics and Mechanics Year 2, chapter 2 (Conditional probability), section 2.2
Conditional probability
P ( A ∣ B ) P(A \mid B) P ( A ∣ B ) is the probability of A A A given that B B B has happened :
P ( A ∣ B ) = P ( A ∩ B ) P ( B ) P(A \mid B) = \frac{P(A \cap B)}{P(B)} P ( A ∣ B ) = P ( B ) P ( A ∩ B )
Knowing B B B has happened reduces the sample space to B B B .
Independence
A A A and B B B are independent if knowing one does not change the probability of the other:
P ( A ∣ B ) = P ( A ) equivalently P ( A ∩ B ) = P ( A ) P ( B ) P(A \mid B) = P(A) \qquad\text{equivalently}\qquad P(A \cap B) = P(A)P(B) P ( A ∣ B ) = P ( A ) equivalently P ( A ∩ B ) = P ( A ) P ( B )
Worked example 1: a table
Likes tea
Does not
Total
Adult
30
20
50
Child
10
40
50
Total
40
60
100
P ( adult ∣ likes tea ) = 30 40 = 0.75 P(\text{adult} \mid \text{likes tea}) = \dfrac{30}{40} = 0.75 P ( adult ∣ likes tea ) = 40 30 = 0.75 . P ( likes tea ∣ child ) = 10 50 = 0.2 P(\text{likes tea} \mid \text{child}) = \dfrac{10}{50} = 0.2 P ( likes tea ∣ child ) = 50 10 = 0.2 .
Worked example 2: from probabilities
P ( A ) = 0.5 P(A) = 0.5 P ( A ) = 0.5 , P ( B ) = 0.4 P(B) = 0.4 P ( B ) = 0.4 and P ( A ∩ B ) = 0.2 P(A \cap B) = 0.2 P ( A ∩ B ) = 0.2 .
P ( A ∣ B ) = 0.2 0.4 = 0.5 P(A \mid B) = \frac{0.2}{0.4} = 0.5 P ( A ∣ B ) = 0.4 0.2 = 0.5
This equals P ( A ) P(A) P ( A ) , so A A A and B B B are independent .
Worked example 3: not independent
If P ( A ∩ B ) = 0.1 P(A \cap B) = 0.1 P ( A ∩ B ) = 0.1 instead, P ( A ∣ B ) = 0.25 ≠ 0.5 = P ( A ) P(A \mid B) = 0.25 \ne 0.5 = P(A) P ( A ∣ B ) = 0.25 = 0.5 = P ( A ) , so A A A and B B B are not independent.
Interpreting words
"Given that", "if" and "of those who" all signal conditional probability. The condition goes after the bar and forms the denominator .
Common mistake: dividing by the wrong probability. The denominator is the probability of the given event, P ( B ) P(B) P ( B ) in P ( A ∣ B ) P(A \mid B) P ( A ∣ B ) . Also, P ( A ∣ B ) P(A \mid B) P ( A ∣ B ) is usually not equal to P ( B ∣ A ) P(B \mid A) P ( B ∣ A ) .
Exam tip: write the formula first, then substitute, and compare with P ( A ) P(A) P ( A ) to test independence. For tables, restrict attention to the row or column of the given event.
Check yourself
What does P ( A ∣ B ) P(A \mid B) P ( A ∣ B ) mean?
The probability of A A A given that B B B has occurred.
P ( A ∩ B ) = 0.15 P(A \cap B) = 0.15 P ( A ∩ B ) = 0.15 and P ( B ) = 0.5 P(B) = 0.5 P ( B ) = 0.5 . Find P ( A ∣ B ) P(A \mid B) P ( A ∣ B ) .
0.3 0.3 0.3 .
What is the denominator in P ( A ∣ B ) P(A \mid B) P ( A ∣ B ) ?
P ( B ) P(B) P ( B ) .
Stuck on this topic? Get friendly one-to-one help with Maths. Pick a time that suits you and pay only after the lesson.