I´m a beginner in more advanced probability and measure theory and there is this definition that I simply can´t understand. It says, a random variable is a function $X\colon\Sigma\to \mathbb R$ with the property that the set $\{\sigma \subseteq \Sigma": X(\sigma)\in B\}$ belongs to $\mathcal F$ for each Borel set $B$. ($\mathcal F$ is a $\sigma$-algebra).
Does it mean that $X(\sigma)$ should be contained in every possible Borel set for all values of sigma? Or is it the other way around, that we start by "looking" at each Borel set to find out which values of sigma that makes $X(\sigma)$ belong to each one of the Borel sets, and then finally "look" if all these sigmas belong to the sigma algebra $\mathcal F$?
I've had a really hard time trying to find out what this definition really means so your answers would be much appreciated. Thanks in advance! (Sorry, but I´m not used to Latex).