Carefully state and prove the first and second Borel-Cantelli lemmas.
Now let (An:n∈N) be a sequence of events that are pairwise independent; that is, P(An∩Am)=P(An)P(Am) whenever m=n. For N⩾1, let SN=∑n=1N1An. Show that Var(SN)⩽E(SN).
Using Chebyshev's inequality or otherwise, deduce that if ∑n=1∞P(An)=∞, then limN→∞SN=∞ almost surely. Conclude that P(An infinitely often )=1.