Random Variable
- Category
- Quantitative Finance
- Level
- Foundation
Simple definition
A number whose value is not known in advance because it depends on how an uncertain situation turns out. Tomorrow's return on an asset is one.
Professional definition
A rule that assigns a number to every possible outcome of an uncertain experiment, carrying the probabilities of those outcomes with it. Discrete ones take countably many values; continuous ones take values across an interval and are described by a density rather than by point probabilities.
Technical definition
A measurable function from a probability space to the real line. Its law is fully characterised by the distribution function F(x) = Pr(X ≤ x), which is non-decreasing and right-continuous. Realised data are single draws from that law, never the law itself — the central reason one price history cannot reveal the process that produced it.
Academic definition
A measurable mapping from the sample space of a probability model onto the reals, whose induced law is summarised by its cumulative distribution function.
Mechanism
Separating an outcome from the number attached to it is what makes uncertainty computable. Once every outcome carries a value and a probability, averages, dispersion and tail risk all follow mechanically from one object. The cost is that the object is never observed — only its draws are.
In practice
- Who uses it
- Anyone modelling an uncertain quantity: risk managers sizing exposure, quants specifying a strategy's return process, and option desks pricing payoffs.
- Why it matters
- It is the object every later statistic is computed from. Expected value, variance, value at risk and position sizing are all read off the same random variable.
- Limitations
- The assignment is a modelling choice, not an observation. Two analysts can attach different random variables to one market and reach defensible but incompatible risk numbers.
Common mistakes
- Treating a realised price path as the random variable itself.
- Assuming one fixed law while the generating process is shifting.
- Carrying discrete-model intuition onto continuous quantities.
Examples
Before a die is rolled the result is a random variable with six equally likely values. After it lands, the 4 you see is a realisation, not the variable. Markets are read the same way: the chart is the realisation.
Count the up-closes in five independent sessions, each equally likely to close up or down. The count is a random variable on 0 to 5, and the chance of at most three up-closes is 26 out of 32, or 81.25%.
- 5 sessions
- Pr(up close) = 0.5 for each session
- sessions assumed independent
- X = number of up-closes
- X is binomial with n = 5 and p = 0.5, so all 32 up/down paths are equally likely
- Paths with 0, 1, 2 or 3 up-closes: 1 + 5 + 10 + 10 = 26
- Pr(X <= 3) = 26 / 32
The fair-coin model illustrates the mechanics only. It is not a claim that daily closes are independent or equally likely.
Mathematical foundation
Variables
| X | The random variable: the number attached to each outcome | same unit as the quantity modelled |
| \Omega | Sample space: the set of all possible outcomes | set |
| F(x) | Cumulative distribution function: the probability that X does not exceed x | probability, 0 to 1 |
| x | A threshold value on the real line | same unit as X |
Procedure
List or describe the possible outcomes. Attach a number to each. Attach a probability to each, with the probabilities summing or integrating to one. The distribution function is then built by accumulating probability from the left: for any x, add the probability of every outcome whose number is x or less.
Worked example
- X = number of up-closes in 5 independent sessions
- Pr(up close) = 0.5 each
- Each of the 32 up/down paths has probability 1/32
- Number of paths with at most 3 up-closes = 1 + 5 + 10 + 10 = 26
- F(3) = Pr(X <= 3) = 26/32
Interpretation
The distribution function answers one question at every threshold: how much probability sits at or below this value. It says nothing about which outcome will occur, only how the total probability is laid out across outcomes.
Assumptions
- A probability space with a consistent probability measure is taken to exist; the definition does not supply it.
- Discrete variables are described by a mass function and continuous ones by a density, while the distribution function covers both cases.
- Independence between successive draws is an extra assumption, not part of the definition of a random variable.
- The definition fixes no particular distribution, so it cannot by itself tell you how any market behaves.
- Some heavy-tailed laws have a perfectly well-defined distribution function while their mean or variance does not exist.
Related terminology
- related
- Probability Distribution Expected Value Variance Stochastic Process Random Walk Law of Large Numbers Monte Carlo Simulation Sample versus Population
Stochastic Process
A random variable is one uncertain number. A stochastic process is a whole family of them indexed by time — a path, not a point.
Sources
Pearson · 2021 (11th ed.) · chapters introducing stochastic models of asset prices
Print source
Editorial status
Flagged by the editor as uncertain on a linguistic, mathematical or regulatory point.
