Random variable
Definition (review)
A random variable is a measurable function (where
such that
for every open set
A random variable which only takes the values 0 or 1 encodes the same data as an event (more precisely, it is the indicator function on
and
on its complement). More generally, we can construct events from random variables: for any Borel subset
the preimage
is an event (the event that
lies in
), often written
, and so we can consider its probability
.