Conditional Probability & Set Notation
$P(A \mid B)$ is the probability of $A$ given that $B$ has happened. Venn diagrams, two-way tables and tree diagrams are all ways to organise conditional probability.
Key points
- $P(A \mid B) = \frac{P(A \cap B)}{P(B)}$ — restrict to the outcomes in $B$.
- Addition rule: $P(A \cup B) = P(A) + P(B) - P(A \cap B)$.
- Independent events: $P(A \cap B) = P(A)P(B)$, equivalently $P(A \mid B) = P(A)$.
- Mutually exclusive events: $P(A \cap B) = 0$.
- Reverse conditioning (from a tree): $P(A \mid B) = \frac{P(A)P(B \mid A)}{P(B)}$.
Worked example
Question. $P(A) = 0.4$, $P(B) = 0.5$, $P(A \cap B) = 0.15$. Find $P(A \mid B)$ and decide whether $A$, $B$ are independent.
- $P(A \mid B) = \frac{0.15}{0.5} = 0.3$
- $P(A)P(B) = 0.2 \ne 0.15$
Answer. $P(A \mid B) = 0.3$; not independent
Common mistakes
- Dividing by $P(A)$ instead of $P(B)$ for $P(A \mid B)$.
- Confusing independent with mutually exclusive.
- Double-counting the intersection when finding $P(A \cup B)$.
Related topics
- Sampling & Data Presentation
- Measures, Correlation & Regression
- Probability & Discrete Distributions
- The Binomial Distribution
- Hypothesis Testing
- The Normal Distribution
- Normal Approximation to the Binomial
- Hypothesis Testing for a Normal Mean
- Hypothesis Testing for Correlation
- The Large Data Set: How to Use It
- Data Coding