Probability

The Borel–Cantelli Lemmas: When Does an Event Happen Infinitely Often?

The Borel–Cantelli lemmas answer a single sharp question about an infinite sequence of events: do infinitely many of them occur, or only finitely many? The first lemma says a convergent sum of probabilities forces finiteness; the second says that for independent events, a divergent sum forces infinite recurrence with probability one.

  • First lemmaBorel 1909, Cantelli 1917
  • BC1 hypothesis∑ₙ P(Aₙ) < ∞
  • BC1 conclusionP(Aₙ i.o.) = 0
  • BC2 hypothesisindependent, ∑ₙ P(Aₙ) = ∞
  • BC2 conclusionP(Aₙ i.o.) = 1
  • Independenceneeded only for BC2 (pairwise is enough)

Watch the 60-second explainer

A condensed visual walkthrough — narrated, captioned, under a minute.

The event "infinitely often"

Fix a probability space and a sequence of events A₁, A₂, A₃, …. We want to talk about the outcomes that lie in infinitely many of the Aₙ. That collection is itself an event, and it has a standard name: the limit superior of the sequence,

limsup Aₙ = ⋂ₙ₌₁^∞ ⋃_{k ≥ n} A_k.

Read the formula from the inside out. The union ⋃_{k ≥ n} A_k is the event "at least one A_k with index k ≥ n occurs". Intersecting over every starting index n says that no matter how far out you start, something still happens later. That is exactly the statement that infinitely many of the Aₙ occur, which probabilists abbreviate as {Aₙ i.o.}.

Because the expression is built from countably many unions and intersections of events, limsup Aₙ is measurable in any σ-algebra containing the Aₙ, so asking for its probability is legitimate.

Its mirror image, the limit inferior liminf Aₙ = ⋃ₙ ⋂_{k ≥ n} A_k, is the event that all but finitely many Aₙ occur, i.e. that the Aₙ happen eventually. Complementation swaps the two: the complement of "Aₙ infinitely often" is "Aₙᶜ eventually". The Borel–Cantelli lemmas are statements about P(limsup Aₙ), and in the independent case they pin that number down completely.

The first lemma: a convergent series forces finiteness

First Borel–Cantelli lemma (BC1). If ∑ₙ₌₁^∞ P(Aₙ) < ∞, then P(limsup Aₙ) = 0. Equivalently, with probability one only finitely many of the Aₙ occur.

The statement is due to Émile Borel (1909) and was given in its general measure-theoretic form by Francesco Paolo Cantelli (1917). Crucially, it assumes nothing about the dependence between the events. They may be nested, identical on overlapping blocks, or correlated in any way at all.

The proof is one line. For every n, the event limsup A_k is contained in the tail union ⋃_{k ≥ n} A_k, so monotonicity and countable subadditivity give

P(limsup A_k) ≤ P(⋃_{k ≥ n} A_k) ≤ ∑_{k ≥ n} P(A_k).

Convergence of the full series means its tails tend to 0: for any ε > 0 there is an n with ∑_{k ≥ n} P(A_k) < ε. So P(limsup A_k) ≤ ε for every ε > 0, hence it is 0.

There is an equivalent counting formulation that is often more useful in practice. Let N = ∑ₙ 1_{Aₙ} be the (possibly infinite) number of events that occur. By countable additivity of the expectation of a non-negative series, E[N] = ∑ₙ P(Aₙ). If that sum is finite then N has finite mean, so N < ∞ almost surely. Finiteness of the expected count is the real content of BC1.

The second lemma: independence turns divergence into certainty

Second Borel–Cantelli lemma (BC2). If the events Aₙ are independent and ∑ₙ₌₁^∞ P(Aₙ) = ∞, then P(limsup Aₙ) = 1. Almost surely infinitely many of the Aₙ occur.

The proof works on the complement. Write pₙ = P(Aₙ). The event that no A_k with n ≤ k ≤ m occurs has probability ∏_{k=n}^{m} (1 − p_k) by independence. Now use the elementary inequality 1 − x ≤ e^{−x}, valid for all real x:

∏_{k=n}^{m} (1 − p_k) ≤ exp(−∑_{k=n}^{m} p_k).

Since the whole series diverges, every tail diverges too, so letting m → ∞ drives the exponent to −∞ and the product to 0. Therefore P(⋃_{k ≥ n} A_k) = 1 for every n. An intersection of countably many probability-one events still has probability one, so P(⋂ₙ ⋃_{k ≥ n} A_k) = 1.

Put the two lemmas together and you get a zero–one law. For an independent sequence, ∑ₙ P(Aₙ) either converges or diverges, so P(Aₙ i.o.) is either 0 or 1 — never anything in between. There is no independent sequence of events that recurs infinitely often with probability, say, 1/2. The dichotomy is decided entirely by a single real number, the sum of the probabilities.

Mutual independence is more than you need. The Erdős–Rényi extension shows that pairwise independence already suffices for the conclusion P(Aₙ i.o.) = 1, which matters because pairwise independence is far easier to verify in combinatorial settings.

A worked example: fixed patterns in coin flips

Flip a fair coin forever, independently. Ask whether the specific pattern HHHHHHHHHH — ten heads in a row — ever appears, and if so how often.

Chop the sequence into consecutive, non-overlapping blocks of ten flips: flips 1–10, 11–20, 21–30, and so on. Let Bₙ be the event that block n consists of ten heads. Each block uses a disjoint set of flips, so the Bₙ are independent, and

P(Bₙ) = (1/2)¹⁰ = 1/1024 ≈ 0.000977.

The series is ∑ₙ 1/1024 = ∞, a divergent sum of a constant. BC2 applies: almost surely infinitely many blocks are all heads. Since {Bₙ i.o.} ⊆ {pattern appears i.o.}, the pattern itself appears infinitely often with probability one. The same argument works for any fixed finite string over {H, T} of any length L, with per-block probability 2^{−L}; the constant shrinks but the sum still diverges. This is precisely the infinite monkey theorem: a monkey typing uniformly at random will type the complete works of Shakespeare infinitely often, almost surely.

Now contrast a convergent case. Suppose Cₙ is the event that flips 1 through ⌈2 log₂ n⌉ within the n-th independent experiment all come up heads, so P(Cₙ) ≤ 1/n². Then ∑ₙ P(Cₙ) ≤ ∑ₙ 1/n² = π²/6 ≈ 1.645 < ∞, and BC1 — with no independence needed — says only finitely many Cₙ occur almost surely. The lesson: when the required pattern grows with n fast enough that probabilities are summable, recurrence stops.

Why independence cannot be dropped from the second lemma

The first lemma holds for arbitrary events. The second does not, and the counterexample is small enough to keep in your head.

Let U be a single random variable uniform on (0, 1) and set Aₙ = {U ≤ 1/n}. Then P(Aₙ) = 1/n, so

∑ₙ P(Aₙ) = ∑ₙ 1/n = ∞,

the harmonic series, which diverges. Yet the conclusion of BC2 fails spectacularly. The events are nested: A₁ ⊇ A₂ ⊇ A₃ ⊇ ⋯. An outcome lies in infinitely many of them only if it lies in all of them, which requires U ≤ 1/n for every n, i.e. U ≤ 0. That has probability 0, so P(Aₙ i.o.) = 0 even though the series diverges.

The structural reason is that these events carry no new information. All of them are determined by one number. Divergence of ∑ P(Aₙ) says the events are individually not too rare on average, but it cannot create the fresh randomness needed for repeated independent chances. Independence is what converts "many chances" into "many genuinely separate chances".

Notice also that BC1 is consistent here: BC1 only speaks when the series converges, and it is silent in this example. A divergent sum tells you nothing at all without an extra hypothesis — independence, pairwise independence, or a quantitative control on the correlations between the Aₙ.

What the lemmas are used for

The lemmas are the standard bridge between summable probabilities and almost sure statements, which is why they appear early in every measure-theoretic probability course.

  • Almost sure convergence. To show random variables Xₙ → 0 almost surely, fix ε > 0 and bound P(|Xₙ| > ε). If that sum is finite for every ε, BC1 says {|Xₙ| > ε} happens only finitely often, so |Xₙ| ≤ ε eventually. Taking a sequence ε → 0 along a countable set gives Xₙ → 0 a.s. For example P(|Xₙ| > ε) ≤ 1/n² suffices.
  • The strong law of large numbers. A classical route to the SLLN for i.i.d. variables with a finite fourth moment bounds P(|S̄ₙ − μ| > ε) by Markov's inequality applied to the fourth central moment, which gives a term of order 1/(ε⁴ n²). That is summable in n, so BC1 turns a sequence of weak-law bounds into almost sure convergence.
  • Convergence of random series. If ∑ₙ P(|Yₙ| > 1) < ∞, the terms of ∑ Yₙ are eventually small, which is the first step in truncation arguments such as the Kolmogorov three-series theorem.
  • Recurrence. BC2 is how one proves that certain patterns, excursions or record values must repeat forever: build an independent (or pairwise independent) family of "fresh chances" with probabilities summing to infinity, and infinite recurrence is automatic.
  • Rates and laws of the iterated logarithm. Both lemmas are the workhorses behind upper and lower bounds on how large fluctuations get along a sequence, by applying them to shrinking thresholds.

Common mistakes

Using BC2 without independence. This is by far the most frequent error. A divergent ∑ P(Aₙ) on its own gives you nothing: the nested uniform example above has a divergent sum and probability zero of infinite recurrence. Before invoking BC2, state explicitly which independence you are using and why it holds — typically because the events are built from disjoint blocks of independent inputs.

Treating the lemmas as converses of each other. They are not. BC1 is an implication in one direction (convergence ⟹ probability 0) and BC2 in the other (divergence plus independence ⟹ probability 1). Neither is reversible as stated. In particular, P(Aₙ i.o.) = 0 does not imply ∑ P(Aₙ) < ∞.

Confusing "infinitely often" with "eventually". limsup Aₙ means infinitely many occur; liminf Aₙ means all but finitely many occur. BC1's conclusion P(limsup Aₙ) = 0 is equivalent to P(liminf Aₙᶜ) = 1 — the complements happen eventually.

Forgetting that overlapping events are dependent. In the coin-pattern example, the events "the pattern starts at position n" are not independent for nearby n, because they share flips. Passing to disjoint blocks is what makes BC2 legitimate; the conclusion about the overlapping family then follows by containment.

Demanding more independence than needed. Mutual independence is sufficient but not necessary — pairwise independence already gives the BC2 conclusion. If a problem resists full independence, check pairwise independence before abandoning the approach.

The two lemmas side by side: same event, opposite hypotheses, opposite conclusions.
FeatureFirst lemma (BC1)Second lemma (BC2)
Condition on the series∑ₙ P(Aₙ) < ∞ (converges)∑ₙ P(Aₙ) = ∞ (diverges)
Independence assumedNo — holds for arbitrary eventsYes — mutual or even just pairwise
ConclusionP(limsup Aₙ) = 0: finitely many occur a.s.P(limsup Aₙ) = 1: infinitely many occur a.s.
Main proof toolCountable subadditivity and the tail of a convergent seriesThe bound 1 − x ≤ e^{−x} applied to complements
Typical useProving almost sure convergence, bounding rare eventsProving recurrence, showing patterns must appear

Frequently asked questions

What does limsup Aₙ mean for events?

It is the event ⋂ₙ ⋃_{k ≥ n} A_k, which holds exactly for those outcomes belonging to infinitely many of the Aₙ. Probabilists write it as {Aₙ i.o.}. Its counterpart liminf Aₙ = ⋃ₙ ⋂_{k ≥ n} A_k is the event that all but finitely many Aₙ occur.

Does the first Borel–Cantelli lemma require independence?

No. BC1 holds for an arbitrary sequence of events, however they are correlated. Its proof uses only monotonicity and countable subadditivity of the probability measure, applied to the tail unions of a convergent series.

Why does the second lemma fail without independence?

Take a single uniform U on (0, 1) and Aₙ = {U ≤ 1/n}. The probabilities are 1/n, so the series diverges, but the events are nested, and an outcome in infinitely many of them must satisfy U ≤ 0. Hence P(Aₙ i.o.) = 0. Divergence alone supplies many chances but not independent ones.

Is pairwise independence enough for the second lemma?

Yes. The Erdős–Rényi extension shows that if the Aₙ are pairwise independent and ∑ₙ P(Aₙ) = ∞, then P(Aₙ i.o.) = 1. Full mutual independence is sufficient but not necessary, which is useful when only pairwise independence can be verified.

How do the lemmas form a zero–one law?

For an independent sequence the sum ∑ₙ P(Aₙ) either converges, and BC1 gives P(Aₙ i.o.) = 0, or diverges, and BC2 gives P(Aₙ i.o.) = 1. There is no intermediate value, so a single number decides the answer completely.

How are the lemmas used to prove almost sure convergence?

Bound P(|Xₙ| > ε) for each fixed ε > 0. If those probabilities are summable, BC1 says the event {|Xₙ| > ε} occurs only finitely often almost surely, so |Xₙ| ≤ ε eventually. Letting ε run through a countable sequence tending to 0 yields Xₙ → 0 almost surely.