I'm just getting started with convergence of random variables and while trying to understand it I came across some very confusing notation. It's not the definitions themselves, they make sense, but take a look at this problem:
Let $\lambda = \{w_k|k\in\mathbb{N}\}$ be a set of elementary outcomes of some experiment (the problem is not in English, not sure whether it's 'set of elementary outcomes' or just 'set of outcomes' in English). And let $P(w_k) = \frac{6}{\pi^2k^2}$. Let $(X_n)$ be a sequence of random variables given as $$X_n(w_k) = \begin{cases}n, & k=n \\ 0, &k\neq n \end{cases}$$ Let $(Y_n)$ be a sequence of random variables defined as $$Y_n = 1-\frac{X_n}{n^2}$$ Examine all four types of convergence of the sequences $(X_n)$ and $(Y_n)$.
Okay. For the sake of completeness I wrote down the entire problem, but now let's just disregard the second part (the one where they introduce $Y$). This is my first time dealing with convergence of random variables but I've done a lot of problems with random variables in general and I've never seen a notation such as $$X_n(w_k)$$ Disregarding the whole concept of convergence, I've never seen a notation in the form of random_variable(outcome).
So instead of trying to understand what it meant I went on to look at the solution of the problem and try to maybe catch it in there somehow. The very first line in the solution states:
$$X_n : \bigg(\begin{matrix} 0 & n \\ 1 - \frac{6}{\pi^2n^2} & \frac{6}{\pi^2n^2}\end{matrix} \bigg)$$
I suppose that in some way this could have meant 'the $n$th random variable in the given sequence of random variables can take on the values of either $0$ or $n$' and somehow it connects to the fact that $P(w_k) = \frac{6}{\pi^2k^2}$ because of that $k=n$ thing or something?
The thing is, I'm so confused about this that I don't even know how to explain my extremely informal understanding of it.
So can anyone help me out here? Not looking for the solution to the problem, just a little clarity about notation.
Thanks.
EDIT:
I'm not sure whether this is allowed but I'd like to add just one more question here (but it's kind of similar to the original, still caused by some confusion of what is meant by a random variable at times). From your responses (one in the comments one in the answers) and by reading up on formal definitions of random variables I've managed to understand what is meant by the notation that I asked about. However, this is written below the line that was unclear to me:
$$\bigg(\begin{matrix}0 & n \\ 1-\frac{6}{\pi^2n^2} & \frac{6}{\pi^2n^2} \end{matrix}\bigg) \to_{n->\infty} \bigg(\begin{matrix} 0 & n \\ 1 & 0 \end{matrix}\bigg)$$
That seems clear enough but in the next line they wrote:
$$X_n \to X = 0$$
and then afterwards when checking, for instance the convergence in probability they use:
$$P\{|X_n - X| \geq \epsilon\} = P\{|X_n - 0| \geq \epsilon\} = P\{|X_n| \geq \epsilon\} = ...$$
The $X_n \to X = 0$ is the thing that I don't get, and then subsequently using $X = 0$ as if $X$ was a constant rather than a random variable.