Building investment portfolios using the Python programming language: Experimental comparison between machine learning algorithms and the traditional method of Markowitz in the Iraq Stock Exchange

Authors

  • Ali A. Ibrahim Department of Economics of Banking Management, College of business economics, Al- Nahrain University, Baghdad Iraq
  • Faril M. Edan Department of Economics of Banking Management, College of business economics, Al- Nahrain University, Baghdad Iraq
  • Maryam H. Mohsen Department of Banking Management Economics, College of Business Economics, Al

DOI:

https://doi.org/10.56967/ejfb2026614

Keywords:

Markowitz model, support vector machine, logistic Regression, random forests principal Component analysis, machine learning

Abstract

This study aims to compare and improve the methods of building investment portfolios for a sample of Iraqi banks listed on the Iraq Stock Exchange, by comparing traditional methods such as the Markowitz model with modern techniques based on machine learning. The Markowitz model is key to balancing return and risk across the medium-variance optimization framework, a traditional model that many financial institutions rely on. The study focused on exploring the extent to which machine learning techniques such as key component analysis (PCA), supporting vector machine (SVM), logistic regression, and random forest can improve the performance of the investment portfolios of these banks in a volatile environment such as the Iraq Stock Exchange. These techniques rely on processing and analyzing huge financial data to discover hidden patterns and relationships that help increase returns and reduce risk more effectively compared to traditional methods. The historical financial data related to the shares and assets of the banks of the research sample in the Iraq Stock Exchange was used to evaluate the performance of portfolios according to indicators such as expected return, variance, and Sharpe ratio. The study aims to provide innovative solutions that help banks make smarter and more effective investment decisions, commensurate with the local market conditions and the economic and political challenges they face.     

Downloads

Download data is not yet available.

Published

2026-04-25

How to Cite

Ibrahim, A., Edan, F., & Hussein, M. (2026). Building investment portfolios using the Python programming language: Experimental comparison between machine learning algorithms and the traditional method of Markowitz in the Iraq Stock Exchange. Enterprenuership Journal For Finance and Bussiness, 7(الخاص (2), 236–252. https://doi.org/10.56967/ejfb2026614

Similar Articles

1 2 3 4 5 6 7 8 9 10 > >> 

You may also start an advanced similarity search for this article.