Conditional probability and independence
In Year 12 Mathematical Methods (Queensland, QCAA), a conditional probability is the chance of one event given that another has occurred, \(P(A\mid B)=\dfrac{P(A\cap B)}{P(B)}\). Rearranging gives the multiplication rule \(P(A\cap B)=P(A\mid B)\,P(B)\), the engine behind tree diagrams for two-stage experiments. Two events are independent when \(P(A\cap B)=P(A)\,P(B)\), so knowing one tells you nothing about the other — this refreshes the Units 1&2 probability you carry into Year 12.
A conditional probability \(P(A\mid B)\) is the probability that event \(A\) occurs given that event \(B\) has already occurred. Knowing \(B\) has happened shrinks the sample space to just the outcomes in \(B\):
\(P(A\mid B)=\dfrac{P(A\cap B)}{P(B)},\qquad P(B)\neq 0.\)
Rearranging gives the multiplication rule \(P(A\cap B)=P(A\mid B)\,P(B)=P(B\mid A)\,P(A)\), which is exactly what you do when you multiply along the branches of a tree diagram for a two-stage experiment.
Events \(A\) and \(B\) are independent when the occurrence of one does not change the probability of the other. Formally, \(A\) is independent of \(B\) when \(P(A\mid B)=P(A)\), which is equivalent to \(P(A\cap B)=P(A)\,P(B)\). If this equality fails the events are dependent. Drawing with replacement keeps the draws independent; drawing without replacement makes them dependent.
Conditional probability (\(P(B)\neq 0\)):
The multiplication rule (rearranging the above):
Independence of \(A\) and \(B\) (each equivalent):
The complement and addition (union) rules that support these:
How to work with conditional probability and independence
- Find a conditional probability. Use \(P(A\mid B)=\dfrac{P(A\cap B)}{P(B)}\). From a two-way table, divide the count in both \(A\) and \(B\) by the total for \(B\).
- Combine two events. Apply the multiplication rule \(P(A\cap B)=P(A\mid B)\,P(B)\), multiplying along the branches of a tree diagram.
- Handle a two-stage experiment. Draw a tree. For without replacement, reduce the total (and the count of the item drawn) on the second stage; for with replacement, the second-stage probabilities are unchanged.
- Test independence. Compute \(P(A)\,P(B)\) and compare with \(P(A\cap B)\). Equal \(\Rightarrow\) independent; not equal \(\Rightarrow\) dependent.
Divide the joint probability by \(P(B)\).
| \(P(A\mid B)\) | \(=\) | \(\dfrac{P(A\cap B)}{P(B)}\) |
| \(=\) | \(\dfrac{0.3}{0.4}=0.75\) |
| \(A\) | \(A'\) | Total | |
|---|---|---|---|
| \(B\) | 24 | 6 | 30 |
| \(B'\) | 16 | 54 | 70 |
| Total | 40 | 60 | 100 |
Restrict to the \(B\) row: \(30\) households, \(24\) also own a dog.
| \(P(A\mid B)\) | \(=\) | \(\dfrac{24}{30}=0.8\) |
Compare \(P(A)\,P(B)\) with \(P(A\cap B)\).
| \(P(A)\,P(B)\) | \(=\) | \(0.6\times 0.5=0.30\) |
| \(P(A\cap B)\) | \(=\) | \(0.20\) |
Since \(0.30\neq 0.20\), the events are not independent.
Multiply along the red–red branch; the total drops from \(8\) to \(7\).
| \(P(\text{RR})\) | \(=\) | \(\dfrac{5}{8}\times\dfrac{4}{7}\) |
| \(=\) | \(\dfrac{20}{56}=\dfrac{5}{14}\) |
Common pitfalls
Frequently asked questions
What is conditional probability?
The probability of \(A\) given that \(B\) has occurred, \(P(A\mid B)=\dfrac{P(A\cap B)}{P(B)}\). Knowing \(B\) rescales the sample space to the outcomes in \(B\).
What is the multiplication rule for probability?
\(P(A\cap B)=P(A\mid B)\,P(B)=P(B\mid A)\,P(A)\). It is what you use when multiplying along the branches of a tree diagram.
How do you test whether two events are independent?
Check whether \(P(A\cap B)=P(A)\,P(B)\) (equivalently \(P(A\mid B)=P(A)\)). Equal means independent; not equal means dependent.
What is the difference between drawing with and without replacement?
With replacement the item is returned, so the draws are independent and probabilities stay fixed. Without replacement the totals fall by one, so the draws are dependent.
How do you read a conditional probability from a two-way table?
Restrict to the row or column for the given event, then divide the joint count by that event's total. E.g. \(24\) of \(30\) cat owners own a dog gives \(P(A\mid B)=0.8\).
Does independent mean mutually exclusive?
No. Mutually exclusive means \(P(A\cap B)=0\); independent means \(P(A\cap B)=P(A)\,P(B)\). Events with positive probability cannot be both.