Basic Prerequisites: Linear Algebra (vectors, dot products will be enough).


1. Intuition & Practical Objective

This page builds the why of Modern Portfolio Theory with no prior portfolio knowledge needed. The objective is one idea: an asset should never be judged in isolation - its value to a portfolio is entirely determined by how it covaries with everything else you hold. That single shift (asset-by-asset → covariance-aware) is the entire conceptual revolution of Markowitz (1952).

Before Markowitz, investors picked the “best” asset: highest yield, fastest growth. Markowitz replaced picking with averaging, and proved a stunning fact: combining risky assets can produce a portfolio less risky than any of them individually, at the same or better expected return. The mechanism is the correlation between assets, and the measure of its payoff is the portfolio-variance formula. Three “aha”s:

  1. A portfolio’s risk is not the weighted average of its parts. It is a quadratic blend that includes the cross-terms (covariances). If two assets don’t move together, each wobbles while the other stays put, so the portfolio wobbles less.
  2. Diversification is not a strategy, it’s arithmetic. The variance formula below forces the reduction. The only “free lunch” in financial economics is the one the quadratic form hands to you.
  3. The lower the correlation, the bigger the gift. At perfect negative correlation, you can drive variance to zero; at diversification gives nothing. The correlation, not the individual volatilities, decides.

2. Mathematical Ground Truth & Derivations

Portfolio of two assets. Holding weight in asset 1 and in asset 2, with individual variances and correlation :

so the portfolio volatility is . The cross-term is the entire plot: if , the sum of the two positive “own” terms is partially cancelled, and (the weighted-average volatility). Note the risk is quadratic in ; that convexity is what makes a minimization well-posed.

The minimum-variance weight. Setting gives the weight that makes the portfolio as quiet as possible:

When the two assets have equal volatility and , - equal weight is exactly the minimum-variance portfolio, purely by symmetry. When their volatilities differ, you tilt toward the quieter asset; and if is high enough the formula can exceed or go negative, meaning the minimum-variance portfolio shorts one asset (a corner you can’t reach long-only).

The separable, general case ( assets). With weights , expected returns , and covariance ,

with the budget constraint . The two-asset insight generalizes: the cross-covariances in (off-diagonal entries) are what diversification harvests. The full machinery is built out on 02 · The Efficient Frontier.


3. Computational Implementation - diversification in numbers

The two-asset variance formula, stdlib only. Watch the correlation slash the portfolio volatility, and watch the minimum-variance weight tilt as changes.

Read the rows: even at zero correlation, two assets of volatility 0.30 blend to 0.2121 - a 29% volatility cut with no expected-return cost at all. At it falls to 0.1162. And in the unequal-vol case, when the minimum-variance weight comes out 1.28, i.e. the quiet portfolio would short the louder asset - the seed of why long-only constraints matter (04 · Constraints).


4. Failure Modes & First-Principles Breakdowns

  1. Correlation vs. causality confusion. Diversification harvests historical correlation; if correlations rise to 1 in a crisis (the “correlation breakdown”), the free lunch disappears exactly when you need it. The formula is an identity given , not a guarantee about .
  2. The "" myth. More assets help only because they add independent variance sources; buying 100 clones of the same factor adds nothing. What matters is the number of independent risk factors, not the number of names.
  3. Volatility is not the only risk. Markowitz captures variance; it says nothing about skew, jumps, or tail dependence. Diversification that reduces variance can still leave correlated tail risk in place (bridge to the extreme-value/fat-tails material in Quantitative Risk).
  4. The minimum-variance weight is an optimizer too. As soon as you minimize, you inherit input sensitivity - depends on the estimated , and near the denominator and becomes violently unstable. The fragility of every “optimal” weight is the theme of 05 · Failure Modes.

5. References

  • Markowitz, Harry: Portfolio Selection, Journal of Finance 7(1):77–91 (1952)
  • Elton, Gruber, Brown & Goetzmann: Modern Portfolio Theory and Investment Analysis, Wiley
  • Hastie, Tibshirani & Friedman (ESL)

6. Connected Graph Bridges