Let
E1,
E2, ... be a sequence of events in some
probability space. The Borel–Cantelli lemma states: {{math theorem|name=Borel–Cantelli lemma|math_statement=If the sum of the probabilities of the events {
En} is finite \sum_{n=1}^\infty \Pr(E_n) then the probability that infinitely many of them occur is 0, that is, \Pr\left(\limsup_{n\to\infty} E_n\right) = 0.}} Here, "lim sup" denotes
limit supremum of the sequence of events. That is, lim sup
En is the outcome that infinitely many of the infinite sequence of events (
En) actually occur. Explicitly, \limsup_{n\to\infty} E_n = \bigcap_{n=1}^\infty \bigcup_{k = n}^\infty E_k.The set lim sup
En is sometimes denoted {
En i.o.}, where "i.o." stands for "infinitely often". The theorem therefore asserts that if the sum of the probabilities of the events
En is finite, then the set of all outcomes that contain infinitely many events must have probability zero. Note that no assumption of
independence is required.
Example Suppose (
Xn) is a sequence of
random variables with Pr(
Xn = 0) = 1/
n2 for each
n. The probability that
Xn = 0 occurs for infinitely many
n is equivalent to the probability of the intersection of infinitely many [
Xn = 0] events. The intersection of infinitely many such events is a set of outcomes common to all of them. However, the sum ΣPr(
Xn = 0) converges to and so the Borel–Cantelli Lemma states that the set of outcomes that are common to infinitely many such events occurs with probability zero. Hence, the probability of
Xn = 0 occurring for infinitely many
n is 0.
Almost surely (i.e., with probability 1),
Xn is nonzero for all but finitely many
n. == Proof ==