Dynamic optimal portfolio optimization for modeling Moroccan stock market: selection and evaluation method
Keywords:
Portfolio optimization, Forecasting, Hybrid models, Machine learning, Deep Learning, Modeling
Abstract
Emerging markets, such as Morocco’s stock exchange, face challenges including low liquidity, sectoral concentration, and economic sensitivity, which render traditional portfolio optimization methods inadequate. This study introduces a hybrid framework that integrates machine learning (ML) for stock selection with a novel Mean Variance Complex-Based (MVCB) optimization to enhance performance in the Moroccan All Shares Index (MASI). Four ML models named Stepwise Regression, Random Forest, Generalized Boosted Regression, and XGBoost are used to predict returns based on fundamental and technical indicators, with XGBoost achieving superior accuracy. The MVCB method leverages complex returns derived from the Hilbert Transform, capturing dynamic market correlations and phase-amplitude relationships to optimize weights under volatility. Backtesting reveals that the MVCB portfolio outperforms traditional mean-variance (MV) and market benchmarks, yielding a 10.48\% annual return with 3.52\% volatility and a Sharpe ratio of 2.48 (compared to 1.12 for MASI). Sector diversification and reduced left-tail risk (19.3\%) mitigate crisis-driven correlation breakdowns. By synergizing predictive ML with adaptive optimization, this framework addresses instability in emerging markets, offering a robust, scalable solution for risk-adjusted returns. The results highlight the viability of data-driven strategies in volatile, resource-constrained environments.
Published
2025-05-28
How to Cite
BOUHMADY, A., Kadiri, H., belkhoutout, K., & RAISSI, N. (2025). Dynamic optimal portfolio optimization for modeling Moroccan stock market: selection and evaluation method. Statistics, Optimization & Information Computing. https://doi.org/10.19139/soic-2310-5070-2529
Issue
Section
Research Articles
Authors who publish with this journal agree to the following terms:
- Authors retain copyright and grant the journal right of first publication with the work simultaneously licensed under a Creative Commons Attribution License that allows others to share the work with an acknowledgement of the work's authorship and initial publication in this journal.
- Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgement of its initial publication in this journal.
- Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work (See The Effect of Open Access).