Conditional probability
When new information arrives, our estimate of probability changes. Conditional probability is the formal tool for updating: P(A∣B) is the probability that event A occurs given that event B has occurred.
Definition
For events A and B in a sample space, with P(B)>0:
P(A∣B)=P(B)P(A∩B).
The condition "B has occurred" effectively shrinks the sample space to B. Within this reduced space, the proportion of outcomes that are also in A is P(A∩B)/P(B).
If P(B)=0, the conditional P(A∣B) is undefined (or arbitrary).
Key properties
For fixed B with P(B)>0, the function A↦P(A∣B) is a probability , it satisfies all axioms of probability:
- 0≤P(A∣B)≤1.
- P(B∣B)=1.
- P(∅∣B)=0.
- P(A1∪A2∣B)=P(A1∣B)+P(A2∣B) if A1,A2 disjoint.
- P(Ac∣B)=1−P(A∣B).
But note: P(A∣Bc) is not generally 1−P(A∣B). The complement of B is a different conditioning event.
Multiplication theorem
Rearranging the definition:
P(A∩B)=P(A∣B)P(B)=P(B∣A)P(A).
This is the multiplication rule: the joint probability is the product of the conditional and the marginal. It is the key to computing probabilities by sequential reasoning.
For three events:
P(A∩B∩C)=P(A)⋅P(B∣A)⋅P(C∣A∩B).
This generalises: peel off one event at a time, conditioning on what's accumulated.
Tree diagrams
When probabilities depend on sequential outcomes, tree diagrams help. At each node, branches represent possible next outcomes; the probability of each branch is conditional on the path so far. The probability of any path is the product of conditional probabilities along it.
Worked examples
Example 1. A fair die is rolled. Let A = the result is odd, B = the result is at least 4. Find P(A∣B).
B={4,5,6}, ∣B∣=3. A∩B={5}, ∣A∩B∣=1. P(A∣B)=1/3.
Example 2. A card is drawn from a standard deck. Find P(spade∣black).
P(black)=26/52=1/2. P(spade∩black)=P(spade)=13/52=1/4. So P(spade∣black)=(1/4)/(1/2)=1/2.
Example 3. A bag has 4 red and 6 blue balls. Two balls are drawn without replacement. Find the probability that both are red.
P(first red)=4/10=2/5. After removing one red: P(second red∣first red)=3/9=1/3. Joint: (2/5)(1/3)=2/15.
Example 4. Three cards are drawn from a deck (without replacement). Find P(all kings).
P(1st K)=4/52. P(2nd K∣1st K)=3/51. P(3rd K∣1st 2 K)=2/50. Product: 52⋅51⋅504⋅3⋅2=13260024=55251.
Example 5. Two fair coins are flipped. Given that at least one shows heads, find the probability that both show heads.
P(both H)=1/4. P(at least one H)=3/4. P(both H∣at least one H)=(1/4)/(3/4)=1/3.
Example 6. A box contains 3 defective and 7 good bulbs. Two bulbs are drawn at random one after the other (without replacement). Find the probability that both are good.
P(1st good)=7/10. P(2nd good∣1st good)=6/9=2/3. Joint: 7/10⋅2/3=14/30=7/15.
Try it yourself
- Roll two dice. Given the sum is 7, find P(both odd).
- A card is drawn. Find P(queen∣face card).
- Toss three coins. Given at least one tails, find P(exactly one tails).
- From a deck, two cards are drawn without replacement. Find P(both aces).
- A family has two children. Given at least one is a girl, find P(both girls). (Assume equally likely outcomes.)
- Roll a die twice. Find P(2nd is 6∣1st is even).
- From 5 boys and 4 girls, two are chosen. Find P(2nd is girl∣1st is boy).
- A jar has 5 white and 4 red balls. Three balls are drawn. Find P(all red).
- Given P(A)=0.6,P(B)=0.4,P(A∩B)=0.2, find P(A∣B) and P(B∣A).
- If P(A∣B)=0.5,P(B)=0.4, find P(A∩B).
- Two events: P(A)=0.3,P(B)=0.5,P(A∪B)=0.6. Find P(B∣A).
- Bag of 6 W, 4 B balls; draw without replacement. Find P(1st W, 2nd B).
- Two cards from a deck: P(both spades).
- Two coins: one is biased with P(H)=0.7, other fair. Choose one at random and flip. Given heads, find P(biased).
Pitfalls and tricks
- Conditional probability requires P(B)>0.
- The reduced sample space view is often easier: when computing P(A∣B), just count outcomes in B and ask what fraction are also in A.
- Tree diagrams are great for two- or three-step problems.
- Multiplication rule gives the joint as a product of conditional and marginal. Memorise both directions: P(A∩B)=P(A∣B)P(B)=P(B∣A)P(A).
- Conditional probability is not "given that B might occur" , it's "given that B has occurred." Always update accordingly.