Definition (review)
A random variable is a measurable function (where is given with the Borel sigma-algebra generated by the Euclidean topology):
such that
for every open set and
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 of a unique event, which takes the value 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 .