Skip to content
Senghak Rou
All projects

Machine Learning & Forecasting · Nov 2026

Market regimes in commodity portfolios

Do detected market regimes or gold-news sentiment improve a monthly commodity portfolio? A frozen, chronological backtest finds that they change allocations but bring no robust gain.

Status
Completed
Setting
Team project (2)ENSAE course project (machine learning for portfolio management), 2026–2027
My role
News-sentiment analysis and its portfolio tests; drafted and revised the final research notebook.
Methods and tools
Python · pandas · scikit-learn · SciPy · Jupyter

+0.23

Sharpe-ratio gain of GMM regimes over Markowitz, 2016–2018

Interval includes zero; −0.04 in 2021–2025

0 of 4

Regime pipelines improved by adding news sentiment

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).

Log price index of the five commodities from 2006 to 2025, above four bands of colour-coded regimes from K-means and GMM fitted to 2015 (A) and to 2020 (B).
Figure 1 · Experimental resultRegimes found by K-means and by a Gaussian mixture (red: weakest average return, blue: strongest). The two methods agree only partly, a first sign that regimes are not sharply defined.Source: Final_Research_Notebook.ipynb, Figure 3 (repository commit 826c7e8).

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

Net wealth and drawdown from July 2016 to December 2018 for equal weight, Markowitz, K-means regimes and GMM regimes; equal weight ends highest at about 1.22, Markowitz lowest at about 1.07.
Figure 2 · Experimental resultMain window. Both regime strategies end above Markowitz but below equal weight, and all drawdowns are similar.Source: Final_Research_Notebook.ipynb, Figure 4.
  • 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

References

  1. Sinha, A. and Khandait, T. (2020). Impact of news on the commodity market: dataset and results. arXiv:2009.04202.
  2. Markowitz, H. (1952). Portfolio selection. Journal of Finance 7(1), 77–91.
Aug – Sep 2026Completed

Forecasting French regional electricity demand

Hourly demand forecasts for 12 French regions, 1 to 24 hours ahead, evaluated under a strict information rule and a test year opened only once.

Machine Learning & Forecasting · Individual · Python, pandas, statsmodels

Apr – May 2026Completed

Likelihood-free inference for log-normal sums

Bayesian inference for a model whose likelihood has no closed form, by simulation: rejection and MCMC versions of approximate Bayesian computation, compared on accuracy and cost.

Statistics & Econometrics · Team of 3 · Python, JAX, NumPy