A random variable (rv) is a map from .
The cumulative distribution function (cdf) of any rv, , is ; can be any real number.
Discrete random variables can take at most a countably infinite number of values. The probability mass function (pmf) of a discrete rv is .
Continuous random values can take a continuum of values. The probability density function (pdf) of a continuous rv is . Conversely, .
The quantile function of a continuous rv, , evaluated at some is the smallest value such that .
For some real-valued function, , the expectation, is if is discrete and if is continuous.
Expectation is linear: .
The variance of any rv, , is . The standard deviation is .
.