A random variable is a X:(Ω,F)→(R,B(R))X:(\Omega,\mathcal{F})\to(\mathbb{R},\mathcal{B}(\mathbb{R})) defined on a (Ω,F,P)(\Omega,\mathcal{F},\mathbb{P}), meaning that for every Borel set B⊆RB\subseteq\mathbb{R} one has X−1(B)∈FX^{-1}(B)\in\mathcal{F}.

Consequences

A random variable induces a on via PX(B)=P(X∈B)\mathbb{P}_X(B)=\mathbb{P}(X\in B), and quantities such as and are defined from this law.

Examples
  • For an event A∈FA\in\mathcal{F}, the indicator X=1AX=\mathbf{1}_A (equal to 11 on AA and 00 on AcA^c) is a random variable.
  • In a fair coin toss space, the function X(H)=1X(H)=1 and X(T)=0X(T)=0 is a random variable taking values in {0,1}\{0,1\}.