QTQuant Terminal
A1-05A1·intro·~15 min

Conditional probability and independence

probabilityconditional-probabilityindependencebase-rates

▸ Pretest — guess, even if you don't know

SPY fell yesterday. Historically SPY falls on about 46% of all days. What's the best statement about today's probability of a down day?

The question conditioning answers

Every trading idea of the form "when X happens, Y tends to follow" is a claim about conditional probability: the probability of AA given that BB happened.

P(AB)=P(AB)P(B)P(A \mid B) = \frac{P(A \cap B)}{P(B)}

Read it as bookkeeping, not magic: throw away every outcome where BB didn't happen, then ask how often AA occurs in what's left. You're re-normalizing probabilities to a smaller sample space.

Concrete example. Suppose over 5,000 trading days, 2,300 were down days (P(down)=0.46P(\text{down}) = 0.46). Now look only at the 2,300 days that followed a down day, and suppose 1,081 of them were also down. Then:

P(down todaydown yesterday)=10812300=0.47P(\text{down today} \mid \text{down yesterday}) = \frac{1081}{2300} = 0.47

Yesterday's fall moved today's odds from 46% to 47% — almost nothing. This is roughly what real daily index data looks like: the sign of yesterday's return tells you very little about the sign of today's. (Magnitudes are another story — hold that thought.)

Independence

Two events are independent when conditioning changes nothing:

P(AB)=P(A)P(AB)=P(A)P(B)P(A \mid B) = P(A) \quad \Longleftrightarrow \quad P(A \cap B) = P(A)\,P(B)

The product form is the standard definition (it works even when P(B)=0P(B) = 0), but the conditional form is the intuition: knowing BB happened teaches you nothing about AA.

Two things developers often get backwards:

Why the √252 rule is secretly an independence assumption

In A1-04 and A2-02 you annualized volatility by multiplying daily volatility by 252\sqrt{252}. That rested on variances adding across days:

Var(r1+r2++r252)=tVar(rt)only if the covariance terms are zero\text{Var}(r_1 + r_2 + \cdots + r_{252}) = \sum_t \text{Var}(r_t) \quad \text{only if the covariance terms are zero}

Independence is what kills those cross terms. If returns were positively autocorrelated (down days breeding down days), true annual volatility would be larger than σd252\sigma_d \sqrt{252} — the rule would understate risk.

The honest empirical picture for daily equity index returns:

So "returns are independent" is a decent approximation for scaling volatility across time, and a terrible one for predicting how volatile tomorrow will be.

The inversion trap

The single most common conditional-probability error is confusing P(AB)P(A \mid B) with P(BA)P(B \mid A). They can be wildly different, because each conditions on a different base rate.

Markets version: nearly every crash was preceded by elevated volatility, so P(high volcrash)P(\text{high vol} \mid \text{crash}) is close to 1. Does high volatility mean a crash is coming? That's the other conditional, P(crashhigh vol)P(\text{crash} \mid \text{high vol}) — and it's small, because high-vol periods are common and crashes are rare. The rarity of crashes (the base rate) drags the inverted probability down.

Every "this indicator preceded the last 5 crashes" pitch you will ever read commits this inversion. The next lesson (Bayes' theorem) gives you the formula that converts one conditional into the other — and the base rate is the price of conversion.

Conditional is not causal

P(AB)>P(A)P(A \mid B) > P(A) says the events co-occur more than chance. It does not say BB causes AA. Conditioning on "the VIX is high" raises the probability of a turbulent week ahead, but the VIX causes nothing — it's a barometer, not the weather. Both are driven by the same underlying stress. Statistical dependence is symmetric (AA informs BB exactly as much as BB informs AA); causation is not.

For trading this distinction is surprisingly forgiving in one way and brutal in another: you can profit from a stable conditional relationship without understanding its cause — but relationships without a causal anchor are exactly the ones that vanish when the regime changes.

⧉ Review card
What is the definition of conditional probability?
P(A given B) = P(A and B) / P(B). Discard all outcomes where B did not happen, then ask how often A occurs in what remains — a re-normalization to a smaller sample space.
⧉ Review card
When are two events independent?
When P(A and B) = P(A) P(B), equivalently P(A given B) = P(A): knowing B happened tells you nothing about A. It is an empirical property to check, not a default.
⧉ Review card
Why does the √252 volatility annualization rule require independence?
Variances only add across days when all cross-covariance terms are zero, which independence guarantees. Daily return LEVELS are close to independent (rule works); magnitudes are not (volatility clusters).
⧉ Review card
What is the inversion trap with conditional probabilities?
Confusing P(A given B) with P(B given A). P(high vol given crash) is near 1, but P(crash given high vol) is small — because crashes are rare. The base rate is what separates the two.

Explain it back

Without scrolling up, explain to an imaginary colleague in 2–3 sentences: what does P(AB)P(A \mid B) mean mechanically, and in what specific sense are daily stock returns independent versus not independent?

◈ Calibration check

Could you compute a conditional probability from a table of counts, and state what independence means formally?

1 = guessing · 5 = could teach it

⏻ End of lesson

Mark it read to book its 4 review cards into your deck.

Sources & further reading