Correlation
Correlation is a single number from -1 to +1 that measures how strongly two quantities move together in a straight-line sense. It's the standardized cousin of covariance and the backbone of diversification.
Prerequisites: Variance, Intuitively
Correlation answers a question every portfolio manager asks: when one thing goes up, does the other tend to go up too, go down, or do its own thing? It squeezes that relationship into a single number between and . A correlation of means the two move in perfect lockstep, means they move in exact opposition, and means there's no straight-line relationship at all.
It's built from covariance, which measures whether two quantities tend to sit on the same side of their means at the same time:
Covariance has the same units problem as variance, its size depends on the scale of and , so it's hard to read. Correlation fixes that by dividing out both standard deviations, leaving a pure, unitless number:
Here are the two means, the two standard deviations, and (the Greek letter "rho") is the correlation.
Those three snapshots are frozen. Drag below through the whole range and watch a single cloud of points respond: near it collapses onto a rising line, at it scatters into a shapeless blob, and near it tightens onto a falling line. The readout — the share of the spread the line explains — climbs as you move away from zero in either direction.
Correlation lives in . Its sign is the direction (do they move together or opposite?) and its magnitude is the tightness. means no linear link — the variables can still be strongly related in a curved way.
Worked example: computing it by hand
Take five paired observations: and . Both have mean . Subtract the means to get the deviations:
Multiply the pairs and average to get the covariance:
Each variable has variance , so . Divide:
A correlation of , strong and positive: these two mostly rise and fall together, though not perfectly.
Common pitfalls
- Correlation is not causation. A high says two things move together, not that one drives the other. A hidden third factor often explains both.
- It only sees straight lines. Correlation measures linear association. Two variables can be tightly linked by a curve (like ) and still show . Zero correlation does not mean independence.
- Outliers can fake it. A single extreme pair can drag toward or crush it toward . Always look at the scatter, never just the number.
- It's unstable and regime-dependent. Estimated correlations wander over time, and in a crisis assets that looked uncorrelated can lurch together, exactly when diversification is supposed to help.
Correlation is where risk stops being about one asset and starts being about how assets combine. It flows directly into estimating covariance matrices, the raw material for diversification, portfolio variance, and every hedge built on the idea that two positions won't move as one.
Practice in interviews
Further reading
- Wasserman, All of Statistics
- Blitzstein & Hwang, Introduction to Probability, ch. 7