foundations of probability
Conditional Probability
You should know: sample space
Overview
In probability theory, conditional probability is a measure of the probability of an event occurring, given that another event (by assumption, presumption, assertion, or evidence) is already known to have occurred. This particular method relies on event A occurring with some sort of relationship with another event B. If the event of interest is A and the event B is known or assumed to have occurred, 'the conditional probability of A given B', or 'the probability of A under the condition B', is written as P(A|B). This can also be understood as the fraction of probability of B that intersects with A — the ratio of the probability of both events happening to the probability of the given event happening.
Intuition
Conditioning is about narrowing the sample space. Before you know anything, all of Ω is in play. Once you learn that event B occurred, every outcome outside of B is ruled out — the 'new universe' is just B itself, and A can only happen within the part of B that overlaps with A. So P(A|B) is really just 'what fraction of B is also in A?' — you're re-normalizing so that B has total probability 1, and asking how much of that renormalized probability landed inside A.
Formal Definition
For events A and B with P(B) > 0, the conditional probability of A given B is defined as:
The probability of A within the reduced sample space B
Rearranging the definition gives the joint probability of A and B
Notation
| Notation | Meaning |
|---|---|
| The conditional probability of A given B | |
| The joint probability that both A and B occur | |
| A and B are independent |
Derivation
The multiplication rule for n events follows by repeatedly applying the definition of conditional probability:
Chain rule of probability, obtained by repeated substitution of P(A∩B) = P(A|B)P(B)
Properties
Independence
Condition: if and only if A and B are independent (equivalently, P(A \cap B) = P(A)P(B))
Law of total probability
Condition: for a partition {B_i} of the sample space
Conditional probability is a probability measure
Applications
Worked Examples
Let B = 'even' = {2,4,6}, A = 'greater than 3' = {4,5,6}. The reduced sample space is B.
Apply the definition of conditional probability.
Answer: P(A|B) = 2/3.
Practice Problems
P(A) = 0.5, P(B) = 0.4, P(A ∩ B) = 0.2. Find P(A | B) and P(B | A).
Which condition confirms that events A and B are independent?
A structure survives an earthquake only if BOTH independent systems hold: the foundation (P = 0.98) and the frame (P = 0.95). What is the probability the structure survives?
Common Mistakes
Confusing P(A|B) with P(B|A) — assuming they're equal.
In general P(A|B) ≠ P(B|A); they're related by Bayes' theorem, not equality. E.g. P(rain | clouds) is high, but P(clouds | rain) can be very different from P(rain | clouds).
Treating mutually exclusive events as independent.
If A and B are mutually exclusive (A ∩ B = ∅) and both have positive probability, they are NOT independent — in fact P(A|B) = 0 ≠ P(A), since knowing B occurred tells you A definitely did not.
Quiz
Summary
- P(A|B) = P(A ∩ B) / P(B) is the probability of A within the reduced sample space where B has occurred.
- The multiplication rule P(A ∩ B) = P(A|B)P(B) = P(B|A)P(A) follows directly from the definition.
- Events A and B are independent exactly when P(A|B) = P(A), equivalently P(A ∩ B) = P(A)P(B).
- The law of total probability expresses P(A) as a weighted sum of conditional probabilities over a partition of the sample space.
- Conditional probability underlies Bayes' theorem, Bayesian networks, and virtually all probabilistic inference.
Mathematics