You already know that a stock’s return next month is uncertain — that’s the whole reason volatility and the Sharpe ratio exist. But “uncertain” is a feeling, not a tool. To actually reason about returns — to say how likely a 5% drawdown is, or whether two stocks crash together — you need the formal grammar of uncertainty. That grammar is probability, and its central character is the random variable: a number whose value is decided by chance, like tomorrow’s return. This lesson builds that vocabulary from the ground up so every later statistics lesson has solid footing.
Before you read — take a guess
A stock's return next month is best described as:
The building blocks: sample space, events, axioms
Analogy. Before you can talk odds at a casino, you agree on the board: a roulette wheel has 37 pockets, a die has 6 faces. Probability starts the same way — by writing down every outcome that could happen, then making honest bets about groups of them.
Definitions, in order.
- The sample space, written , is the set of all possible outcomes of a chance experiment. For one roll of a die, . For “did the market close up or down today?”, .
- An outcome is a single element of — one specific way the world could turn out.
- An event is any subset of the sample space — a group of outcomes you care about. “The die shows an even number” is the event . “The market rose at least 1%” is an event too. Events are the things we assign probabilities to.
- A probability is a number attached to each event , measuring how likely it is.
Those probabilities are not allowed to be assigned at random. They must obey Kolmogorov’s three axioms — the minimal rules that make probability coherent:
- Non-negativity. for every event. You can’t be “−20% likely” to lose money.
- Normalization. . Something in the sample space happens with certainty — the total probability is exactly one.
- Additivity. If two events and are mutually exclusive (they share no outcomes, so they can’t both happen), then . The chance of rolling a 1 or a 2 is .
Worked example. A fair die. The event “even” is , three of the six equally likely outcomes, so . The event “shows a 5” is one outcome, . Are “even” and “shows a 5” mutually exclusive? Yes — 5 is odd, so the two events share nothing. By additivity, , which is exactly — the four outcomes . The arithmetic agrees with simply counting, which is the whole point: the axioms are just bookkeeping that never lets your bets contradict each other.
Two ways to read a probability. What does even mean? There are two honest answers, and finance uses both:
- The frequentist reading: probability is the long-run frequency of an event over many independent repetitions. If you could rerun “this kind of day” a thousand times, it rains on about 300 of them. A coin’s because over millions of flips, half land heads.
- The Bayesian reading: probability is a degree of belief — how confident a rational agent is, given the information they have. “There’s a 30% chance this merger closes” can’t be a long-run frequency (the merger happens once), so it’s a belief, updated as news arrives.
Both obey the same three axioms, which is why the math doesn’t care which interpretation you hold. We’ll lean frequentist when there’s repeatable data (returns) and Bayesian when there isn’t (one-off events).
Probabilities live in [0, 1] — always
The axioms pin every probability between 0 and 1. Non-negativity sets the floor at 0; normalization caps any event at . So if a calculation ever spits out a probability of 1.4 or −0.2, you made an arithmetic error, not a discovery. This is the single fastest sanity check in all of statistics.
Which statement about events and the probability axioms is correct?
Conditioning and independence: do two stocks move together?
Analogy. Learning that it’s cloudy changes your guess about rain — you’ve narrowed the world to “cloudy days” and re-asked the question inside that smaller world. Conditional probability is exactly that: re-computing a probability after you’re told some other event happened.
Definition. The conditional probability of given , written , is the probability that happens once you know has happened:
You shrink the sample space down to (the new “certain” world), then ask what fraction of that world also has . The denominator renormalizes so the conditional probabilities still sum to one inside .
Rearranging gives the multiplication rule — the probability that both happen:
Independence. Two events are independent when knowing one tells you nothing about the other: . Conditioning didn’t move the needle. Plug that into the multiplication rule and independence collapses to a clean test:
Worked example — two stocks. Suppose on any given day stock falls with probability and stock falls with probability . We also observe that they both fall on 30% of days, so . Are their crashes independent?
| Quantity | Value |
|---|---|
| — A falls | 0.40 |
| — B falls | 0.50 |
| — both fall (observed) | 0.30 |
| — both fall if independent | |
| 0.60 |
If the stocks were independent, they’d both fall on only 20% of days. We observe 30% — more than independence predicts. And , well above the unconditional : learning that fell raises your estimate that fell from 40% to 60%. These stocks are positively dependent — they tend to crash together. That co-movement is precisely what correlation measures and what diversification tries to escape; here we’ve shown the dependence directly, without ever computing a correlation.
Independent ≠ mutually exclusive
These two get swapped constantly and they’re nearly opposites. Mutually exclusive events can’t both happen, so learning one guarantees the other didn’t — that’s the strongest possible dependence, not independence. Independent events can happily both happen; one just carries no information about the other. If and are mutually exclusive with positive probability, they are necessarily dependent.
Two stocks both fall on 25% of days. Individually, each falls on 50% of days. Are their daily declines independent?
Fill in the core conditioning identities.
Pick the right option for each blank, then check.
The conditional probability of A given B divides the joint probability by . Rearranged, this gives the multiplication rule for the probability of A and B. Two events are independent exactly when the joint probability equals the of the individual probabilities.
Random variables: turning outcomes into numbers
Analogy. A sample space can be messy — “up/down”, “heads/tails”, a tangle of market states. A random variable is a translator that pins a number onto every outcome, so you can do arithmetic with chance instead of just listing scenarios.
Definition. A random variable (RV) is a function that maps each outcome in the sample space to a real number. We write RVs as capital letters: let be “the number of heads in two coin flips”, or let be “this stock’s return next month”. The outcome is random, so the number or is random too — hence the name.
RVs come in two flavors, and the distinction drives everything that follows:
- A discrete RV takes values from a countable list — you can enumerate them, often with gaps between. The number of heads in two flips is . The number of defaults in a bond portfolio is . A credit rating coded as .
- A continuous RV can take any value in a range — an uncountable continuum with no gaps. A stock’s return can in principle be , , or any real number near there. Time, price, and return are the classic continuous quantities in finance.
A return as a continuous RV. Model a monthly return as continuous — it can land anywhere on a smooth scale. This has a sharp, slightly unsettling consequence: the probability that equals exactly one specific value, say precisely , is zero. Not “small” — zero. There are infinitely many real numbers crowded around 5%, so no single one can carry positive probability without the total blowing past 1. For continuous RVs, probability only makes sense over intervals: is a sensible, positive number, while is not. Hold that thought — it’s the key to the next section.
Sort each random variable by whether it is naturally discrete or continuous.
Place each item in the right group.
- The exact closing price of a share
- Number of stocks in a portfolio that beat the index
- Number of defaults in a basket of bonds
- A stock's percentage return over the next month
- A credit rating coded as one through five
- The time until a limit order gets filled
Distributions: PMF, PDF, and CDF
A random variable isn’t fully described until you say how its probability is spread across its values. That spread is its distribution, and how you write it down depends on whether the RV is discrete or continuous.
Discrete: the probability mass function (PMF)
For a discrete RV, the probability mass function gives the probability of each individual value. It’s a list of point-masses: a height sitting on every value the RV can take. Because some value must occur, the masses sum to one: (axiom 2 in disguise).
Worked example. Two fair coin flips, = number of heads. The four equally likely outcomes are TT, TH, HT, HH, so:
| (heads) | Outcomes | |
|---|---|---|
| 0 | TT | |
| 1 | TH, HT | |
| 2 | HH |
The masses sum to . ✓ To get the probability of an event, you add up the relevant masses: .
Continuous: the probability density function (PDF)
A continuous RV can’t have a mass on each value — we just saw . Instead it has a probability density function : a smooth curve where probability is the area underneath, not the height. The density is not a probability (it can even exceed 1); only the area over an interval is:
The total area under the whole curve is exactly 1 — normalization again. This is why a single point has zero probability: the area over a zero-width sliver is zero. The bell-shaped curves below are PDFs of returns; probability is the shaded area sitting between two return values.
Each bell curve is a return's PDF. The probability of landing in any range of returns is the area under the curve over that range — so the wider, flatter curve puts more area out in the extreme tails, even though both assets share the same expected return.
Both: the cumulative distribution function (CDF)
The cumulative distribution function answers one universal question — “what’s the probability of landing at or below ?” — and it works for discrete and continuous RVs alike. It starts at 0 on the far left, climbs to 1 on the far right, and never decreases (more ground covered can only add probability). For a continuous RV, is the running area under the PDF up to ; for a discrete RV, it’s the running sum of masses, stepping up at each value.
Worked example. For the two-coin-flip above: , , and . To get an interval probability you subtract: , matching the PMF answer. For returns, the same trick gives any interval: . The CDF is the workhorse for “what’s the probability of a loss worse than ?” — it’s just .
Density is a rate, not a probability
The most common slip with continuous RVs is reading the height of a PDF as a probability. It isn’t — is a probability density (probability per unit of ), so it can be larger than 1 where the curve is tall and narrow. Probability is always the area under the curve over an interval, and that area can never exceed 1. When in doubt, integrate (or read it off the CDF): never just read the height.
Match each probability object to what it actually tells you.
Pick a term, then click its definition.
For a continuous random variable with PDF f, which statement is true?
Expectation: the probability-weighted average
Analogy. If you played a gamble a million times, what would your average payout settle at? That long-run average is the expectation (or expected value, or mean) of the random variable — the distribution’s center of gravity, the balance point of the PMF or PDF.
Definition. For a discrete RV, the expectation is each value weighted by its probability mass and summed:
For a continuous RV the sum becomes an integral against the density, , but the idea is identical: every possible value, weighted by how likely it is. It is not a plain average of the values — a value that’s twice as likely pulls the mean twice as hard.
Worked example. A bet pays $10 with probability 0.2, $0 with probability 0.5, and costs you $4 (a payout) with probability 0.3. The expected payout is each outcome times its probability, summed:
| Payout | Probability | Contribution |
|---|---|---|
| +$10 | 0.2 | |
| $0 | 0.5 | |
| −$4 | 0.3 |
, i.e. +$0.80 per play on average. Notice the expectation ($0.80) is a value the bet never actually pays — no single outcome is $0.80. That’s normal: the mean is a balance point, not a prediction of any one play. Applied to returns, is the expected return you already met in the metrics course — now you can see it’s literally the probability-weighted average of every return the stock could deliver.
This is just the on-ramp. A later lesson gives expectation the full treatment — its algebra (linearity), its partner the variance (which is itself an expectation of squared deviations, and the squared sibling of the volatility you already know), and how both power portfolio math.
A fund manager claims their strategy “expects to make money” because it wins on 70% of trades. On winning trades it makes $1, but on the 30% of losing trades it loses $3. Is the expected payout per trade positive? Work it out before revealing.
Answer. dollars. The expectation is negative — the strategy loses $0.20 per trade on average, despite winning most of the time. A high win rate says nothing about expectation; the sizes of the wins and losses, weighted by their probabilities, are what decide it. This is the single most expensive misconception in trading.
A strategy wins on 80% of trades but the rare losses are huge. What does its high win rate tell you about its expected payout per trade?
Putting it together
Probability is the grammar of uncertainty, and every later statistics lesson speaks it. You start with a sample space of outcomes, group them into events, and assign probabilities that obey three axioms — non-negativity, normalization, and additivity — which keep every bet between 0 and 1 and internally consistent. Conditioning () re-asks a probability inside a smaller world, and independence is the special case where conditioning changes nothing — the lens through which we judged whether two stocks crash together. A random variable translates outcomes into numbers (discrete counts vs. continuous returns), its distribution spreads probability across those numbers (PMF for masses, PDF for area-under-density, CDF for “at or below”), and its expectation is the probability-weighted balance point — the formal definition of the expected return you’d been using all along.
Big picture
Probability & random variables — the whole grammar
- Probability & RVs
- Foundations
- Sample space Ω = all outcomes
- Event = subset of outcomes
- Axioms: non-negative, sums to 1, additive
- Frequency vs. degree of belief
- Relating events
- Conditional P(A | B) = P(A and B) / P(B)
- Multiplication rule for P(A and B)
- Independent: joint = product
- Independent is not mutually exclusive
- Random variables
- Map outcomes to numbers
- Discrete = countable values
- Continuous = any value in a range
- A return is continuous
- Distributions
- PMF: mass on each discrete value
- PDF: probability is area, not height
- CDF: P(X at or below x), 0 up to 1
- Expectation
- Probability-weighted average
- Center of gravity of the distribution
- Expected return is just E[R]
- Foundations
Recap: probability & random variables
Which of the three probability axioms guarantees that the probability of the entire sample space is one?
Check your answer to continue.
Next up — descriptive statistics: now that returns are random variables with distributions, we’ll learn to summarize a pile of them with the mean, variance, and standard deviation (the formal home of the volatility you already use), then go further into skewness and kurtosis — the shape of the fat tails that decide how dangerous a return distribution really is.