Prediction of the Maximum and Minimum Prices of Stocks in the Stock Market Using a Hybrid Model Based on Stacking
Tuesta S.; Flores N.; Mauricio D. · Algorithms (2025) · DOI: 10.3390/a18080471
Resumen
Predicting stock prices on stock markets is challenging due to the nonlinear and nonstationary nature of financial markets. This study presents a hybrid model based on integrated machine learning (ML) techniques—neural networks, support vector regression (SVR), and decision trees—that uses the stacking method to estimate the next day’s maximum and minimum stock prices. The model’s performance was evaluated using three data sets: Brazil’s São Paulo Stock Exchange (iBovespa)—Companhia Energética do Rio Grande do Norte (CSRN) and CPFL Energia (CPFE)—and one from the New York Stock Exchange (NYSE), the Dow Jones Industrial Average (DJI). The datasets covered the following time periods: CSRN and CPFE from 1 January 2008 to 30 September 2013, and DJI from 3 December 2018 to 31 August 2024. For the CSRN ensemble, the hybrid model achieved a mean absolute percentage error (MAPE) of 0.197% for maximum price and 0.224% for minimum price, outperforming results from the literature. For the CPFE set, the model showed a MAPE of 0.834% for the maximum price and 0.937% for the minimum price, demonstrating comparable accuracy. The model obtained a MAPE of 0.439% for the DJI set for maximum price and 0.474% for minimum price, evidencing its applicability across different market contexts. These results suggest that the proposed hybrid approach offers a robust alternative for stock price prediction by overcoming the limitations of using a single ML technique.
Instituciones: Universidad Nacional Mayor de San Marcos; Universidad Nacional de Ingeniería