Convergence in probability of random variables and continuous function

analysismeasure-theoryprobabilityprobability theorystatistics

I want to prove that if $\xi_n \xrightarrow {\mathbb{P}} \xi$ and for some continuous function $\mathit{f}:\mathbb{R}\to\mathbb{R}$ then $$\mathit{f}(\xi_n)\xrightarrow {\mathbb{P}} \mathit{f}(\xi)$$
May somebody can help me? I would be grateful.

Best Answer

Using the definition of continuity, let $\varepsilon > 0$, then ther exists $\delta >0$ s.t. $\lvert X_n - X \rvert \leq \delta \implies \lvert f(X_n) - f(X) \rvert \leq \varepsilon$ or equivalently (taking the negation of previous statement), $\lvert f(X_n) - f(X) \rvert > \varepsilon \implies \lvert X_n - X \rvert > \delta$. Then by inclusion of events, $\mathbb{P}(\lvert f(X_n) - f(X) \rvert > \varepsilon) \leq \mathbb{P}(\lvert X_n - X \rvert > \delta)$ and the last quantity goes to $0$ as $n\to \infty$ by definition of convergence in probability.