A variable whose possible values are numerical outcomes of a random phenomenon.A random variable is a mathematical function that assigns a numerical value to each outcome of a random experiment. It is a fundamental concept in probability theory and statistics, bridging the gap between abstract outcomes (like coin flips or dice rolls) and measurable quantities. Random variables can be discrete, taking on a countable set of values (e.g., number of heads in 10 flips), or continuous, taking on any value in an interval (e.g., the exact height of a randomly chosen person).
The formal concept of a random variable was developed in the early 20th century, with key contributions from Andrey Kolmogorov in the 1930s, who placed probability on a rigorous measure-theoretic foundation.
Formally, a random variable X maps from a sample space Ω to the real numbers. The probability that X takes a particular value or falls in a range is determined by its probability distribution. For discrete variables, this is a probability mass function; for continuous variables, a probability density function. The expected value and variance summarize the distribution's center and spread. Random variables allow us to apply calculus and algebra to randomness, enabling predictions and inference.
Random variables are used everywhere in science and engineering: in risk assessment, financial modeling, quality control, machine learning, and physics (e.g., quantum measurement outcomes). They are the building blocks of statistical inference and simulation.
In quantum mechanics, the outcome of a measurement is a random variable, but its distribution is determined by the wavefunction—so randomness is intrinsic, not just a lack of information.
| X | variable | first random variable — random variable |
| Y | variable | second random variable — random variable |
| Var(X) | variable | variance of X — variance |
| Var(Y) | variable | variance of Y — variance |
| Var(X+Y) | variable | variance of the sum X+Y — variance |
| f | variable | probability density function — probability density function |
| x | variable | random variable — random variable |
| k | variable | power law exponent — power law exponent |
| D_{KL} | variable | Kullback-Leibler divergence — information divergence |
| P(x) | variable | probability density of distribution P — probability density |
| Q(x) | variable | probability density of distribution Q — probability density |
| x | variable | random variable — random variable |
| \int | operator | sums the integrand over all values of x — integral operator |
| \log | operator | computes the logarithm of the ratio — logarithm |
| X_n | variable | random variable indexed by n — random variable |
| d_s | variable | spectral dimension — spectral dimension |
| Var | operator | statistical variance of a random variable — variance |
| ~ | operator | asymptotically proportional to (up to a constant factor) — asymptotic equivalence |
| f | operator | some function of the spectral dimension — function |










