The inclusion-exclusion formula is included in the list of Problem Solving Strategies.
I showed you in Example 4.5 a use of Erdos's probabilistic method in combinatorics. If you liked that, you might like to read about other examples, for instance in this link.
I made a small slip at the end of the lecture.
1−12!+13!+⋯=1−e−1.
In Example 4.4 we considered an infinite sequence of tosses of biased coins and saw that if ∑∞i=1pi<∞ then P(infinite number of heads)=0.
Now let's prove that ∑∞i=1pi=∞⟹P(finite number of heads)=0. This is trickier.
We are assuming the coin tosses are independent (which is terminology from Lecture 5, but you can guess intuitively what this means). Let Ak be the event that the kth toss is a head. Let En=⋂∞k=nAck=[no heads after the (n−1)th toss]. Then for m>n
P(En)≤P(⋂mk=nAck)=∏mk=nP(Ack)=∏mk=n(1−pk)≤∏mk=ne−pk=e−∑mk=npk.
The right hand side →0 as m→∞.
Hence P(En)=0, and then using Property (v) of P (continuity), we have that
P(finite number of heads)=P(⋃∞n=1⋂∞k=nAck)=limn→∞P(En)=0.
These two results are examples of applications of the Borel-Cantelli lemmas, which appear in the Part II course Probability and Measure.
I did not talk through Example 4.8 (counting surjective functions), but it is another nice use of the inclusion-exclusion formula. See also Examples Sheet 1, #9.
I showed you in Example 4.5 a use of Erdos's probabilistic method in combinatorics. If you liked that, you might like to read about other examples, for instance in this link.
I made a small slip at the end of the lecture.
1−12!+13!+⋯=1−e−1.
So the probability of derangement tends to e−1=0.368.
In Example 4.4 we considered an infinite sequence of tosses of biased coins and saw that if ∑∞i=1pi<∞ then P(infinite number of heads)=0.
Now let's prove that ∑∞i=1pi=∞⟹P(finite number of heads)=0. This is trickier.
We are assuming the coin tosses are independent (which is terminology from Lecture 5, but you can guess intuitively what this means). Let Ak be the event that the kth toss is a head. Let En=⋂∞k=nAck=[no heads after the (n−1)th toss]. Then for m>n
P(En)≤P(⋂mk=nAck)=∏mk=nP(Ack)=∏mk=n(1−pk)≤∏mk=ne−pk=e−∑mk=npk.
The right hand side →0 as m→∞.
Hence P(En)=0, and then using Property (v) of P (continuity), we have that
P(finite number of heads)=P(⋃∞n=1⋂∞k=nAck)=limn→∞P(En)=0.
These two results are examples of applications of the Borel-Cantelli lemmas, which appear in the Part II course Probability and Measure.
I did not talk through Example 4.8 (counting surjective functions), but it is another nice use of the inclusion-exclusion formula. See also Examples Sheet 1, #9.
David Hilbert · 532 weeks ago
Richard Weber 35p · 532 weeks ago
Moreover, here, $a_i \geq 0$, and so $\sum_{i=1}^k a_i$ is nondecreasing in $k$.