Bayes’ Theorem Review
P(F∣E)=P(E)P(E∣F)⋅P(F)
This lets us reverse the direction of conditioning: from P(E∣F) to P(F∣E).
With partition F1,…,Fn:
P(Fi∣E)=∑j=1nP(E∣Fj)⋅P(Fj)P(E∣Fi)⋅P(Fi)
The denominator is the law of total probability applied to P(E).
Example: Spam Filtering
An email contains the word “free”. Historical data shows:
- P("free"∣spam)=0.3
- P("free"∣not spam)=0.05
- P(spam)=0.4
P(spam∣"free")=0.3×0.4+0.05×0.60.3×0.4=0.12+0.030.12=0.150.12=0.8
An email with “free” has 80% probability of being spam.
Independence of Events
Definition
Events E and F are independent if:
P(E∩F)=P(E)⋅P(F)
Equivalently (when P(F)>0):
P(E∣F)=P(E)
Knowing F occurred gives no information about E.
Intuition
Two events are independent if the occurrence of one tells us nothing about the occurrence of the other. The probability of E is the same whether or not we know F occurred.
Example: Coin Flips
Flip a fair coin twice. Let E = “first is heads”, F = “second is heads”.
P(E∩F)=P(HH)=41=21×21=P(E)⋅P(F)
The outcomes are independent.
Example: Dependent Events
Draw two cards without replacement. Let E = “first is ace”, F = “second is ace”.
P(E∩F)=524⋅513=265212=524⋅524
Not independent: drawing an ace first changes the probability of drawing an ace second.
Independent vs Mutually Exclusive
Common confusion: Independence and mutual exclusivity are different concepts.
| Property | E,F disjoint (ME) | E,F independent |
|---|
| Defining equation | E∩F=∅ | P(E∩F)=P(E)P(F) |
| Probability | P(E∩F)=0 | P(E∩F)=P(E)P(F)>0 typically |
| Knowing F occurred | E cannot occur | Gives no info about E |
Key insight: If E and F are both possible (positive probability) and mutually exclusive, they are NOT independent. Knowing F occurred tells us E did NOT occur.
Mutual Independence
Pairwise Independence
Events E1,E2,…,En are pairwise independent if Ei and Ej are independent for all i=j.
This is weaker than mutual independence.
Mutual Independence
Events E1,E2,…,En are mutually independent if for every subset S⊆{1,2,…,n}:
P(⋂i∈SEi)=∏i∈SP(Ei)
Important: Pairwise independence does NOT imply mutual independence.
Example: Pairwise but Not Mutual
Flip two fair coins. Define:
- A = first coin is heads
- B = second coin is heads
- C = coins match (both heads or both tails)
Check independence:
- P(A)=P(B)=P(C)=21
- P(A∩B)=41=P(A)P(B) (pairwise independent)
- P(A∩C)=41=P(A)P(C) (pairwise independent)
- P(B∩C)=41=P(B)P(C) (pairwise independent)
But:
- P(A∩B∩C)=41 (only HH)
- P(A)P(B)P(C)=81
These events are pairwise independent but NOT mutually independent.
Conditional Independence
Events E and F are conditionally independent given G if:
P(E∩F∣G)=P(E∣G)⋅P(F∣G)
Events can be independent unconditionally but dependent conditionally, or vice versa.
Example: Berger’s Bullets
Two shooters aim at a target. Let A,B be “shooter A/B hits”. Unconditionally, A and B might be independent. But given the target is hit, knowing A missed makes it more likely B hit, creating dependence.
Properties of Independence
-
If E and F are independent, then so are E and Fc.
Proof: P(E)=P(E∩F)+P(E∩Fc)=P(E)P(F)+P(E∩Fc), so P(E∩Fc)=P(E)−P(E)P(F)=P(E)(1−P(F))=P(E)P(Fc).
-
If E and F are independent, then Ec and Fc are independent.
-
Independence is symmetric: E independent of F iff F independent of E.
Application: System Reliability
Components in series all must work. If each has reliability p and failures are independent:
P(system works)=pn
Components in parallel: at least one must work:
P(system works)=1−(1−p)n
Summary
| Concept | Definition |
|---|
| Independence | P(E∩F)=P(E)P(F) |
| Equivalent form | P(E∣F)=P(E) (when P(F)>0) |
| Mutual independence | P(⋂i∈SEi)=∏i∈SP(Ei) for all subsets S |
| Conditional independence | P(E∩F∣G)=P(E∣G)P(F∣G) |