Educerie · IB Diploma · Mathematics: analysis and approaches
IB Mathematics AA 4.6 · SL and HL
Combined, conditional and independent events
When two events are in play at once, how do you find the probability of one or the other, of both, or of one given that you already know the other has happened?
What you will learn
Understand how Venn diagrams, trees, sample space diagrams and tables show two events and their overlap.
Know the addition rule for combined events, and that "or" includes both.
Understand mutually exclusive and independent events, and how they differ.
Understand conditional probability as a reduced sample space, including draws with and without replacement.
You must be able to
Calculate probabilities from a tree diagram, including draws without replacement.
Calculate a conditional probability from a Venn diagram, table or tree.
Complete a Venn diagram from given counts or probabilities.
Show, with numbers, whether two events are independent.
Calculate P(A ∪ B) or P(A ∩ B) using the addition rule.
State, with a reason, whether two events are mutually exclusive.
In the exam. Paper 1 and Paper 2, and probability questions like these are among the most frequent in the course. The command term is mostly "Find" (2 to 3 marks), with "Write down" for reading a finished diagram, then "Determine", "Show that" and "Complete". Section A questions of 5 to 7 marks: complete a Venn diagram or a tree, then find P(A∪B), P(A∣B) or show that two events are (or are not) independent. Section B questions build a tree in context over several parts, often without replacement, and finish with a conditional probability read backwards. Paper 1 expects exact fractions; Paper 2 accepts 3 significant figures.
1Venn diagrams and the language of events
A Venn diagram draws the sample space U as a rectangle and each event as a region inside it. Figure 1 shades the four regions you will meet most.
Figure 1 · Four regions every Venn question uses
A∩B, the intersection, is "A and B": outcomes in both.
A∪B, the union, is "A or B": outcomes in A, in B, or in both.
A′, the complement, is "not A": everything in U outside A.
A∩B′ is "A and not B", the part of A outside B. Its probability is P(A)−P(A∩B).
(A∪B)′ is "neither A nor B": everything outside both circles. It is the same region as A′∩B′, "not A and not B". So P(A′∩B′)=1−P(A∪B).
Do not find it as 1−P(A∩B). Do not multiply P(A′) by P(B′) unless the events are independent.
Filling in a Venn diagram from counts
Always start in the middle.
Example: a hill-walking club has 72 members. 43 own walking boots (B), 30 own trekking poles (T), and 17 own both. Figure 2 shows the order of work.
B∩T=17the overlap firstB only=43−17=26T only=30−17=13in B or T=26+17+13=56neither=72−56=16check: 26+17+13+16=72
Figure 2 · Seventy-two walkers, filled in from the middle out
The classic mistake is to write 43 in the boots-only region. The 43 is the whole circle, overlap included.
Once the diagram is filled, every probability is a count over 72: P(B∩T)=7217, P(B∪T)=7256=97, P(neither)=7216=92, P(exactly one item)=7226+13=7239=2413.
With probabilities in place of counts, the regions add to 1 instead of 72.
Three events
Three overlapping circles are sometimes given. Work innermost first.
Example: 45 students are asked which streaming services they use. Their answers:
24 use service X, 19 use Y, 14 use Z.
8 use X and Y, 6 use X and Z, 5 use Y and Z.
3 use all three.
Each pair total includes the centre, so take the centre away from it.
X∩Y∩Z=3centre firstpairs only: 8−3=5,6−3=3,5−3=2XY, XZ, YZsingles: X:24−3−5−3=13,Y:19−3−5−2=9,Z:14−3−3−2=6neither=45−(3+5+3+2+13+9+6)=45−41=4P(at least two services)=455+3+2+3=4513
2Tables of outcomes and sample space diagrams
A table of outcomes, also called a two-way table, counts a group sorted two ways at once. It holds the same information as a Venn diagram, in a grid. Its totals let you check your work.
Example (invented data): 200 residents are asked whether they live in the town or the village, and whether they hold a library card.
Card
No card
Total
Town
66
54
120
Village
48
32
80
Total
114
86
200
Read "and" from a single cell. Read "or" by combining cells.
P(village and card)=20048=256P(village or card)=20080+114−48=200146=10073check: 1−P(town and no card)=1−20054=10073
Subtracting 48 is the addition rule again: those villagers sit in both the row and the column.
A sample space diagram = a grid with one trial across the top and one down the side. Each cell is one pair of results. For two trials with equally likely cells, count the matching cells.
Example: a spinner with sectors 1 to 4 and a spinner with sectors 1 to 3 give a grid of 12 cells. The cells with a total of 5 are (2,3), (3,2) and (4,1). So P(total 5)=123=41.
Section 5 uses a grid for a conditional probability.
3Combined events: the addition rule, and what "or" means
In mathematics, "or" includes both. "The member owns boots or poles" is true of a member who owns both.
The guide calls this the non-exclusivity of "or", because everyday English often means "one or the other but not both".
In an exam, "A or B" always means A∪B, overlap included. If a question wants one but not both, it will say "exactly one" or "either … but not both".
Adding P(B) and P(T) counts every walker in the overlap twice, once in each circle. Subtract the overlap once to fix it.
P(A∪B)=P(A)+P(B)−P(A∩B)
P(B∪T)=7243+7230−7217=7256matches the count from Figure 2
The rule has four quantities, so any three give the fourth.
Example: a typical Paper 1 opening gives P(A)=0.55, P(B)=0.4 and P(A∪B)=0.75. Find P(A∩B).
0.75=0.55+0.4−P(A∩B)P(A∩B)=0.2
Then fill a Venn diagram with probabilities, starting in the middle. A only =0.55−0.2=0.35. B only =0.4−0.2=0.2. Neither =1−0.75=0.25. The four regions add to 1.
The guide allows solving from a diagram without formulae. We come back to this pair of events in section 7.
4Mutually exclusive events
Two events are mutually exclusive when they cannot happen at the same time. No outcome is in both, so the overlap is empty.
Mutually exclusive:P(A∩B)=0, so P(A∪B)=P(A)+P(B).
Figure 3 shows one roll of a die with two different pairs of events.
Panel (a).A={1,2} and B={5,6}. No score is in both, so the circles do not touch. P(A∪B)=62+62=64.
Panel (b).A = "even" ={2,4,6} and B = "at least 4" ={4,5,6}. They share 4 and 6, so they are not mutually exclusive. The addition needs the correction term: 63+63−62=64.
Figure 3 · Mutually exclusive, and not
Size alone can rule out mutual exclusivity. Events with P(A)=0.7 and P(B)=0.5 must overlap by at least 0.2, since the sum exceeds 1.
An event and its complement are always mutually exclusive, and together they fill U. So P(A)+P(A′)=1 in 4.5 is a special case of this rule.
To show that two events are not mutually exclusive, find P(A∩B) and show it is not 0. Or name one outcome in both. "They can both happen" without evidence earns nothing.
To state, with a reason, that they are mutually exclusive, quote P(A∩B)=0.
5Conditional probability
A conditional probability = the probability of one event when you already know that another has happened. P(A∣B) is read "the probability of A given B".
Knowing B has happened throws away every outcome outside B. What remains, B itself, is the new sample space. You ask what fraction of it is also in A.
Example: Figure 4 shows the walkers. Given that a member owns poles, only the 30 pole owners are left, and 17 of them own boots.
Figure 4 · Given T: the sample space shrinks to T
P(B∣T)=n(T)n(B∩T)=3017
Dividing top and bottom by 72 gives the formula booklet's rule.
P(A∣B)=P(B)P(A∩B), and rearranged, P(A∩B)=P(B)×P(A∣B).
Order matters. P(T∣B), the chance that a boot owner also owns poles, is 4317, not 3017. The event after the bar is the one you know, and it goes on the bottom.
The known event can be a complement
Given that a member does not own poles, what is the probability they own neither item? The T′ members are 26+16=42, and 16 of them are in neither circle.
P(B′∣T′)=P(T′)P(B′∩T′)=42/7216/72=218
Read the overlap off the diagram. Multiplying P(B′)×P(T′) for the top is the independence error again. Also P(A′∣B)=1−P(A∣B).
From a table
Use the restricted row or column.
Example: in the library table, given a village resident, the probability of a card is 8048=53, the village row only. Given a card, the probability of living in the village is 11448=198, the card column only. The top is the same 48, but the bottoms differ.
Two extremes
If A and B are mutually exclusive, P(A∣B)=0. Once B has happened, A cannot.
If B lies wholly inside A, P(A∣B)=1. Once B has happened, A has too.
When the conditional probability is given
The formula also runs the other way.
Example: P(B)=0.45, P(A∣B)=0.4 and P(A∪B)=0.7. You need P(A). The product form gives the overlap at once. The addition rule does the rest.
Check on a Venn diagram: 0.25+0.18+0.27+0.3=1. When the unknown is P(B) instead, write both relationships and combine them into one equation. Q6 does exactly that.
In context, and with values of a variable
Events are often hidden in words, as in "the delivery takes more than 3 days". Name the real events in your answer, not just P(A∣B). If one event lies inside the other, the overlap is the smaller one.
Example: a parcel's delivery time D days has P(D>3)=0.5 and P(D>7)=0.2.
Given that a parcel has not arrived after 3 days, find the probability it takes more than 7. More than 7 days is also more than 3, so the overlap is P(D>7), not a product.
P(D>7∣D>3)=P(D>3)P(D>7)=0.50.2=52
With a normal distribution in Paper 2, find the two probabilities on the GDC, then divide.
From a sample space diagram.
Example: two fair dice are rolled. Given that at least one shows a 5, find the probability that the total is 8. Figure 5 marks the 11 cells with a 5 in amber. That is the new sample space. Only two of them, (3,5) and (5,3), total 8.
Figure 5 · Two dice, given that at least one shows a 5
P(total 8∣at least one 5)=112compare P(total 8)=365≈0.139 with 112≈0.182
The condition changed the probability: new information changes how likely things are.
6Independent events
Two events are independent when knowing that one has happened does not change the probability of the other: P(A∣B)=P(A). Put that into P(A∩B)=P(B)×P(A∣B) and the rule appears.
Independent:P(A∩B)=P(A)×P(B). This is also the test: if the product equals the probability of both, the events are independent; if not, they are not.
Example: a fair coin and a fair die do not influence each other. So P(tails and a multiple of 3)=21×31=61.
Draws with replacement are independent. Draws without replacement are not, because the first draw changes what is left (section 7).
Testing for independence. Return to section 3's pair: P(A)=0.55, P(B)=0.4, P(A∩B)=0.2.
P(A)×P(B)=0.55×0.4=0.22=0.2=P(A∩B)so A and B are not independentcheck: P(A∣B)=0.40.2=0.5=0.55=P(A)
Now a pair that is independent: P(C)=0.25, P(D)=0.8, P(C∩D)=0.2. The product 0.25×0.8=0.2 equals the overlap, so C and D are independent.
The conditional tests agree.
P(C∣D)=0.80.2=0.25 and P(C∣D′)=0.20.25−0.2=0.25. So independence means P(C∣D)=P(C)=P(C∣D′).
Whether or not D happens, the chance of C is the same (unit 4.11 uses this form). It follows that C and D′, and C′ and D′, are independent too.
The same test works on counts. In the walkers' survey, P(B)×P(T)=7243×7230≈0.249, but P(B∩T)=7217≈0.236. So owning boots and owning poles are not independent.
In the library table, P(village)×P(card)=0.4×0.57=0.228, while P(village and card)=0.24. Not independent either. Q4(d) is a table where they are.
When a question says "determine whether", give the two numbers, compare them, and state the conclusion.
Missing value. Events E and F are independent with P(E)=0.35 and P(E∪F)=0.74. Find P(F). Replace the overlap in the addition rule by the product.
0.74=0.35+P(F)−0.35P(F)addition rule with independence0.39=0.65P(F),P(F)=0.6
Using independence: "at least one".
Example: a player scores a penalty with probability 0.75 each time, kicks being independent, and takes three. Use the complement to find the probability that at least one goes in. All three miss with probability 0.253=641. So P(at least one)=1−641=6463.
Independent is not the same as mutually exclusive
They sound similar and are almost opposites.
If one of two mutually exclusive events happens, the other certainly does not. Knowing one changes everything about the other. Events with non-zero probabilities cannot be both.
Example: P(A)=0.2 and P(B)=0.6, and they are mutually exclusive. Then P(A∩B)=0, but P(A)×P(B)=0.12. So they are not independent.
Mutually exclusive
Independent
Means
cannot both happen
one does not affect the other
Rule
P(A∩B)=0
P(A∩B)=P(A)×P(B)
On a Venn diagram
circles do not overlap
circles overlap, by exactly P(A)×P(B)
Use it for
P(A∪B)=P(A)+P(B)
P(A and B) as a product
7Tree diagrams, with and without replacement
A tree diagram = a picture of a sequence of trials. Each trial is a fan of branches. Each branch carries its probability. The branches from any one point add to 1. Two rules drive it.
Multiply along a path to get the probability of that whole sequence. Add the paths that give the event you want.
Multiplying along a path is P(A∩B)=P(A)×P(B∣A). The second branch carries the probability of the second event given the first.
With replacement.
Example: a tin holds 8 lemon (L) and 3 mint (M) sweets. One is taken, its flavour noted, and put back. Then a second is taken. The tin is restored, so the draws are independent. Figure 6 shows the same branches both times.
Figure 6 · Two sweets, with replacement
P(both lemon)=118×118=12164P(one of each)=P(LM)+P(ML)=12124+12124=12148
Without replacement
Now the first sweet is eaten. The two draws are dependent events: what comes out first changes the chances for the second.
After a lemon, the tin holds 7 lemon and 3 mint, 10 in all. After a mint, it holds 8 lemon and 2 mint. The second-draw branches change with the first, as in Figure 7.
Taking two items "at the same time" is the same as taking them one after another without replacement.
Figure 7 · Two sweets, without replacement
P(both lemon)=118×107=11056=5528P(one of each)=11024+11024=11048=5524P(at least one mint)=1−P(both lemon)=1−5528=5527check: 11056+11024+11024+1106=110110=1
Example: a basket holds 10 apples, 3 of them bruised, and three are taken without replacement. Multiply along the path, dropping the denominator by one each time. Exactly one bruised can happen in three orders (bruised first, second or third). Each order has the same product, so multiply by 3.
P(none bruised)=107×96×85=720210=247P(exactly one bruised)=3×103×97×86=720378=4021P(at least one bruised)=1−247=2417
Counting selections checks "none bruised": (310)(37)=12035=247. Forgetting to reduce the denominator, 10 to 9 to 8, is the commonest single slip in the topic.
A conditional probability read backwards
Trees are drawn in time order, but questions often ask about the first stage given the second.
Example: given that the second sweet is mint, find the probability that the first was lemon. Use the definition, with both parts read off the tree of Figure 7.
Example, in context: a bus is delayed by road works on 25% of mornings. With road works, the bus is late with probability 0.6. Without them, it is late with probability 0.08.
Being late raises the chance of road works from 0.25 to 75. HL students later meet this as Bayes' theorem. At SL the definition and a tree are enough.
Practice questions
35 questions on this note, from easy to hard. Each one you get right lights a star of this topic's constellation.
Practice · 4.6 Combined, conditional and independent events