Venn diagrams and conditional probability
IGCSE Mathematics · Probability
Filling a Venn diagram
Always start with the intersection and work outwards. If $n(A)=18$, $n(B)=14$ and $n(A\cap B)=6$, then the region "$A$ only" holds $18-6=12$ and "$B$ only" holds $14-6=8$.
Filling the outer regions first is where double counting happens.
The addition rule
$$n(A\cup B)=n(A)+n(B)-n(A\cap B)$$The subtraction is there because the overlap was counted twice. For mutually exclusive events the overlap is empty and the rule collapses to plain addition — that is the only case where you may add without subtracting.
Conditional probability
$P(A\mid B)$ means "the probability of $A$ given that $B$ has happened". The condition changes the denominator: you are no longer choosing from everyone, only from the members of $B$.
$$P(A\mid B)=\frac{n(A\cap B)}{n(B)}$$Wording that signals a conditional: "given that", "of those who", "a student who studies French is chosen".
Reading the wording carefully
These three questions have three different answers from the same diagram:
- "studies both" → denominator is everyone;
- "studies German given that they study French" → denominator is the French set;
- "studies French given that they study German" → denominator is the German set.
Worked example: filling in a Venn diagram from the data
In a class of $30$ students, $18$ study Further Mathematics, $14$ study Physics, and $6$ study both. (a) How many students study neither of the two subjects? (b) A student is chosen at random from those who study Further Mathematics; calculate the probability that this student also studies Physics.
Solution
(a) Fill in from the middle outwards. The intersection is $6$. So:
- Mathematics only: $18-6=12$;
- Physics only: $14-6=8$;
- at least one subject: $12+6+8=26$.
The same result by the addition rule: $n(A\cup B)=18+14-6=26$, then $30-26=4$. The subtraction of $6$ is there because the $6$ students who study both were counted in both $18$ and $14$.
(b) The condition changes the denominator. The question says "a student who studies Further Mathematics is chosen", so the sample space shrinks to those $18$ students, not $30$:
$$P(\text{Physics}\mid\text{Mathematics})=\frac{6}{18}=\frac{1}{3}$$To compare clearly the difference: if the question asked "a student is chosen at random from the class, find the probability that the student studies both subjects", the denominator would be $30$ and the answer $\dfrac{6}{30}=\dfrac{1}{5}$. With the same numerator $6$, the two answers are quite different — and both are fractions that look very reasonable.
Worked example: the two directions of conditional probability
Among $40$ students, $24$ study French, of whom $10$ also study German. The total number of students who study German is $16$. (a) Calculate $P(\text{German}\mid\text{French})$. (b) Calculate $P(\text{French}\mid\text{German})$. (c) Explain why the two answers are different.
Solution
(a) The condition is "studies French", so the denominator is $24$:
$$P(\text{German}\mid\text{French})=\frac{10}{24}=\frac{5}{12}\approx 0.417$$(b) The condition is "studies German", so the denominator is $16$:
$$P(\text{French}\mid\text{German})=\frac{10}{16}=\frac{5}{8}=0.625$$(c) The two probabilities have the same numerator — still the $10$ students who study both — but different denominators, because the condition specifies two groups of different sizes.
Put in words to make it easy to see: of the $24$ French students, $10$ also study German, about $42\%$. Of the $16$ German students, $10$ also study French, which is $62.5\%$. The German group is smaller, so the same $10$ students make up a larger proportion of that group.
A conclusion to remember: $P(A\mid B)$ and $P(B\mid A)$ are in general not equal. Swapping the two sides of a conditional probability is a real error, not a notation error.