Convergence of sequences

Level FundamentalDifficulty ★★★★★Concept⌖ Open in the map

What is it?

an→La_n \to L means: however small a tolerance ε\varepsilon you pick, from some index on every term is within ε\varepsilon of LL. A sequence that does not converge diverges — to infinity, or by oscillating forever.

Why does it exist?

"Getting closer and closer" is not enough (1/n1/n gets closer and closer to −1-1 too). We need a definition that a computer could check in principle: give me any tolerance, I give you an index after which the error stays below it. That definition is also exactly what a stopping criterion in numerical software tries to certify.

Intuition

Draw a horizontal band of half-width ε\varepsilon around LL. Convergence says that, whatever the width of the band, the dots (n,an)(n, a_n) eventually enter it and never leave. Narrow the band and you may have to wait longer — that waiting time N(ε)N(\varepsilon) is what numerical analysts call the rate of convergence.

Formal definition

lim⁡n→∞an=L  ⟺  ∀ε>0 ∃N∈ℕ ∀n≥N: ∣an−L∣<ε.\lim_{n\to\infty} a_n = L \iff \forall \varepsilon > 0\ \exists N \in \N\ \forall n \ge N:\ |a_n - L| < \varepsilon.

A sequence is Cauchy if ∀ε>0 ∃N ∀m,n≥N:∣am−an∣<ε\forall \varepsilon > 0\ \exists N\ \forall m, n \ge N: |a_m - a_n| < \varepsilon. In ℝ\R (and only because ℝ\R is complete) Cauchy sequences are exactly the convergent ones.

Formulas

1n→0,rn→0 (∣r∣<1),(1+xn)n→ex\frac1n \to 0, \qquad r^n \to 0 \ (|r| < 1), \qquad \left(1 + \tfrac{x}{n}\right)^n \to e^x

Example

an=nn+1→1a_n = \frac{n}{n+1} \to 1: given ε\varepsilon, ∣an−1∣=1n+1<ε|a_n - 1| = \frac{1}{n+1} < \varepsilon as soon as n>1ε−1n > \frac1\varepsilon - 1. For ε=10−6\varepsilon = 10^{-6} you need N=106N = 10^6 — slow, "sublinear" convergence. Compare with Newton's iteration for 2\sqrt 2, which reaches 10−1510^{-15} in five steps.

Why does it matter?

Every iterative algorithm — training a model, solving a linear system, computing PageRank — is a sequence that we hope converges. Proving that it does, and how fast, is how we know it is worth running; and in practice the Cauchy criterion ("stop when consecutive iterates barely change") is the most common stopping rule.

Where it shows up in computing

  • Scientific computing★★★★★frequentScientific computing and algorithms

    Stopping criteria such as ∣xk+1−xk∣<tol|x_{k+1} - x_k| < \text{tol} are a finite check of the Cauchy condition.

Where it shows up in AI

  • Gradient descent★★★★★frequentAI and machine learning

    Convergence theorems guarantee f(xk)→f∗f(x_k) \to f^\ast under conditions on the step size.

Where is it used?

Computing topics reachable from here, through the chain of ideas that leads to them:

What depends on it

Exercises

1Proof

Prove from the definition that 3n+1n→3\frac{3n + 1}{n} \to 3.

Solution

∣3n+1n−3∣=1n<ε|\frac{3n+1}{n} - 3| = \frac1n < \varepsilon whenever n>1/εn > 1/\varepsilon; take N=⌊1/ε⌋+1N = \lfloor 1/\varepsilon \rfloor + 1.

2AI

A training loss goes 2.0,1.0,0.5,0.25,…2.0, 1.0, 0.5, 0.25, \dots (halving each epoch). After how many epochs is it below 10−310^{-3}? What kind of convergence is this?

Solution

2⋅2−k<10−3  ⟺  k>log⁡22000≈10.972 \cdot 2^{-k} < 10^{-3} \iff k > \log_2 2000 \approx 10.97, so 11 epochs. The error shrinks by a constant factor: linear (geometric) convergence.

↑ ↓ to navigate · ↵ · Esc