Overview
Commodity markets alternate between calm periods, sell-offs and rallies. We asked whether detecting these regimes, or measuring the tone of gold-market news, helps a monthly portfolio of five commodities (Brent, US gas, gold, silver, copper) beyond a rolling Markowitz portfolio. The answer, under a strict chronological protocol, is no robust improvement, and the project reports it as such.
Approach
Regimes are found with K-means and Gaussian mixtures on price features, optionally with FRED indicators (VIX, dollar index, Treasury yields). Each month, the portfolio solves a mean–variance problem with the expected returns and covariance of the current regime. Sentiment comes from expert-labelled gold headlines (Sinha and Khandait, 2020).

Models were frozen before evaluation, with a two-month lag for publication, a 120-month rolling history, long-only weights capped at 60 % and 10 basis-point costs. Two windows were evaluated: July 2016–December 2018 (30 months, with sentiment) and March 2021–December 2025 (58 months).
Results

- Regimes change decisions, not reliably the result. Sharpe ratios rose by +0.08 (K-means) and +0.23 (GMM) over Markowitz in 2016–2018, with block-bootstrap intervals including zero, and fell in 2021–2025 (−0.11 and −0.04).
- Sentiment did not help. Used alone it lowered the Sharpe ratio by 0.15 (interval [−0.49, +0.15]); added to regimes it lowered it in all four pipelines.
- Macro indicators give regimes a clearer meaning, such as a flat-yield-curve state, without a consistent performance gain.
Limitations
Monthly average prices are not investable returns, the data are revised snapshots rather than point-in-time vintages, both windows were examined during the project, and none of the many comparisons is corrected for multiplicity. The conclusions are exploratory.
Individual contribution
Team of two. Ons Jdey started the repository with the regime, Markowitz and FRED notebooks and later added the robustness analyses. I built the gold-news sentiment index and its portfolio tests (notebooks 4 and 5), and drafted and revised the final research notebook.
References
- Sinha, A. and Khandait, T. (2020). Impact of news on the commodity market: dataset and results. arXiv:2009.04202.
- Markowitz, H. (1952). Portfolio selection. Journal of Finance 7(1), 77–91.