A portfolio is not a list of assets. It is a weighted combination, and its behavior follows from three things together: the weights, each holding's own return and volatility, and the correlations between the holdings. Intuition handles the first two well enough. It almost always underweights the third — and the third is where diversification actually lives.
Two formulas govern the subject. One is friendly. The other is honest. Both can be computed in a few lines of code, both should be checked by hand at least once, and both carry an assumption that needs to be stated alongside the result.
Return is a weighted sum
If weights sum to one, and the assets earn simple returns over a span, the portfolio's simple return over that span is the weighted sum of those returns: each weight multiplied by its return, added together.
The kind of return matters. This identity holds for simple returns. Log returns do not combine across assets in the same way, because a portfolio's price is a sum of holdings, not a product of them. That is why portfolio work is reserved for simple returns.
The formula also assumes the weights describe the start of the span and that no money entered or left mid-span. Flows break the identity; they need flow-aware accounting, named as a limit rather than faked.
Risk has a third term
For two assets, portfolio variance has three terms. The first is the first holding's contribution: its squared weight times its variance. The second is the same for the second holding. The third is the cross term, which depends on togetherness: twice the product of the weights, the correlation, and the two volatilities.
Read the three terms as a sentence. Your risk is your first holding's contribution, plus your second holding's contribution, plus a term that depends on how the two move together. That cross term is not a refinement. It is the mechanism.
When correlation is +1, the cross term is at its maximum, and portfolio volatility is simply the weighted average of the two volatilities. Diversification contributes nothing. As correlation falls, the cross term shrinks, and portfolio volatility falls below that weighted average. At strongly negative correlation the help is greatest. The benefit is real and it is quantifiable — and it is exactly as reliable as the correlation estimate fed into it.
One worked example, checked by hand
Take weights of 0.6 and 0.4, expected simple returns of 8% and 4%, volatilities of 20% and 10%, and a correlation of 0.25.
The return is straightforward: 0.6 times 8% gives 4.8%, and 0.4 times 4% gives 1.6%, for a portfolio return of 6.4%.
The variance takes more care. The first term is 0.36 times 0.04, which is 0.0144. The second term is 0.16 times 0.01, which is 0.0016. The cross term is 2 times 0.6 times 0.4 times 0.25 times 20% times 10%, which is 0.0024. Total variance is 0.0184, and its square root is about 13.56%. Portfolio volatility is 13.56%.
Now compare. The weighted average of the two volatilities is 0.6 times 20% plus 0.4 times 10%, which is 16%. The portfolio's actual volatility, at 13.56%, sits below it. That gap — about 2.44 percentage points — is the entire diversification benefit under these inputs, and it exists only because correlation is 0.25 rather than 1. At a correlation of 1, the cross term would be 0.0096, variance would be 0.0256, and volatility would be exactly 16%. Benefit: zero.
The formula does not promise the benefit. It prices the benefit under a stated correlation. That is why a sound portfolio-risk report prints the correlation inputs beside the result, rather than presenting the result as if it stood alone.
Move only the correlation
Hold the weights, returns, and volatilities fixed and move only the correlation. Nothing in the portfolio changes — same assets, same weights, same individual volatilities — and yet the reported risk swings across a range of more than three percentage points.
At a correlation of 0, the cross term vanishes. Variance is 0.0144 plus 0.0016, which is 0.0160, and volatility is about 12.65%. At 0.25, as above, volatility is 13.56%. At 0.5, the cross term doubles to 0.0048, variance rises to 0.0208, and volatility reaches about 14.42%. At 1.0, volatility is the full 16%.
Two lessons live in that swing. The first is humility about the input. An analyst who estimates correlation from a short or calm window and reports portfolio risk to two decimal places is claiming a precision the dial cannot support. Honest reporting shows the sensitivity — the figure at the estimated correlation and at the ceiling — rather than a lone point.
The second is a reading skill. When a portfolio's risk falls after holdings are added, ask which dial moved. If the answer is a correlation assumption, the improvement is a hypothesis about a relationship's future behavior. If weights shifted toward genuinely calmer assets, the improvement is a fact about composition. Both can be legitimate. Only one is evidence.
This is also why the familiar shortcut fails. "Portfolio risk is the weighted average of the holdings' risks." That sentence deletes the cross term, where diversification lives. Weighted-average risk is what a portfolio earns only when correlation is a perfect +1. A calm asset helps not because it is calm in isolation, but because of how it moves with everything else you hold.
The discipline does not scale away
With more assets the same structure holds: a term for every holding and a cross term for every pair, and code becomes the only sane way to keep the pairs straight. The discipline does not change. Weights must sum to one, returns and volatilities must share a period and a span, and correlations must come from aligned returns over a stated window. A figure assembled from mismatched spans is three estimates wearing one costume.
Experience it, don’t just read about it
The cross term where diversification actually lives is Concept 7 of Python for Finance (Course No. 209), from Cognosco Learning, a learning company powered by AI. The course builds the wider practice beyond this distinction — Returns, Correlation, and Drawdowns and Downside Risk — each worked through with an Agentic Socratic AI coach, one learner at a time. Try a Free Preview at cognoscolearning.com.
Navigate your own course.
© 2026 Cognosco Learning. All rights reserved.