01 / 20

Independence &
Conditioning

Master the fundamental identities of probabilistic independence and conditional probability: the building blocks of modern statistics and inference.

Statistics Probability Theory

What Is Conditional Probability?

Conditional probability measures how the likelihood of an event changes when we learn new information. Given that event \(B\) has occurred, the probability of \(A\) is:

This definition anchors everything: Bayes' theorem, independence, and conditioning identities all flow from this single ratio.

Visualizing the Conditioning Operation

Sample Space \(\Omega\)
B
A
\(A \cap B\)
Conditioning restricts
to this region

What Is Independence?

Two events \(A\) and \(B\) are independent if learning that one occurred tells you nothing about the other. Formally:

Equivalently, \(P(A \mid B) = P(A)\) and \(P(B \mid A) = P(B)\). These three statements are logically equivalent whenever the conditioning events have positive probability.

Core Conditioning Identities

Multiplication Rule
\(P(A \cap B) = P(A \mid B)\,P(B)\)
Chain Rule
\(P(A \cap B \cap C) = P(A \mid B \cap C)\,P(B \mid C)\,P(C)\)
Law of Total Probability
\(P(A) = \sum_i P(A \mid B_i)\,P(B_i)\) (where \(B_i\) form a partition of the sample space)

Bayes' Theorem: Reversing the Conditioning

1
Prior: \(P(B)\) is your belief before observing \(A\).
2
Likelihood: \(P(A \mid B)\) measures how probable the evidence is under hypothesis \(B\).
3
Posterior: \(P(B \mid A)\) is your updated belief after seeing \(A\).

Independence vs Conditional Independence

Independence Conditional Independence
Notation \(A \perp\!\!\!\perp B\) \(A \perp\!\!\!\perp B \mid C\)
Definition \(P(A \cap B) = P(A)P(B)\) \(P(A \cap B \mid C) = P(A \mid C)\,P(B \mid C)\)
Equivalent form \(P(A \mid B) = P(A)\) \(P(A \mid B, C) = P(A \mid C)\)
Implication Neither implies the other Neither implies the other

Why Neither Implies the Other

Independent but Not Cond. Indep.
Two fair coin flips \(A, B\) are independent. But given \(C = \{\text{the outcomes are different}\}\), knowing the outcome of \(A\) determines the outcome of \(B\). So they are not conditionally independent given \(C\).
Cond. Indep. but Not Independent
Fire alarm \(A\) and sprinkler \(B\) are dependent (both caused by fire \(C\)). But \(A \perp\!\!\!\perp B \mid C\): given whether fire occurred, alarm and sprinkler are independent.

How to Verify Independence

1
Compute marginals: Find \(P(A)\) and \(P(B)\) separately.
2
Compute joint: Find \(P(A \cap B)\) directly from the sample space or given data.
3
Compare: Check whether \(P(A \cap B) = P(A) \cdot P(B)\). If equal, the events are independent.
4
Alternatively: Check if \(P(A \mid B) = P(A)\). This is often more intuitive for applied problems.

Example 1: Rolling Two Dice

Let \(A = \{\text{die 1 shows 3}\}\) and \(B = \{\text{sum} \ge 8\}\). Are \(A\) and \(B\) independent?

1
Marginals: \(P(A) = \frac{1}{6}\). For \(P(B)\), count outcomes with \(\text{sum} \ge 8\): there are 15 out of 36, so \(P(B) = \frac{15}{36} = \frac{5}{12}\).
2
Joint: \(A \cap B\) requires \(\text{die 1} = 3\) and \(\text{sum} \ge 8\), so \(\text{die 2} \in \{5,6\}\). Thus \(P(A \cap B) = \frac{2}{36} = \frac{1}{18}\).
3
Compare: \(P(A) \cdot P(B) = \frac{1}{6} \cdot \frac{5}{12} = \frac{5}{72}\), but \(P(A \cap B) = \frac{1}{18} = \frac{4}{72}\).

Example 2: Conditional Independence

A factory has two machines. A machine is chosen to make a batch (\(M_1\) with prob 0.6, \(M_2\) with prob 0.4). Two items are drawn from this batch. Defect rates are 5% for \(M_1\) and 8% for \(M_2\). Let:

\(D_1\)
Item 1 is defective
\(D_2\)
Item 2 is defective

Example 2: Computing the Joint

We find the joint probability using the Law of Total Probability, conditioning on the machine choice. Let \(M_i\) be the event that Machine \(i\) was chosen.

Example 3: Chain Rule in Action

Draw three cards from a standard 52-card deck without replacement. Find the probability that all three are hearts.

Common Mistakes

✕ Confusing Independent with Mutually Exclusive
If \(A \cap B = \emptyset\), then \(P(A \cap B) = 0 \neq P(A)P(B)\) (unless one has probability 0). Mutually exclusive events are maximally dependent.
✕ Assuming Conditional Independence Is "Free"
\(A \perp\!\!\!\perp B\) does not imply \(A \perp\!\!\!\perp B \mid C\). Conditioning can create dependence (e.g., explaining away / Berkson's paradox).
✕ Forgetting Complements
If \(A \perp\!\!\!\perp B\), then \(A^c \perp\!\!\!\perp B\), \(A \perp\!\!\!\perp B^c\), and \(A^c \perp\!\!\!\perp B^c\). Many students don't use this powerful fact in proofs.

Identity Summary Table

Identity Formula When to Use
Conditional Probability \(P(A \mid B) = \frac{P(A \cap B)}{P(B)}\) Finding prob. given info
Multiplication Rule \(P(A \cap B) = P(A \mid B)\,P(B)\) Joint from conditionals
Independence \(P(A \cap B) = P(A)\,P(B)\) Events don't interact
Chain Rule \(P(\bigcap_i A_i) = \prod_i P(A_i \mid \bigcap_{j Sequential events
Bayes' Theorem \(P(B \mid A) = \frac{P(A \mid B)\,P(B)}{P(A)}\) Reversing conditioning
Total Probability \(P(A) = \sum_i P(A \mid B_i)\,P(B_i)\) Marginalizing over partitions

Question 1 of 5

If \(P(A) = 0.3\), \(P(B) = 0.5\), and \(A\) and \(B\) are independent, what is \(P(A \cup B)\)?

Question 2 of 5

If events \(A\) and \(B\) are mutually exclusive with \(P(A) = 0.4\) and \(P(B) = 0.3\), are they independent?

Question 3 of 5

Given \(P(A \mid B) = 0.6\), \(P(B) = 0.5\), and \(P(A) = 0.4\), find \(P(B \mid A)\).

Question 4 of 5

If \(A \perp\!\!\!\perp B\), which of the following is always true?

Question 5 of 5

Three cards are drawn without replacement from a standard deck. Using the chain rule, what is \(P(\text{all three are aces})\)?