Definition
Let A and be events with
Basic Properties
Bayes Formula
Let be pairwise disjoint events with , and let be an event such that
Then for every ,
Law of total probability
Let be pairwise disjoint events such that
Then for every event ,
This means: split the sample space into cases , compute the probability of inside each case, and then weight by the probability of the case.
Short proof
Since the form a partition of ,
and these sets are pairwise disjoint. So
Using
we get
Example
Suppose:
- of students come by bike
- come by train
- among bike commuters, are late
- among train commuters, are late
Let:
- = “student comes by bike”
- = “student comes by train”
- = “student is late”
Then
Independent Events
Two events and are independent if
If , this is equivalent to
Important
This is equivalent to saying that the indicator variables and are independent random variables.
For multiple events , the strongest notion is mutual independence: for every non-empty subset ,
In particular (necessary but not sufficient),
For an infinite family of events , mutual independence means that every finite subfamily is mutually independent. Equivalently, for every distinct ,
NOTE
Pairwise independence is weaker: it only requires for all pairs . This does not imply mutual independence.
Useful Lemma
If are mutually independent, then
- and are independent
- and are independent.
Proof:
So and are independent. Also,
So and are independent.
Multiplication Principle (Chain rule)
Short proof: for this is exactly
For general ,
Apply the same identity again to , and continue recursively. This yields the full product above.
Application: Balls into Boxes
Throw balls independently and uniformly at random into boxes. What is the probability that every ball lands in an empty box? Equivalently, what is the probability that no two balls land in the same box?
Let be the event that the -th ball lands in an empty box. Then
and in general
This is because after successful throws, exactly boxes are still empty.
By the multiplication principle,
For , we can approximate
So the probability that all balls land in different boxes is approximately
If , this probability is .