Well, I have some simple, maybe silly question about random variables, but there is something that I can not undestand when we define them. Suppese that, we have some random variable $X$, that is defined in a standard probability space $(\Omega,\mathcal{F}_s,\mathbb{P})$, where $\mathbb{P}:\mathcal{F}_s\rightarrow [0,1]$. I struggle to undestand which is the space , that this random variable is defined. Specifically, the random variable $X$ is a function $X:\Omega\rightarrow R$, where R is some arbitrary space and probabyly the real line. Can we claim that $X\in L^2(\Omega,\mathcal{F}_s,\mathbb{P})$ or this is wrong? How can we know indeed where this random variable belongs to?
Maybe my whole skeptic is wrong, so forgive me in advance, but I am a begginer, who wants to understand, this mathematical theory!