Commodities course · Section 5: Commodity Strategies and Backtesting
Diversification and Correlation Across Commodities
Why gold, oil, grains and livestock often move independently, how correlation changes portfolio risk (with the maths) and why correlations jump in a crisis.
Advanced5 min read·6:16 video·Lesson 21 of 26·quiz: 4 questions
▶ Video lesson · 6:16Watch on YouTube ↗
On this page +
Diversification means spreading risk across markets that do not move together, so that one bad trade or one bad sector does not decide your year. Within commodities, markets in the same complex (WTI and Brent, gold and silver, corn and wheat) are closely related, while different sectors (metals, energy, grains, softs, livestock) often move more independently. Correlation is not fixed, and in a crisis many correlations rise at once, so you need sector limits as well as a long list of markets.
What correlation measures
Correlation is a number from -1 to +1 that describes how two markets move together:
- +1: they always move in the same direction in proportion.
- 0: no consistent relationship.
- -1: they always move in opposite directions.
Calculate correlation on returns (daily or weekly percentage changes), never on price levels. Two unrelated markets that both trended upward for a year will show a high correlation of prices that means nothing. Also choose a window deliberately: a 60-day correlation shows the recent relationship; a one-year or longer window shows the more stable picture. Compare both.
How commodity markets relate
The relationships below are general tendencies. Measure them yourself with current data, because they change.
| Relationship | Typical strength | Why |
|---|---|---|
| WTI and Brent | Very high | Same global oil market |
| Crude, heating oil and gasoline | High | Products are refined from crude |
| Gold and silver | High | Shared monetary drivers |
| Corn, wheat and soybeans | Moderate to high | Shared weather, land and feed substitution |
| Copper and crude oil | Moderate, variable | Both tied to global growth |
| Gold and crude oil | Low and unstable | Different drivers |
| Livestock and metals | Low | Unrelated supply and demand |
| Coffee, cocoa and sugar vs metals | Low | Driven by crop-specific weather |
The maths of diversification
For two positions with weights w1 and w2, volatilities s1 and s2 and correlation r, portfolio volatility is:
Portfolio volatility = square root of (w1² x s1² + w2² x s2² + 2 x w1 x w2 x r x s1 x s2)
Example
Two equal-weighted positions (50% each), each with 20% annual volatility.
- Correlation 1.0: portfolio volatility = 20%. No benefit.
- Correlation 0.5: variance = 0.25 x 0.04 + 0.25 x 0.04 + 2 x 0.25 x 0.5 x 0.04 = 0.03, volatility = about 17.3%.
- Correlation 0: variance = 0.02, volatility = about 14.1%.
With many equal-risk positions and an average correlation r between them, a useful shortcut is:
Portfolio volatility = single-market volatility x square root of (1/N + (1 - 1/N) x r)
Example
Ten markets, each with 20% volatility, average correlation 0.3. Portfolio volatility = 20% x square root of (0.1 + 0.9 x 0.3) = 20% x square root of 0.37 = 20% x 0.61 = about 12.2%. Add many more markets and the figure approaches 20% x square root of 0.3 = 20% x 0.55 = about 11%. Correlation sets a floor that more markets cannot break.
So lowering correlation helps more than simply adding markets. Ten markets from five sectors usually diversify better than ten energy contracts.
Count bets, not markets
Holding WTI, Brent, heating oil, gasoline and natural gas is five positions but perhaps only two independent bets: oil and gas. A useful habit is to estimate your effective number of bets by grouping highly correlated markets (for example, those with a return correlation above about 0.7) and counting each group as one.
Example
You go long WTI, Brent and gasoline after an oil breakout, risking 1% each. If oil reverses sharply, all three stops are likely to be hit together, so you really have one 3% bet on the oil complex. A sector cap, say 1.5% total risk across energy, would have forced you to choose one or split the risk.
Correlations rise in crises
Diversification is weakest exactly when you need it most. In the second half of 2008, most commodities fell together as the financial crisis spread. In March 2020, energy and industrial metals fell sharply together, and even gold dropped for a short time as investors sold whatever they could to raise cash. The usual causes are forced selling, a rising US dollar and margin calls across markets.
The practical answer is to assume that in a crisis your positions will be more correlated than in normal times, and to cap total risk accordingly. This is why the Turtle rules limited units in closely correlated markets and in one direction overall, as described in the trend-following lesson.
Diversify across methods and asset classes too
You can also diversify by:
- Time frame: a 20-day and a 55-day breakout system enter and exit at different times.
- Strategy type: trend following and short-term mean reversion often perform at different times.
- Asset class: commodities can behave differently from stocks, currencies and crypto. DanioX publishes signals and backtests for stocks, forex and commodities, which lets you compare how similar methods behave in different markets.
Each extra layer of diversification needs its own testing; mixing untested strategies does not reduce risk.
Practical diversification rules
- Measure return correlations over 60 days and one year at least once a month.
- Group markets with correlation above about 0.7 and treat each group as one bet.
- Set a sector risk cap (for example 1.5% open risk per sector) and a total risk cap (for example 5%).
- Prefer adding a new sector over adding another market to a sector you already hold.
- Review correlations again after any market shock, because they can change quickly.
Risk
A list of 20 commodities is not automatically diversified. If 12 of them are energy and metals tied to the same economic cycle, a single shock can hit most of the book at once.
Key takeaways
- Correlation runs from -1 to +1 and must be measured on returns, not on price levels.
- Markets in the same complex (WTI and Brent, gold and silver) are close to one bet; different sectors are more independent.
- Two equal positions with 20% volatility have 20% portfolio volatility if perfectly correlated but about 14.1% if uncorrelated.
- Average correlation sets a floor: with an average of 0.3, even many markets cannot cut risk below about 55% of one market's.
- Correlations rise in crises, so use sector and total risk caps, not just a long list of markets.
Quiz: check what you learned
0/4 answeredAnswer every question to finish the lesson. Wrong answers are fine: read the explanation and try again.
⚠ Not financial advice — educational signals only. Read the disclaimer.