EconPapers    
Economics at your fingertips  
 

Modelling Stock Prices of Energy Sector using Supervised Machine Learning Techniques

Mimoun Benali and Lahboub Karima
Additional contact information
Mimoun Benali: Laboratory of Research and Studies in Management, Entrepreneurship and Finance (LAREMEF), National School of Commerce and Management of Fez, Sidi Mohamed Ben Abdellah University, Fes 30050, Morocco.
Lahboub Karima: Laboratory of Research and Studies in Management, Entrepreneurship and Finance (LAREMEF), National School of Commerce and Management of Fez, Sidi Mohamed Ben Abdellah University, Fes 30050, Morocco.

International Journal of Energy Economics and Policy, 2024, vol. 14, issue 2, 594-602

Abstract: This paper aims at comparing the performance of the different state-of-the-art machine learning techniques in anticipating the performance of stock prices of the energy sector. The data collected cover the period from January 2020 to February 2023 with a daily frequency for the three most imported refined petroleum products in Morocco and trained four regression machines learning (linear regression, lasso regression, ridge regression, and SVR) and four classifiers machine learning (logistic regression, decision tree, extra tree and Random Forest) so that anticipating 1 day ahead prices direction can take place no matter whether they are negative or positive prices. The performance of regression algorithm is then evaluated using different evaluation metrics, especially MSE, RMSE, MAE, MAPE and R2 to evaluate the performance of regression algorithm while precision, recall and F1 scores are used to evaluate the performance of classifiers algorithm. The outcomes propose that the performance of linear regression and ridge regression takes place equally and outperform other single regression that is lasso regression and SVR for-1-day predictions as a whole. In addition to that, we have come to find that in the classifiers, algorithms group all machine learning display similar predictive accuracy, this is on one hand. On the other hand, the best of them is the logistic regression. In brief, this study suggests that all performance metrics are significantly improved by ensemble learning. Therefore, this study proves that critical information affecting stock movement can be captured by utilizing historical transactions.

Keywords: Machine Learning; Stock Price; Energy Sector; Regression; Price Prediction (search for similar items in EconPapers)
JEL-codes: C54 Q4 (search for similar items in EconPapers)
Date: 2024
References: View references in EconPapers View complete reference list from CitEc
Citations:

Downloads: (external link)
https://econjournals.com/index.php/ijeep/article/download/15553/7811/36465 (application/pdf)
https://econjournals.com/index.php/ijeep/article/view/15553/7811 (text/html)

Related works:
This item may be available elsewhere in EconPapers: Search for items with the same title.

Export reference: BibTeX RIS (EndNote, ProCite, RefMan) HTML/Text

Persistent link: https://EconPapers.repec.org/RePEc:eco:journ2:2024-02-59

Access Statistics for this article

International Journal of Energy Economics and Policy is currently edited by Ilhan Ozturk

More articles in International Journal of Energy Economics and Policy from Econjournals
Bibliographic data for series maintained by Ilhan Ozturk ().

 
Page updated 2025-03-19
Handle: RePEc:eco:journ2:2024-02-59