Foundations to Frontier
Tests
A. Mathematical Foundations › A4 Probability Theory › Theory

Modes of Convergence: Almost Surely, in Probability, in Lᵖ, in Distribution

What does it mean for random quantities to 'converge'? Almost surely: each run settles. In probability: big errors become unlikely. In Lᵖ: the average error shrinks. In distribution: only the shape of the distribution settles. You will see which modes imply which, counterexamples for each gap, and the toolkit that makes asymptotics usable (continuous mapping, Slutsky, Skorokhod), applied to consistency and asymptotic normality of estimators.

Level 0: Foundation

★☆☆☆☆ Introductory⏱ 5 minGeneral audience. No mathematics required.

“Getting closer” can mean different things

A robot keeps improving its estimate of a wall’s distance. What does “the estimate converges” mean?

  • Every run settles down. If you replay the robot’s life, the estimate homes in on the truth, every time (except in impossible-to-notice cases).
  • Big mistakes become rare. At any late moment, a big error is unlikely, though some runs might still have occasional hiccups forever.
  • The average error shrinks. On average over many runs, the mistake gets small.
  • Only the pattern settles. The histogram of estimates across runs takes a fixed shape, even if each run keeps jumping around.

These are different promises, and mixing them up leads to real bugs in reasoning.

Four ways to "converge to 0", and why they differ
at n = 158: P(|Xₙ| > ε) = 0.0060 · E|Xₙ| = 0.006 · share of paths with |Xₘ| > ε for some m in [n, 4n]: 1.000
in probability ✓ · in L¹ ✓ · almost surely ✗
A window of width 2⁻ᵏ sweeps across [0,1] again and again. The chance of being hit → 0, yet every path is hit once in every sweep. Five coloured sample paths are shown (one fixed outcome each).
Why engineers care

“This learning algorithm converges”, “this estimator is consistent” and “this filter’s error is asymptotically Gaussian” each mean a specific mode of convergence. Knowing which one tells you whether a single deployed run can be trusted, or only the average over many runs.

📝 Quick check (Level 0)
0/3 answered
  1. 1. 'Every run eventually settles' is the strongest of the everyday meanings. Its name is…
  2. 2. If only the histogram's shape settles, individual runs…
  3. 3. A rare but endless hiccup in each run is compatible with…

Level 1: Beginner

★★☆☆☆ Basic⏱ 20 minSecondary-school mathematics: arithmetic and elementary algebra.

Four definitions

Let Xn,XX_n, X be random variables on the same probability space (except for the last mode, which doesn’t need one).

  1. Almost surely: P({ω:Xn(ω)→X(ω)})=1P\big(\{\omega : X_n(\omega)\to X(\omega)\}\big) = 1. Written Xn→a.s.XX_n\xrightarrow{\text{a.s.}}X.
  2. In probability: P(∣Xn−X∣>ε)→0P(\lvert X_n - X\rvert > \varepsilon)\to0 for every ε>0\varepsilon > 0. Written Xn→PXX_n\xrightarrow{P}X.
  3. In LpL^p (p≥1p\ge1): E∣Xn−X∣p→0\mathbb E\lvert X_n - X\rvert^p\to0. For p=2p = 2, the MSE goes to 0.
  4. In distribution (weakly): FXn(x)→FX(x)F_{X_n}(x)\to F_X(x) at every continuity point xx of FXF_X. Written Xn→dXX_n\xrightarrow{d}X.

How they relate

a.s. ⇒ in probability ⇒ in distribution,Lp ⇒ in probability\text{a.s.}\ \Rightarrow\ \text{in probability}\ \Rightarrow\ \text{in distribution}, \qquad L^p\ \Rightarrow\ \text{in probability}

No other implications hold in general. The strong LLN is a.s., the weak LLN is in probability, and the CLT is in distribution.

📝 Quick check (Level 1)
0/3 answered
  1. 1. Which is the weakest mode?
  2. 2. L² convergence implies…
  3. 3. The CLT is a statement about convergence…

Level 2: Intermediate

★★★☆☆ Intermediate⏱ 45 minUndergraduate students and practising engineers.

Counterexamples (try them in the demo)

Take U∼Uniform(0,1)U\sim\text{Uniform}(0,1).

  • In probability, not a.s.: the typewriter sequence. Write n=2k+jn = 2^k + j and let Xn=1{U∈[j2−k,(j+1)2−k)}X_n = \mathbf 1\{U\in[j2^{-k}, (j+1)2^{-k})\}. P(Xn=1)=2−k→0P(X_n = 1) = 2^{-k}\to0, but each sweep across [0,1][0,1] hits every UU, so no path converges.
  • A.s., not L1L^1: Xn=n1{U<1/n}X_n = n\mathbf 1\{U<1/n\}. Once n>1/Un > 1/U it is 0 forever, but EXn=1\mathbb EX_n = 1.
  • In distribution, not in probability: Xn=(−1)nZX_n = (-1)^nZ. Every Xn∼N(0,1)X_n\sim\mathcal N(0,1), but ∣Xn+1−Xn∣=2∣Z∣\lvert X_{n+1} - X_n\rvert = 2\lvert Z\rvert forever.

Partial converses

  • To a constant: Xn→dc⇒Xn→PcX_n\xrightarrow{d}c\Rightarrow X_n\xrightarrow{P}c.
  • Fast enough in probability: if ∑nP(∣Xn−X∣>ε)<∞\sum_nP(\lvert X_n - X\rvert > \varepsilon)<\infty for every ε\varepsilon, then a.s. (Borel–Cantelli, A4.3-4). Every sequence converging in probability has an a.s.-converging subsequence.
  • To get L1L^1 from a.s.: you need uniform integrability, for example a dominating integrable bound (DCT, A4.3-1).

The working toolkit

  • Continuous mapping: if Xn→XX_n\to X (in any of the three modes) and gg is continuous, then g(Xn)→g(X)g(X_n)\to g(X) in the same mode.
  • Slutsky: if Xn→dXX_n\xrightarrow{d}X and Yn→PcY_n\xrightarrow{P}c, then Xn+Yn→dX+cX_n + Y_n\xrightarrow{d}X + c and XnYn→dcXX_nY_n\xrightarrow{d}cX. This is why you can replace σ\sigma by the sample ss in CLT intervals.
🐍 Exercise 1: the typewriter and the spike
Implement the typewriter and moving-spike sequences. Show that the typewriter → 0 in probability, but every path is hit in every dyadic block. Show that the spike → 0 a.s. (no hits once n > 1/u), but E|Xₙ| = 1 for all n.
📝 Quick check (Level 2)
0/3 answered
  1. 1. Xₙ = (−1)ⁿZ converges…
  2. 2. Slutsky lets you replace σ in √n(X̄ − μ)/σ with…
  3. 3. Convergence in distribution to a constant implies…

Level 3: Advanced

★★★★☆ Advanced⏱ 45 minGraduate level, with full derivations and proofs.

Proofs of the main implications

a.s. ⇒ in probability. Let An={sup⁡m≥n∣Xm−X∣>ε}A_n = \{\sup_{m\ge n}\lvert X_m - X\rvert > \varepsilon\}. The AnA_n decrease to a subset of the non-convergence set, which has probability 0. By continuity of measure, P(An)→0P(A_n)\to0, and P(∣Xn−X∣>ε)≤P(An)P(\lvert X_n - X\rvert > \varepsilon)\le P(A_n). ∎

L^p ⇒ in probability. Markov: P(∣Xn−X∣>ε)≤E∣Xn−X∣p/εp→0P(\lvert X_n - X\rvert > \varepsilon)\le\mathbb E\lvert X_n - X\rvert^p/\varepsilon^p\to0. ∎

In probability ⇒ in distribution. Fix a continuity point xx of FXF_X and ε>0\varepsilon > 0.

  1. Upper bound. P(Xn≤x)≤P(X≤x+ε)+P(∣Xn−X∣>ε)P(X_n\le x)\le P(X\le x + \varepsilon) + P(\lvert X_n - X\rvert > \varepsilon).
  2. Lower bound. Symmetrically, P(Xn≤x)≥P(X≤x−ε)−P(∣Xn−X∣>ε)P(X_n\le x)\ge P(X\le x - \varepsilon) - P(\lvert X_n - X\rvert > \varepsilon).
  3. Limit. Let n→∞n\to\infty, then ε→0\varepsilon\to0. Continuity of FXF_X at xx gives FXn(x)→FX(x)F_{X_n}(x)\to F_X(x). ∎

Characterizations of convergence in distribution

These are equivalent (the portmanteau theorem):

  • FXn(x)→FX(x)F_{X_n}(x)\to F_X(x) at continuity points;
  • Eg(Xn)→Eg(X)\mathbb Eg(X_n)\to\mathbb Eg(X) for every bounded continuous gg;
  • φXn(t)→φX(t)\varphi_{X_n}(t)\to\varphi_X(t) for all tt (Lévy, A4.3-3).

Skorokhod’s representation: if Xn→dXX_n\xrightarrow dX, there exist Yn=dXnY_n\overset d= X_n and Y=dXY\overset d= X on one space with Yn→YY_n\to Y a.s. (take Yn=FXn−1(U)Y_n = F_{X_n}^{-1}(U), A4.3-2). This often turns distributional arguments into pathwise ones.

Exercise 3.1: Why only at continuity points?

Let Xn=1/nX_n = 1/n (constant). Then Xn→0X_n\to0 surely. But FXn(0)=0F_{X_n}(0) = 0 for all nn, while F0(0)=1F_0(0) = 1. The jump of the limit’s CDF at 0 has to be excluded, or this obvious convergence wouldn’t count.

📝 Quick check (Level 3)
0/3 answered
  1. 1. The proof that a.s. ⇒ in probability uses…
  2. 2. Convergence in distribution is equivalent to E g(Xₙ) → E g(X) for all…
  3. 3. Skorokhod builds an a.s.-convergent copy using…

Level 4: Expert

★★★★★ Expert⏱ 40 minResearchers: original papers and open problems.

Consistency and asymptotic normality: calibrating a range bias

An estimator is consistent if θ^n→Pθ\hat\theta_n\xrightarrow P\theta. It’s asymptotically normal if n(θ^n−θ)→dN(0,V)\sqrt n(\hat\theta_n - \theta)\xrightarrow d\mathcal N(0, V). The asymptotic variance VV measures efficiency. To calibrate a lidar’s range bias from nn readings with Laplace noise, both the mean and the median are consistent. The mean has V=σ2=2b2V = \sigma^2 = 2b^2. The sample median has V=1/(4f(θ)2)=b2V = 1/(4f(\theta)^2) = b^2: twice as efficient, and robust to outliers too. The MLE is asymptotically normal with VV equal to the inverse Fisher information (A5), so here the median is the MLE.

🐍 Exercise 2 (research): consistency, asymptotic normality and Slutsky
Calibrate a 12 cm range bias from 400 Laplace-noise readings across 4000 simulated robots. Check the asymptotic variances of the median (1/(4f²) = 1) and the mean (σ² = 2), and show that studentized means of skewed data give honest 95% intervals (Slutsky).

Convergence modes in AI, robotics and aerospace

  • SGD and stochastic approximation. Robbins–Monro gives a.s. convergence. Many deep-learning results give convergence in expectation of the gradient norm (an L1L^1-type statement), which says nothing about a single run (Bottou, Curtis and Nocedal, 2018).
  • Particle filters converge in L2L^2 at rate O(1/N)O(1/\sqrt N) for each fixed time. Uniform-in-time guarantees need mixing assumptions (Del Moral, 2004).
  • Q-learning converges a.s. under Robbins–Monro step sizes and infinite exploration (Watkins and Dayan, 1992; Tsitsiklis, 1994).
  • Generative models are judged by distributional convergence: Wasserstein and MMD metrize convergence in distribution, for example in GANs and diffusion models.
  • Safety statements about one mission need a.s. or high-probability guarantees. Mean-error guarantees describe a fleet, not a single vehicle.

References

  1. P. Billingsley (1999). Convergence of Probability Measures, 2nd ed. Wiley.
  2. R. Durrett (2019). Probability: Theory and Examples, 5th ed., Ch. 2–3. Cambridge University Press.
  3. A. van der Vaart (1998). Asymptotic Statistics, Ch. 2. Cambridge University Press.
  4. G. Grimmett, D. Stirzaker (2020). Probability and Random Processes, 4th ed., Ch. 7. Oxford University Press.
  5. E. Slutsky (1925). “Über stochastische Asymptoten und Grenzwerte.” Metron, 5.
  6. A. Skorokhod (1956). “Limit theorems for stochastic processes.” Theory of Probability and Its Applications, 1(3).
  7. L. Bottou, F. Curtis, J. Nocedal (2018). “Optimization methods for large-scale machine learning.” SIAM Review, 60(2).
  8. J. Tsitsiklis (1994). “Asynchronous stochastic approximation and Q-learning.” Machine Learning, 16.
  9. C. Watkins, P. Dayan (1992). “Q-learning.” Machine Learning, 8.
  10. P. Del Moral (2004). Feynman–Kac Formulae. Springer.