You already know how to measure a single asset’s risk: take the standard deviation of its returns and call it volatility. One number, one asset, done. But a portfolio isn’t one asset — it’s several, jostling against each other, and the surprise of Modern Portfolio Theory is that how they move together matters more than how wild any one of them is on its own.
Two assets can each be terrifyingly volatile and yet, glued into a portfolio, partly cancel each other out — like two people on a seesaw who, by leaning opposite ways, keep the plank steadier than either could alone. The tool that measures this “moving together” is covariance, and its tidy, unitless cousin is correlation. This lesson defines both from scratch, then shows the exact formula where low correlation pays off as lower risk.
Before you read — take a guess
Two stocks each have 20% annual volatility, and their returns are completely unrelated (correlation 0). You put half your money in each. What is the volatility of the 50/50 portfolio?
Covariance — how two assets move together
Volatility tells you how far an asset’s returns swing around their own average. Covariance asks a different question about two assets at once: when asset A is above its average, is asset B usually above its average too — or below it?
Think of two dancers. If they’re in sync — both stepping forward together, both back together — they have positive covariance. If they mirror each other — one forward exactly when the other steps back — that’s negative covariance. If they’re oblivious to each other, wandering the floor independently, their covariance is roughly zero.
The precise definition is the average product of each asset’s deviation from its own mean:
Read the sign off the product inside. When both assets are above their means in the same period, both deviations are positive, so the product is positive. When both are below, both deviations are negative — and a negative times a negative is still positive. So moving the same direction (up together or down together) pushes covariance positive. Moving opposite directions makes one deviation positive and the other negative, so the product is negative.
- Positive covariance → the assets tend to move the same direction.
- Negative covariance → they tend to move opposite directions.
- Near-zero covariance → no reliable relationship.
A worked example
Here are three years of returns for two assets, A and B:
| Year | ||
|---|---|---|
| 1 | +10% | +4% |
| 2 | −2% | 0% |
| 3 | +4% | +2% |
First the means: and .
Now the deviations and their products:
| Year | product | ||
|---|---|---|---|
| 1 | +6 | +2 | +12 |
| 2 | −6 | −2 | +12 |
| 3 | 0 | 0 | 0 |
Average the products: . The covariance is +8 (percent-squared) — positive, so A and B tend to move together, which matches the table: when A jumped, so did B; when A fell, B fell too.
The units problem
What are the units of that 8? Percent times percent — percent-squared. That’s meaningless to a human: nobody intuits “8 squared-percent of co-movement.” Worse, covariance scales with the assets’ volatilities, so a big number might just mean both assets are wild, not that they’re tightly linked. You can’t compare covariances across pairs. That’s exactly why we normalize it into correlation next.
When it matters
Covariance is the raw ingredient — it’s what actually appears inside the portfolio-variance formula later. But on its own it’s a poor summary, because its size is contaminated by the assets’ volatilities. Use covariance when you’re plugging into a formula; reach for correlation when you want to judge how related two things are.
Correlation — the normalized, unitless version
To fix covariance’s units problem, divide it by the product of the two volatilities. That strips out the scale and leaves a pure, dimensionless number called the correlation coefficient, written (Greek “rho”):
The magic of that division is that is always trapped in a fixed range: . Now the number means the same thing for any pair of assets, so you can finally compare. Read it like this:
- — perfect lockstep. The two move in exact proportion, every time. No diversification possible.
- — unrelated. Knowing one tells you nothing about the other.
- — perfect mirror. When one zigs, the other zags in exact proportion — the ideal hedge.
- Anything in between is a partial relationship, e.g. is “fairly correlated but not glued.”
Turning the covariance into a correlation
Take the example above. We found . Suppose the volatilities are and (computed from the same deviations). Then:
A correlation of about +0.67 — strongly positive, but not perfect. Notice how much friendlier 0.67 is than “8 percent-squared”: it instantly says “these two move together most of the time, but not in perfect lockstep,” with no units to wrestle and nothing to compare against.
Fill in the relationship between covariance and correlation.
Pick the right option for each blank, then check.
Covariance measures whether two assets move together, but its units are , which makes it . Dividing covariance by the gives the correlation ρ, which is always between . A ρ of means perfect lockstep, while a ρ of means a perfect mirror.
Why it matters for a portfolio
Here’s where it all pays off. Mix weight of asset A and weight of asset B. The portfolio’s variance is not the average of the two variances. It’s:
Three terms, and each earns its place:
- — asset A’s own risk contribution, scaled by how much of it you hold (squared).
- — the same for asset B.
- — the cross term, and the star of the show. It’s the only place appears. When is high, this term is big and positive, inflating portfolio variance. As falls, the cross term shrinks; at it disappears entirely; and when is negative it goes negative and subtracts from total variance.
That cross term is where diversification lives. The lower the correlation, the smaller (or more negative) it is, and the more your portfolio’s risk drops below the naive weighted average of the two volatilities. Drag the sliders below and watch the gap open up.
- Portfolio volatility
- 19.6%
- Naive weighted average (no diversification)
- 25.0%
- Diversification benefit
- 5.4%
Drag ρ from +1 down toward −1: the solid bar (true portfolio volatility) falls away from the faint tick (the naive weighted average you'd get at ρ=+1). The green gap is the diversification benefit — pure risk reduction, no return given up.
The three cases
To make the cross term concrete, hold a 50/50 mix of asset A () and asset B (), and walk through its three signature values. With , the formula becomes .
| ρ | σ_p² = 325 + 300ρ | σ_p = √(σ_p²) | vs. weighted avg (25%) |
|---|---|---|---|
| +1 | 325 + 300 = 625 | no benefit | |
| 0 | 325 + 0 = 325 | 7.0% cut | |
| −1 | 325 − 300 = 25 | 20.0% cut |
The arithmetic tells the whole story:
- At , equals the weighted average, . The assets move in perfect lockstep, so blending them buys you nothing — you just average the risk.
- At , the cross term vanishes and risk drops to ≈18.0%, well below the 25% average. Two unrelated assets partly cancel.
- At , the cross term goes fully negative and risk collapses to 5% — far below either asset’s own volatility. A perfect mirror lets the swings hedge each other out. (With the right weights you could even drive it to zero.)
The punchline of all of portfolio theory
gives zero diversification benefit. Every value below it cuts your risk, and the lower goes, the bigger the cut — all the way to a near-perfect hedge at . You reduce risk without reducing expected return. That free lunch is diversification, and it’s entirely powered by the cross term in the variance formula.
Pitfalls
Correlation is powerful and routinely abused. Four traps to keep in mind:
- Correlation is not causation. Two assets can move together because of a shared driver (interest rates, oil prices) or pure coincidence. A high tells you they did move together; it never tells you why, and certainly not that one causes the other.
- ρ is unstable over time — and spikes in crises. A pair that looked uncorrelated for years can snap toward in a crash, when everyone sells everything at once. This is tail dependence: correlations rise exactly when you were counting on them to be low, so diversification evaporates at the worst moment.
- ρ only captures linear co-movement. Correlation measures straight-line relationships. Two assets can be tightly linked in a curved or threshold way and still show . A low correlation does not prove independence.
- A single ρ hides regime changes. One number averaged over a long window can mask the fact that the relationship was strongly positive in calm markets and strongly negative in stressed ones. The average flatters; the regimes bite.
No — but it’s weaker than the long-run number suggests, and it fails right when you most want it. The fix isn’t to abandon diversification; it’s to (1) stress-test portfolios using crisis-period correlations rather than calm averages, (2) hold genuinely different risk drivers (e.g. assets whose value rises in a panic, like certain government bonds), and (3) treat any historical as an estimate with a wide error bar, not a constant of nature. Diversification still works; just don’t assume a backtested of 0.1 will hold when the market is on fire.
A new asset is added to a portfolio. Based on its correlation with the existing holdings, sort each ρ into how much diversification benefit it brings.
Place each item in the right group.
- ρ = +0.6
- ρ = −0.4
- ρ = +1.0
- ρ = −0.9
- ρ = +0.2
Match each term to its precise meaning.
Pick a term, then click its definition.
Key Takeaways
What to remember
- Covariance measures whether two assets move together: positive = same direction, negative = opposite, zero = unrelated. Its units (percent-squared) make it impossible to interpret or compare directly.
- Correlation fixes that — a unitless number always between −1 and +1. is perfect lockstep, unrelated, a perfect mirror.
- Portfolio variance is . The cross term is the only place lives, and it’s where diversification happens.
- The lower the correlation, the bigger the risk cut. A 50/50 mix of 30% and 20% assets gives 25% at , ≈18% at , and just 5% at .
- Watch the traps: correlation ≠ causation, is unstable and rises toward 1 in crises, it only captures linear co-movement, and a single number hides regime changes.
Big picture
Correlation & covariance at a glance
- Moving together
- Covariance
- Avg product of deviations
- Sign = direction
- Units: percent-squared (messy)
- Correlation ρ
- Cov ÷ (σ_A·σ_B)
- Always −1 to +1
- +1 lockstep, 0 unrelated, −1 mirror
- Portfolio variance
- Own risks: w²σ² each
- Cross term: 2·w_A·w_B·ρ·σ_A·σ_B
- Lower ρ → lower σ_p
- Pitfalls
- ρ ≠ causation
- ρ spikes in crises
- Only linear; hides regimes
- Covariance
Lesson 2 check
Two assets each have 10% volatility and a correlation of 0. For a 50/50 portfolio, what is σ_p?
Check your answer to continue.
Next up: combining assets into a portfolio and watching the risk–return curve bend — how mixing two assets traces a curve in risk–return space that bows inward exactly because of the correlation math you just learned.