LSTM Networks in Financial Decision-Making: Stock Price Prediction and Portfolio Optimization

Authors

Abstract

This research seeks to assess how well Long Short-Term Memory (LSTM) networks predict stock prices, as well as how LSTM might be applied to portfolio optimization. The research proposes a diversified portfolio containing 20 stocks of the Casablanca Stock Exchange, and CVaR (Conditional Value At Risk) was used for portfolio optimization, relying on historical data and LSTM predicted data for the same period. The predictive performance of the LSTM model was quite robust when looking at Mean Absolute Error (MAE), Root Mean Squared Error (RMSE), and R-squared (R2). However, when considering portfolio optimization with predicted LSTM compared to historical data, the expected return and CVaR are substantially different, as are the optimal portfolio asset weights. The findings suggest that it is essential to be careful and deliberate in using LSTM for stock price forecasting, especially when analyzing portfolio optimization and asset weight.

Downloads

Published

08-09-2025 — Updated on 17-09-2025

Versions

How to Cite

Lahbous, A., & Lahbous, B. (2025). LSTM Networks in Financial Decision-Making: Stock Price Prediction and Portfolio Optimization. African Journal of Management, Engineering and Technology, 3(2), Afr. J. Manag. Engg. Technol., 3(2), 219–228. Retrieved from https://revues.imist.ma/index.php/AJMET/article/view/47172 (Original work published September 8, 2025)

Issue

Section

Articles