I've been confused about the definition of a stochastic (random) variable for an embarrassingly long amount of time.
From the Wikipedia entry on Stochastic Processes, I could gather that a random variable is a map from a probability space $(\Omega,F,P)$ to a space $S$. And if there is one such map $X(t)$ for each $t\in T$ (where $T$ is some indexing set), then we have a stochastic process.
Is this definition correct? So if $(\Omega,F,P)$ is the probability space {Heads,Tails} with $P(Heads)=\frac{1}{2}$ and $P(Tails)=\frac{1}{2}$, and the space $S$ is $\{1,0\}$, then $X(heads)=1$ and $X(tails)=0$ is one such random variable, and $X(heads)=0$ and $X(tails)=1$ is another random variable.
Both of these random variables are possible with a probability of $\frac{1}{2}$ each.
Am I understanding random variables correctly? That they're maps, out of many possible maps?
A real-valued random variable is just a measurable function from $\Omega$ to $\mathbb{R}$
For practical purposes you can forget the word measurable and think of it as just a function.
It's as simple as that. It's just a fancy/confusing name "random variable"
which I guess is there mainly for historical reasons.
One could argue that a random variable (r.v.) is neither a variable, nor is random.
It's just a function from $\Omega$ to the reals.
Of course if it's not a real-valued r.v. but if it takes values in some other set $S$ then well... you just replace $\mathbb{R}$ with $S$ in that definition.