Random variables — returns are random variables
▸ Pretest — guess, even if you don't know
Tomorrow's return on AAPL is best thought of as:
The abstraction: random variables
A random variable is a function that assigns a number to each outcome of a random process. Two examples:
- Discrete: the number of heads in 10 coin flips. Possible values: 0, 1, ..., 10.
- Continuous: tomorrow's log return on SPY. Possible values: any real number (mostly small ones).
The capital convention is to use for the random variable itself and lowercase for a specific realization. So:
- = "tomorrow's SPY return" (the abstract concept, not yet known)
- (a specific realization, observed after tomorrow)
This distinction matters: a strategy is built around the distribution of (many possible futures), not the value of any single .
Two flavors
Discrete
Takes one of countably many values, each with its own probability:
Example: in a hypothetical "up day or down day" model:
That's a complete distribution.
Continuous
Takes any value in an interval. The probability of any single point is zero (this surprises people the first time). Instead, probability is described by a density function :
For continuous random variables, we ask "what's the probability is between and " — not "what's the probability equals exactly 1.7%."
Daily stock returns are usually modeled as continuous.
Why daily returns are well-modeled this way
Daily log-returns of liquid US equities tend to look approximately like draws from a distribution centered slightly above zero with some width. The exact distribution isn't perfectly normal (we'll come back to fat tails in A1-03), but the abstraction — that returns are draws from a distribution we can characterize — is the foundational move that lets us build:
- Risk metrics (variance of returns)
- Portfolio theory (mean and covariance of asset returns)
- Strategy evaluation (is the realized return distribution consistent with the hypothesis?)
- Option pricing (the entire Black-Scholes machinery)
Without random variables, none of this exists.
The cumulative distribution function (CDF)
A useful object for any random variable is the CDF:
For SPY daily returns: historically , meaning "about 2.5% of days have returns at or below −2%." The CDF lets you read off any "what fraction of days have returns below X?" question directly.
A related concept: quantiles. The 5th percentile of daily returns is the value such that . We'll use these constantly when we discuss Value-at-Risk and tail risk.
⧉ Review cardWhat is a random variable?
⧉ Review cardWhat is P(X = x) for a continuous random variable?
⧉ Review cardWhat does the CDF F(x) = P(X ≤ x) tell you?
Explain it back
Without scrolling up, write 2–3 sentences explaining why we treat tomorrow's stock return as a random variable rather than just "an unknown number." Compare to the lesson when you're done.
◈ Calibration check
Could you explain to someone what 'random variable' means in your own words?
1 = guessing · 5 = could teach it
⏻ End of lesson
Mark it read to book its 3 review cards into your deck.
Sources & further reading
- bookWasserman (2004), All of Statistics — §2
- bookRoss (2014), Introduction to Probability Models, 11e — §2.1, 2.2
- bookTsay (2010), Analysis of Financial Time Series, 3e — §1.1