Let $f_n:\mathbb{R}\to\mathbb{R}$ be a sequence of continuous functions converging uniformly on compact sets to $f:\mathbb{R}\to\mathbb{R}$. Let $(X_n)_{n\in\mathbb{N}}$ be a collection of independent and identical distributed random variables. Suppose these random variables are integrable.
Question: Does $\lim_{n\to\infty} f_n(X_n) - f(X_n) = 0$ with probabilty one?
My thoughts: I know that if $f_n$ converges to $f$ uniformly, then this is true. However, I'm unsure if this also holds when the uniform convergence is on compact sets.
Here is the slight modification required to show that the answer is NO even if expectation is required to be finite. Let $f_n(x)=\frac {x^{n}} {{(\ln n)^{n}}},n\geq 2$. Let $\{X_n\}$ be i.i.d positive random variables such that $P\{X_1 >t\} =\frac 1 {t^{2}}$ for $t \geq1$, $0$ for $t <1$. Then $\sum P\{f_n (X_n) >1\} = \sum P\{X_1 >\ln n\} =\sum \frac 1 {(\ln n)^{2}}=\infty$ whereas $EX_1=1$. By Borel Cantelli Lemma $\sum P\{f_n (X_n) >1\} =\infty$ implies that $f_n (X_n) >1$ for infinitely many n with probability 1 so $f_n (X_n)$ does not converge to 0.