I am working on a problem involving almost sure convergence and Rayleigh distributed random variables, and I need some help to confirm my understanding and approach. The problem is as follows:
Let $X_1, X_2, X_3, \ldots$ be a sequence of random variables such that $X_n \sim \operatorname{Rayleigh}\left(\frac{1}{n}\right)$, i.e., $$ f_{X_n}(x)= \begin{cases}n^2 x \exp \left\{-\frac{n^2 x^2}{2}\right\} & \text { if } x>0 \\ 0 & \text { otherwise. }\end{cases} $$
I need to show that $X_n \xrightarrow{\text { a.s. }} 0$. Here is my approach:
I understand that to prove $X_n \xrightarrow{\text { a.s. }} 0$, I need to show that for any $\epsilon>0$, $$ \sum_{n=1}^{\infty} P\left(\left|X_n\right|>\epsilon\right)<\infty $$
Using the given PDF, I computed the probability: $$ P\left(X_n>\epsilon\right)=\int_\epsilon^{\infty} n^2 x \exp \left\{-\frac{n^2 x^2}{2}\right\} d x \text {. } $$
I made a change of variable $u=n x$, so $d u=n d x$, leading to: $$ P\left(X_n>\epsilon\right)=\int_{n \epsilon}^{\infty} u \exp \left\{-\frac{u^2}{2}\right\} \frac{d u}{n} $$
Recognizing the integral as the tail of a Rayleigh distribution, which can be expressed in terms of the complementary error function erfc, I approximate: $$ P\left(X_n>\epsilon\right) \approx \exp \left\{-\frac{n^2 \epsilon^2}{2}\right\} $$
I then check the series: $$ \sum_{n=1}^{\infty} \exp \left\{-\frac{n^2 \epsilon^2}{2}\right\} $$
Given the rapid decay of the exponential term, this series converges. Therefore, by the Borel-Cantelli Lemma, $X_n \xrightarrow{\text { a.s. }} 0$.
Could someone please verify if this approach and conclusion are correct? Is there any step I should reconsider or any additional insight needed to solidify the proof?
Thank you (Also, I am very new in probability theory)!