The set of real numbers is large, and so we can often embed other sets within it. Also, we are often interested in modelling random quantities.
A real outcome variable (or real random variable, random variable) is an outcome variable whose codomain is a subset of the real numbers. Such variables are often called quantitative. Caution: many authorities reserve the term random variable for outcome variables whose domain is $\R $.
The probability mass
function (or p.m.f.,
pmf) of a random variable
$X: \Omega \to \R $ is the function $f: \R
\to \R $ defined by
\[
f(x) = P(X = x)
\]
For a real-valued random variable $X: \Omega
\to \R $ and $\alpha \in \R $, we often
abbreviate the sets
\[
\Set{\omega \in \Omega }{X(\omega ) \leq \alpha } \text{ and }
\Set{\omega \in \Omega }{X(\omega ) \geq \alpha }
\]
Tossing a fair coin $n$ times.
Suppose we model $n$ tosses of a fair coin as
usual, so that $\Omega = \set{0,1}^n$ and $p:
\Omega \to \R $ is defined by
\[
p(\omega ) = 2^{-n} \quad \text{for all } \omega \in \Omega
\] \[
f(k) = {n \choose k} 2^{-n} \quad \text{for } k = 0,
\dots , n
\]
Given a random variable $X: \Omega \to \R $
and probability measure $P$ on $\pow{\Omega }$,
the function $F: \R \to \R $ defined by
\[
F(x) = P(X \leq x)
\]