Professional Documents
Culture Documents
600: Lecture 5
Problems with all outcomes equally likely,
including a famous hat problem
Scott Sheffield
MIT
Outline
Equal likelihood
A few problems
Hat problem
Equal likelihood
A few problems
Hat problem
Equal likelihood
A few problems
Hat problem
Equal likelihood
A few problems
Hat problem
I Roll two dice. What is the probability that their sum is three?
Problems
I Roll two dice. What is the probability that their sum is three?
I 2/36 = 1/18
Problems
I Roll two dice. What is the probability that their sum is three?
I 2/36 = 1/18
I Toss eight coins. What is the probability that exactly five of
them are heads?
Problems
I Roll two dice. What is the probability that their sum is three?
I 2/36 = 1/18
I Toss eight coins. What is the probability that exactly five of
them are heads?
8
8
5 /2
I
Problems
I Roll two dice. What is the probability that their sum is three?
I 2/36 = 1/18
I Toss eight coins. What is the probability that exactly five of
them are heads?
8
8
5 /2
I
I Roll two dice. What is the probability that their sum is three?
I 2/36 = 1/18
I Toss eight coins. What is the probability that exactly five of
them are heads?
8
8
5 /2
I
I Roll two dice. What is the probability that their sum is three?
I 2/36 = 1/18
I Toss eight coins. What is the probability that exactly five of
them are heads?
8
8
5 /2
I
I Roll two dice. What is the probability that their sum is three?
I 2/36 = 1/18
I Toss eight coins. What is the probability that exactly five of
them are heads?
8
8
5 /2
I
I Roll two dice. What is the probability that their sum is three?
I 2/36 = 1/18
I Toss eight coins. What is the probability that exactly five of
them are heads?
8
8
5 /2
I
I Roll two dice. What is the probability that their sum is three?
I 2/36 = 1/18
I Toss eight coins. What is the probability that exactly five of
them are heads?
8
8
5 /2
I
Equal likelihood
A few problems
Hat problem
Equal likelihood
A few problems
Hat problem
n
X X
P(ni=1 Ei ) = P(Ei ) P(Ei1 Ei2 ) + . . .
i=1 i1 <i2
X
+ (1)(r +1) P(Ei1 Ei2 . . . Eir )
i1 <i2 <...<ir
n+1
= + . . . + (1) P(E1 E2 . . . En ).
Recall the inclusion-exclusion identity
n
X X
P(ni=1 Ei ) = P(Ei ) P(Ei1 Ei2 ) + . . .
i=1 i1 <i2
X
+ (1)(r +1) P(Ei1 Ei2 . . . Eir )
i1 <i2 <...<ir
n+1
= + . . . + (1) P(E1 E2 . . . En ).
n
P
I The notation i1 <i2 <ir means a sum over all of the r
subsets of size r of the set {1, 2, . . . , n}.
Famous hat problem
I n people toss hats into a bin, randomly shuffle, return one hat
to each person. Find probability nobody gets own hat.
Famous hat problem
I n people toss hats into a bin, randomly shuffle, return one hat
to each person. Find probability nobody gets own hat.
I Inclusion-exclusion. Let Ei be the event that ith person gets
own hat.
Famous hat problem
I n people toss hats into a bin, randomly shuffle, return one hat
to each person. Find probability nobody gets own hat.
I Inclusion-exclusion. Let Ei be the event that ith person gets
own hat.
I What is P(Ei1 Ei2 . . . Eir )?
Famous hat problem
I n people toss hats into a bin, randomly shuffle, return one hat
to each person. Find probability nobody gets own hat.
I Inclusion-exclusion. Let Ei be the event that ith person gets
own hat.
I What is P(Ei1 Ei2 . . . Eir )?
(nr )!
I Answer: n! .
Famous hat problem
I n people toss hats into a bin, randomly shuffle, return one hat
to each person. Find probability nobody gets own hat.
I Inclusion-exclusion. Let Ei be the event that ith person gets
own hat.
I What is P(Ei1 Ei2 . . . Eir )?
(nr )!
I Answer: n! .
I There are n terms like that in the inclusion exclusion sum.
r
n (nr )!
What is r n! ?
Famous hat problem
I n people toss hats into a bin, randomly shuffle, return one hat
to each person. Find probability nobody gets own hat.
I Inclusion-exclusion. Let Ei be the event that ith person gets
own hat.
I What is P(Ei1 Ei2 . . . Eir )?
(nr )!
I Answer: n! .
I There are n terms like that in the inclusion exclusion sum.
r
n (nr )!
What is r n! ?
I Answer: 1 .
r!
Famous hat problem
I n people toss hats into a bin, randomly shuffle, return one hat
to each person. Find probability nobody gets own hat.
I Inclusion-exclusion. Let Ei be the event that ith person gets
own hat.
I What is P(Ei1 Ei2 . . . Eir )?
(nr )!
I Answer: n! .
I There are n terms like that in the inclusion exclusion sum.
r
n (nr )!
What is r n! ?
I Answer: 1 .
r!
I P(n Ei ) = 1 1 + 1 1 + . . . 1
i=1 2! 3! 4! n!
Famous hat problem
I n people toss hats into a bin, randomly shuffle, return one hat
to each person. Find probability nobody gets own hat.
I Inclusion-exclusion. Let Ei be the event that ith person gets
own hat.
I What is P(Ei1 Ei2 . . . Eir )?
(nr )!
I Answer: n! .
I There are nr terms like that in the inclusion exclusion sum.
What is nr (nr )!
n! ?
I Answer: r1! .
1 1 1 1
I P(ni=1 Ei ) = 1 2! + 3! 4! + . . . n!
1 1 1 1
I 1 P(ni=1 Ei ) = 1 1 + 2! 3! + 4! . . . n! 1/e .36788
Outline
Equal likelihood
A few problems
Hat problem
Equal likelihood
A few problems
Hat problem