Convergence in probability, almost surely, and the continuous mapping theorem
This post belongs to a series of study notes I first published in 2012, during my PhD. I revised it in 2026: the mathematics was checked and corrected and the text rewritten. The results and proofs follow van der Vaart (1998, chap. 2); the presentation and comments are mine.
The previous post defined convergence in distribution. Here are two stronger modes of convergence, and the result that makes all three easy to work with.
Two more modes of convergence
Let \(d(x, y) = \|x - y\|\) be the Euclidean distance on \(\mathbb{R}^k\). Unlike convergence in distribution, both modes below require \(X_n\) and \(X\) to be defined on the same probability space.
A sequence of random vectors \(X_n\) converges in probability to \(X\) if, for every \(\varepsilon > 0\),
\[ \mathbb{P}\big(d(X_n, X) > \varepsilon\big) \to 0 . \]
We write \(X_n \xrightarrow{P} X\), or equivalently \(d(X_n, X) \xrightarrow{P} 0\).
\(X_n\) converges almost surely to \(X\) if \(d(X_n, X) \to 0\) with probability one:
\[ \mathbb{P}\big(\lim_{n} d(X_n, X) = 0\big) = 1 . \]
We write \(X_n \xrightarrow{\text{as}} X\).
Almost sure convergence is about individual trajectories \(n \mapsto X_n(\omega)\). Convergence in probability only asks that, for each fixed \(n\), a large deviation is unlikely.
The continuous mapping theorem
The continuous mapping theorem is simple but used constantly. If \(X_n\) converges to \(X\) in any of the three senses and \(g\) is continuous, then \(g(X_n)\) converges to \(g(X)\) in the same sense. In fact \(g\) only needs to be continuous on a set that \(X\) charges with probability one.
Theorem 1 (Continuous mapping) Let \(g : \mathbb{R}^k \to \mathbb{R}^m\) be continuous at every point of a set \(C\) with \(\mathbb{P}(X \in C) = 1\). Then:
- if \(X_n \rightsquigarrow X\), then \(g(X_n) \rightsquigarrow g(X)\);
- if \(X_n \xrightarrow{P} X\), then \(g(X_n) \xrightarrow{P} g(X)\);
- if \(X_n \xrightarrow{\text{as}} X\), then \(g(X_n) \xrightarrow{\text{as}} g(X)\).
For example, if \(X_n \rightsquigarrow N(0, 1)\), then \(X_n^2 \rightsquigarrow \chi^2_1\). If \(Y_n \xrightarrow{P} y \ne 0\), then \(1/Y_n \xrightarrow{P} 1/y\) even though \(x \mapsto 1/x\) is discontinuous at zero, because the limit puts no mass there.
Proof. (i) We use characterization (vi) of the portmanteau lemma. Let \(F \subseteq \mathbb{R}^m\) be closed. Then \(\{g(X_n) \in F\} = \{X_n \in g^{-1}(F)\}\). Since \(g\) is only continuous on \(C\), the set \(g^{-1}(F)\) need not be closed. We claim that \[ g^{-1}(F) \subseteq \overline{g^{-1}(F)} \subseteq g^{-1}(F) \cup C^c . \] The first inclusion is trivial. For the second, let \(x \in \overline{g^{-1}(F)}\), so \(x = \lim x_m\) for some sequence \(x_m \in g^{-1}(F)\). If \(x \in C\), continuity gives \(g(x_m) \to g(x)\), and \(g(x) \in F\) because \(F\) is closed; that is, \(x \in g^{-1}(F)\). Otherwise \(x \in C^c\).
Applying portmanteau (vi) to \(X_n\) and the closed set \(\overline{g^{-1}(F)}\), \[ \limsup \mathbb{P}\big(g(X_n) \in F\big) \le \limsup \mathbb{P}\big(X_n \in \overline{g^{-1}(F)}\big) \le \mathbb{P}\big(X \in \overline{g^{-1}(F)}\big) \le \mathbb{P}\big(X \in g^{-1}(F)\big) + \mathbb{P}(X \in C^c) . \] The last term is zero, so \(\limsup \mathbb{P}(g(X_n) \in F) \le \mathbb{P}(g(X) \in F)\). By portmanteau (vi) again, now in the other direction, \(g(X_n) \rightsquigarrow g(X)\).
(ii) Fix \(\varepsilon > 0\). For \(\delta > 0\), let \(B_\delta\) be the set of points \(x\) for which there is a \(y\) with \(\|x - y\| \le \delta\) and \(\|g(x) - g(y)\| > \varepsilon\). If \(X \notin B_\delta\) and \(\|g(X_n) - g(X)\| > \varepsilon\), then necessarily \(\|X_n - X\| > \delta\). Therefore \[ \mathbb{P}\big(\|g(X_n) - g(X)\| > \varepsilon\big) \le \mathbb{P}(X \in B_\delta) + \mathbb{P}\big(\|X_n - X\| > \delta\big). \] For fixed \(\delta\), the second term tends to zero as \(n \to \infty\). For the first, \(\mathbb{P}(X \in B_\delta) \le \mathbb{P}(X \in B_\delta \cap C) + \mathbb{P}(X \in C^c)\). The sets \(B_\delta \cap C\) decrease as \(\delta \downarrow 0\), and their intersection is empty because \(g\) is continuous at every point of \(C\). So \(\mathbb{P}(X \in B_\delta \cap C) \to 0\), while \(\mathbb{P}(X \in C^c) = 0\). Letting first \(n \to \infty\) and then \(\delta \to 0\) proves the claim.
(iii) On the event \(\{\lim X_n = X\} \cap \{X \in C\}\), continuity of \(g\) at \(X\) gives \(\lim g(X_n) = g(X)\). Hence \[ \mathbb{P}\big(\lim g(X_n) = g(X)\big) \ge \mathbb{P}\big(\lim X_n = X,\ X \in C\big) \ge \mathbb{P}\big(\lim X_n = X\big) - \mathbb{P}(X \in C^c) = 1 - 0 = 1 . \]
References
Series: Asymptotic statistics · Previous: The portmanteau lemma · Next: Helly’s lemma and Prohorov’s theorem