Random variable
Definition
A random variable is a measurable function:
or
where
If
Remarks:
- Boundedness: The condition
is often added (e.g., for uniform integrability). - 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 .
Probability distribution
Every random variable on a probabilistic space,
induces a probability measure
It is called the distribution of
Category theory viewpoint
From a categorical perspective, a random variable
is simply a morphism in the category of measurable spaces
- In Set, an element
corresponds to a map . - In a general category
, morphisms are called generalized elements of of shape . - This expresses the idea that objects are understood in terms of the ways other objects “probe” them.
Thus:
- A random variable
is a generalized element of of shape . - Intuitively, it is a structured element of
, where the structure comes from the underlying probability space .
In this sense, random variables are not just “values” in