The Claude Quant PlaybookDownload ebookDownload ebook

Diversification and the correlation floor

beginnerRisk and portfolio13 of 13

Spreading money equally over more assets lowers risk, quickly at first and then more and more slowly. The risk never falls below a floor set by how correlated the assets are.

Build a trading system with Claude.Download ebook

01The formula

the volatility of an equal-weight portfolio
the volatility of each asset (assumed the same for all)
the number of assets
the average correlation between any two of them
the floor: the market-wide risk that remains however many assets you add

02See it move

03Where it is used

04Why traders use it

It shows which risk you can remove and which you cannot. The stock-specific part shrinks like 1/N; the shared part, set by ρ, stays. That is why investors are paid for market risk but not for risk they could have diversified away.

05Worked example

Assets with volatility 30% each and average correlation 0.25: an equal-weight portfolio of 10 has volatility 17.10%. However many you add, it cannot fall below 15.00%. With 10 assets you have already removed 86.0% of the risk that can be removed.

06How it is built

  1. Give each of the assets weight .
  2. The variance has own terms and cross terms .
  3. Add them: .
  4. As grows the first term vanishes and .

07The common mistake

Counting holdings instead of independent bets. Correlations also rise in a crash, so the floor jumps exactly when you need diversification most.

08In Python and LaTeX

import numpy as np
sigma, rho, n = 0.30, 0.25, 10
vol = sigma * np.sqrt(1/n + (1 - 1/n) * rho)
print(round(vol, 4), 'floor', round(sigma*np.sqrt(rho), 4))
\sigma_p = \sigma\sqrt{\frac{1}{N} + \Big(1 - \frac{1}{N}\Big)\rho} \;\xrightarrow{N \to \infty}\; \sigma\sqrt{\rho}

09Where it fits

Rather not code the maths yourself? Describe your trading idea and let AI build the bot.

Build a bot with AgenKit

The worked example and the model run the same code, so every number matches. Models simplify markets on purpose. This is education, not financial advice.