IB Diploma Mathematics AA · Statistics and probability
Probability
1The language of probability
- An experiment has outcomes. The set of all outcomes is the sample space $U$.
- An event $A$ is a set of outcomes.
- For equally likely outcomes: $P(A) = \frac{n(A)}{n(U)}$.
Every probability is between 0 (impossible) and 1 (certain).
The complement $A'$ means "not $A$":
$$P(A') = 1 - P(A)$$
If an experiment is repeated $n$ times, the expected number of times $A$ happens is $n \times P(A)$.
rolling a fair die 300 times, you expect about $300 \times \frac{1}{6} = 50$ sixes.
Check yourself
The probability of rain tomorrow is 0.35. What is the probability of no rain?
Show the answer
0.65
P(A′) = 1 − P(A).
2Sample space diagrams
When two things happen together, list every combined outcome in a grid.
Two dice
- Two fair dice are rolled and the scores added.
- The grid has $6 \times 6 = 36$ equally likely outcomes.
- A total of 7 happens 6 ways: (1,6), (2,5), (3,4), (4,3), (5,2), (6,1).
- $P(\text{total} = 7) = \frac{6}{36} = \frac{1}{6}$. This is the most likely total.
Check yourself
Two coins are tossed. What is the probability of exactly one head?
Show the answer
1/2
HT and TH: two of the four outcomes.
3Venn diagrams and the addition rule
A Venn diagram: fill in the intersection first
- $A \cap B$ (intersection) means both $A$ and $B$.
- $A \cup B$ (union) means $A$ or $B$ or both.
The addition rule:
$$P(A \cup B) = P(A) + P(B) - P(A \cap B)$$
You subtract the overlap because it was counted twice.
Events are mutually exclusive if they cannot happen together, so $P(A \cap B) = 0$ and $P(A \cup B) = P(A) + P(B)$.
Using a Venn diagram
- In a class of 30, 18 play football, 12 play tennis and 5 play both.
- Football only: $18 - 5 = 13$. Tennis only: $12 - 5 = 7$.
- Neither: $30 - 13 - 5 - 7 = 5$.
- $P(F \cup T) = \frac{25}{30} = \frac{5}{6}$.
Always fill in the intersection first, then work outwards.
Check yourself
P(A) = 0.5, P(B) = 0.4, P(A ∩ B) = 0.1. What is P(A ∪ B)?
Show the answer
0.8
0.5 + 0.4 − 0.1 = 0.8.
4Tree diagrams
A tree diagram shows events in stages. Each set of branches adds to 1.
- Multiply along the branches to find the probability of a path.
- Add the paths that give the outcome you want.
A tree diagram for two counters taken without replacement
Two counters without replacement
- A bag has 5 red and 3 blue counters. Two are taken without replacement.
- $P(RR) = \frac{5}{8} \times \frac{4}{7} = \frac{20}{56}$.
- $P(\text{one of each}) = \frac{5}{8} \times \frac{3}{7} + \frac{3}{8} \times \frac{5}{7} = \frac{30}{56} = \frac{15}{28}$.
- $P(BB) = \frac{3}{8} \times \frac{2}{7} = \frac{6}{56}$.
- Check: $20 + 30 + 6 = 56$. The total is 1.
Without replacement, the second-stage probabilities change because there is one fewer counter.
Check yourself
On a tree diagram, how do you find the probability of one path?
Show the answer
Multiply the probabilities along it
Each stage happens and then the next, so multiply.
5Expected frequency
Expected frequency = probability × number of trials.
A biased die
- $P(6) = 0.25$.
- In 200 rolls, expected number of sixes: $0.25 \times 200 = 50$.
- Observed results will vary around this value.
Relative frequency from experiments estimates probability; more trials give better estimates.
Check yourself
A fair coin is flipped 80 times. What is the expected number of heads?
Show the answer
40
$0.5 \times 80$.
6Without replacement
When items are not replaced, probabilities change after each pick.
A bag with 5 red and 3 blue counters; two are taken without replacement
- $P(\text{both red}) = \frac{5}{8} \times \frac{4}{7} = \frac{20}{56} = \frac{5}{14}$.
- $P(\text{one of each}) = \frac{5}{8} \times \frac{3}{7} + \frac{3}{8} \times \frac{5}{7} = \frac{30}{56} = \frac{15}{28}$.
- $P(\text{both blue}) = \frac{3}{8} \times \frac{2}{7} = \frac{6}{56} = \frac{3}{28}$.
- Check: $\frac{20 + 30 + 6}{56} = 1$.
Check yourself
Two cards are drawn from a standard 52-card deck without replacement. What is $P(\text{both aces})$?
Show the answer
$\frac{1}{221}$
$\frac{4}{52} \times \frac{3}{51}$.
7Going deeper: Venn and tree diagram problems worked in full
Worked example (Venn diagram): in a class of 30, 18 study French, 15 study Spanish and 4 study neither.
- Students in at least one: $30 - 4 = 26$.
- Both: $18 + 15 - 26 = 7$.
- French only: $18 - 7 = 11$. Spanish only: $15 - 7 = 8$.
- $P(\text{French only}) = \frac{11}{30}$.
- $P(\text{exactly one language}) = \frac{11 + 8}{30} = \frac{19}{30}$.
- Check: $11 + 7 + 8 + 4 = 30$.
Worked example (tree diagram, without replacement): a bag holds 5 red and 3 blue counters. Two are taken without replacement.
- $P(\text{both red}) = \frac{5}{8} \times \frac{4}{7} = \frac{20}{56}$.
- $P(\text{both blue}) = \frac{3}{8} \times \frac{2}{7} = \frac{6}{56}$.
- $P(\text{same colour}) = \frac{26}{56} = \frac{13}{28}$.
- $P(\text{at least one blue}) = 1 - P(\text{both red}) = 1 - \frac{20}{56} = \frac{9}{14}$.
- The second set of branches changes because one counter has gone: the denominators fall from 8 to 7.
The rules
- Complement: $P(A') = 1 - P(A)$. Use it for "at least one".
- Addition: $P(A \cup B) = P(A) + P(B) - P(A \cap B)$.
- Mutually exclusive events cannot happen together: $P(A \cap B) = 0$, so the probabilities simply add.
- Independent events do not affect each other: $P(A \cap B) = P(A) \times P(B)$.
- Mutually exclusive and independent are different ideas. Two mutually exclusive events with non-zero probabilities are never independent: if one happens, the other cannot.
Along and across the tree
- Multiply along the branches for "and".
- Add between different routes for "or".
- The probabilities on each set of branches from one point add to 1.
Expected frequency: probability × number of trials. If $P(\text{faulty}) = 0.15$, then in 200 items you expect $0.15 \times 200 = 30$ faulty items. It is a long-run average and need not be a whole number in general.
Sample space diagrams suit two dice or two spinners: with two fair dice there are 36 equally likely outcomes, and $P(\text{total of } 8) = \frac{5}{36}$.
Common mistakes
- Adding probabilities for "and".
- Forgetting to subtract the overlap in the addition rule.
- Treating "without replacement" as if the probabilities stayed the same.
- Giving an answer greater than 1. If that happens, something has been counted twice.
Check yourself
P(A) = 0.5, P(B) = 0.4 and P(A ∪ B) = 0.7. What is P(A ∩ B)?
Show the answer
0.2
0.5 + 0.4 − P(A ∩ B) = 0.7.
Now test yourself
This lesson has a 8-question quiz and 5 exam-style questions with mark schemes in Impera. Free, with your progress saved.
Practise in Impera