Quantitative Methods
coreCovariance and Correlation from a Joint Probability Table
Builds onExpected Value · Correlation from Covariance — if this page feels steep, start there.
- the probability of scenario i (boom, recession, ...). The probabilities across all scenarios add to 1
- the return of asset A if scenario i happens; likewise R_{B,i} for asset B
- the expected return of asset A: its probability-weighted average return, the sum of p_i R_{A,i}
- the surprise: how far asset A's return in this scenario is from its own expected return
- the product of the two surprises: positive when both assets beat (or both miss) expectations together, negative when one beats while the other misses
- covariance: the probability-weighted average of those products — the direction and strength of co-movement, in units of percent squared
- the correlation: covariance rescaled by both standard deviations so it always lies between −1 and +1
Reading the notation
Why it must be true
Expected value tells you where each asset is centred; covariance tells you whether the two move together. In every scenario, ask: did asset A beat its expectation, and did asset B? If they tend to surprise in the same direction, the products of the surprises are mostly positive and covariance is positive; if one tends to zig when the other zags, covariance is negative.
Because each scenario has its own probability, the average of the products must be probability-weighted, exactly like an expected value. Covariance has awkward units (percent squared), so dividing by both standard deviations gives the correlation, a pure number between −1 and +1 that says how tightly the two are linked. It is the key input for diversification: the lower the correlation, the more portfolio variance falls.
The derivation
Covariance is the expected product of the two deviations from the means:
For discrete scenarios with probabilities , an expectation is a probability-weighted sum:
Expanding the product gives the equivalent computing form , which is why using alone (without subtracting the product of the means) overstates the covariance whenever the means are nonzero.
Dividing by the standard deviations — each computed from the same table as — scales the result:
When to reach for it
Two assets' returns are given under the same set of probability-weighted scenarios and you need their covariance or correlation (or one asset's expected return) from that table.
Listen for
Back-of-the-envelope
Estimate it in your head first — then the calculator only confirms.
- ≈
Expected returns first: compute and , then the surprises in each scenario. A scenario where both surprises have the same sign contributes a positive product.
- ≈
Sign check from the table: if the better scenario for A is also the better one for B (both do well in the boom and badly in the recession), covariance must be positive; a hedge pattern gives a negative covariance.
- ≈
Correlation must lie in . A computed value outside that range means an error in the standard deviations or in the weights (probabilities not applied).
Traps in applying it
- ✗Averaging the products without weighting by the scenario probabilities (or dividing by the number of scenarios).
- ✗Using $E[R_AR_B]$ and forgetting to subtract $E[R_A]E[R_B]$.
- ✗Dividing the covariance by the variances (or by one standard deviation) instead of the product of both standard deviations.
- ✗Mixing units: covariance of percent returns is in percent SQUARED; entering returns as decimals (0.12) gives a number 10,000 times smaller than entering whole percents (12).
Limits & criticisms
A covariance estimated from a small scenario table is only as good as the subjective scenario probabilities and payoffs behind it, and three or four scenarios can badly understate the true tail co-movement. Covariance and correlation capture only linear association and are not stable through time — correlations typically jump toward 1 in crises, exactly when diversification is needed most. Finally, a zero covariance does not imply independence.
Where it came from
Francis Galton and Karl Pearson developed correlation in the 1880s–1890s while studying inheritance of traits; Pearson's product-moment coefficient (1896) is the one we use today. Its central role in finance comes from Harry Markowitz's 1952 portfolio theory: the risk of a portfolio depends not only on each asset's volatility but on every pairwise covariance.
Today scenario tables with joint probabilities are the standard way to build covariance inputs for a portfolio when there is no long history — stress tests, macro-scenario analyses and the covariance matrices behind optimizers are all built this way.
One identity, 3 questions
The exam can hide any variable. Each face below is the same equation solved for a different unknown — drill them separately.
Expected return of asset A
The probability-weighted average return: the first step before any surprise or covariance can be measured.
Covariance from the joint table
The probability-weighted product of surprises. Positive means the assets tend to beat or miss their expectations together.
Correlation from the joint table
Covariance rescaled to a pure number between −1 and +1, ready to drop into the two-asset portfolio variance formula.
On the BA II Plus
Worked example: An analyst models two assets under the economic scenarios in the exhibit, which gives each scenario's probability and each asset's return. The covariance of the returns of Asset A and Asset B, with returns measured in percent (so the answer is in percent squared), is closest to:
- 1.0.35 [×] 19 [+] 0.4 [×] 4 [+] 0.25 [×] 14 [+/−] [=] [STO] 1E[R_A] — store it
- 2.0.35 [×] 1 [+] 0.4 [×] 2 [+] 0.25 [×] 13 [=] [STO] 2E[R_B] — store it
- 3.0.35 [×] ( 19 [−] [RCL] 1 ) [×] ( 1 [−] [RCL] 2 ) [+] 0.4 [×] ( 4 [−] [RCL] 1 ) [×] ( 2 [−] [RCL] 2 ) [+] 0.25 [×] ( 14 [+/−] [−] [RCL] 1 ) [×] ( 13 [−] [RCL] 2 ) [=]probability × (A surprise) × (B surprise) for each scenario, added: the covariance
→ -56.55