IDEAS home Printed from https://ideas.repec.org/a/ibn/ijbmjn/v19y2024i4p80.html

Deep Learning Applied to Stock Prices: Epoch Adjustment in Training an LSTM Neural Network

Author

Listed:
  • Napoleão Verardi Galegale
  • Camilo Ilzo Shimabukuro

Abstract

Research on recurrent neural networks applied to financial time series is still underexplored, even more so for series on Brazilian stock prices. The research gap was identified in studies on regularization with early stopping to improve predictive capacity and reduce overfitting for the type of neural network used. This study aims to analyze the effect of the number of epochs on the prediction error dispersion of a recurrent neural network using the Long Short-Term Memory – LSTM approach on the stock prices of a Brazilian company, aiming to minimize prediction error and reduce the risk of overfitting. The method is of an applied nature with a quantitative approach and uses an experimental procedure to analyze the behavior of the prediction error of a recurrent neural network as a function of the number of epochs. As a result, a range of the number of epochs was identified that extracts the best trade-off relation between predictive capacity and overfitting risk for a given network configuration. It was also identified how the dispersion of prediction error initially declines sharply and then stabilizes asymptotically. The study offers a greater understanding of the behavior of the prediction error, seeking greater efficiency in predictive techniques on financial time series in order to add value and reduce uncertainties in the decision-making process for asset managers and investors.

Suggested Citation

  • Napoleão Verardi Galegale & Camilo Ilzo Shimabukuro, 2024. "Deep Learning Applied to Stock Prices: Epoch Adjustment in Training an LSTM Neural Network," International Journal of Business and Management, Canadian Center of Science and Education, vol. 19(4), pages 1-80, July.
  • Handle: RePEc:ibn:ijbmjn:v:19:y:2024:i:4:p:80
    as

    Download full text from publisher

    File URL: https://ccsenet.org/journal/index.php/ijbm/article/download/0/0/50304/54461
    Download Restriction: no

    File URL: https://ccsenet.org/journal/index.php/ijbm/article/view/0/50304
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. Justin A. Sirignano, 2019. "Deep learning for limit order books," Quantitative Finance, Taylor & Francis Journals, vol. 19(4), pages 549-570, April.
    2. Fama, Eugene F, 1970. "Efficient Capital Markets: A Review of Theory and Empirical Work," Journal of Finance, American Finance Association, vol. 25(2), pages 383-417, May.
    3. Shiller, Robert J, 1995. "Conversation, Information, and Herd Behavior," American Economic Review, American Economic Association, vol. 85(2), pages 181-185, May.
    4. Fischer, Thomas & Krauss, Christopher, 2018. "Deep learning with long short-term memory networks for financial market predictions," European Journal of Operational Research, Elsevier, vol. 270(2), pages 654-669.
    Full references (including those not matched with items on IDEAS)

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Abraham Itzhak Weinberg, 2025. "Hybrid Quantum-Classical Ensemble Learning for S\&P 500 Directional Prediction," Papers 2512.15738, arXiv.org.
    2. Bartosz Bieganowski & Robert 'Slepaczuk, 2024. "Supervised Autoencoders with Fractionally Differentiated Features and Triple Barrier Labelling Enhance Predictions on Noisy Data," Papers 2411.12753, arXiv.org, revised Nov 2024.
    3. Kentaro Imajo & Kentaro Minami & Katsuya Ito & Kei Nakagawa, 2020. "Deep Portfolio Optimization via Distributional Prediction of Residual Factors," Papers 2012.07245, arXiv.org.
    4. Amin Aminimehr & Ali Raoofi & Akbar Aminimehr & Amirhossein Aminimehr, 2022. "A Comprehensive Study of Market Prediction from Efficient Market Hypothesis up to Late Intelligent Market Prediction Approaches," Computational Economics, Springer;Society for Computational Economics, vol. 60(2), pages 781-815, August.
    5. Ben Moews, 2023. "On random number generators and practical market efficiency," Papers 2305.17419, arXiv.org, revised Jul 2023.
    6. Bartosz Bieganowski & Robert Ślepaczuk, 2024. "Supervised Autoencoder MLP for Financial Time Series Forecasting," Working Papers 2024-03, Faculty of Economic Sciences, University of Warsaw.
    7. Romain Bocher, 2022. "The Intersubjective Markets Hypothesis," Journal of Interdisciplinary Economics, , vol. 34(1), pages 35-50, January.
    8. Coskun, Esra Alp & Lau, Chi Keung Marco & Kahyaoglu, Hakan, 2020. "Uncertainty and herding behavior: evidence from cryptocurrencies," Research in International Business and Finance, Elsevier, vol. 54(C).
    9. Alexander Jakob Dautel & Wolfgang Karl Härdle & Stefan Lessmann & Hsin-Vonn Seow, 2020. "Forex exchange rate forecasting using deep recurrent neural networks," Digital Finance, Springer, vol. 2(1), pages 69-96, September.
    10. Flori, Andrea & Regoli, Daniele, 2021. "Revealing Pairs-trading opportunities with long short-term memory networks," European Journal of Operational Research, Elsevier, vol. 295(2), pages 772-791.
    11. Yoontae Hwang & Stefan Zohren, 2025. "Signature-Informed Transformer for Asset Allocation," Papers 2510.03129, arXiv.org, revised Jan 2026.
    12. Merve Mert Sarıtaş, 2025. "Forecasting the XBANK Index in Türkiye Using Macroeconomic Indicators: A Model Comparison with Ensemble Learning Methods," International Econometric Review (IER), Economic Research Association, vol. 17(1), pages 44-58, June.
    13. Schnaubelt, Matthias, 2022. "Deep reinforcement learning for the optimal placement of cryptocurrency limit orders," European Journal of Operational Research, Elsevier, vol. 296(3), pages 993-1006.
    14. Ehsan Hoseinzade & Saman Haratizadeh & Arash Khoeini, 2019. "U-CNNpred: A Universal CNN-based Predictor for Stock Markets," Papers 1911.12540, arXiv.org.
    15. Goodell, John W. & Kumar, Satish & Lim, Weng Marc & Pattnaik, Debidutta, 2021. "Artificial intelligence and machine learning in finance: Identifying foundations, themes, and research clusters from bibliometric analysis," Journal of Behavioral and Experimental Finance, Elsevier, vol. 32(C).
    16. Saâdaoui, Foued & Rabbouch, Hana, 2024. "Financial forecasting improvement with LSTM-ARFIMA hybrid models and non-Gaussian distributions," Technological Forecasting and Social Change, Elsevier, vol. 206(C).
    17. Jing Hao & Feng He & Feng Ma & Shibo Zhang & Xiaotao Zhang, 2025. "Machine learning vs deep learning in stock market investment: an international evidence," Annals of Operations Research, Springer, vol. 348(1), pages 93-115, May.
    18. Yaohu Lin & Shancun Liu & Haijun Yang & Harris Wu & Bingbing Jiang, 2021. "Improving stock trading decisions based on pattern recognition using machine learning technology," PLOS ONE, Public Library of Science, vol. 16(8), pages 1-25, August.
    19. Firuz Kamalov, 2019. "Forecasting significant stock price changes using neural networks," Papers 1912.08791, arXiv.org.
    20. Fabian Waldow & Matthias Schnaubelt & Christopher Krauss & Thomas Günter Fischer, 2021. "Machine Learning in Futures Markets," JRFM, MDPI, vol. 14(3), pages 1-14, March.

    More about this item

    JEL classification:

    • R00 - Urban, Rural, Regional, Real Estate, and Transportation Economics - - General - - - General
    • Z0 - Other Special Topics - - General

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:ibn:ijbmjn:v:19:y:2024:i:4:p:80. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Canadian Center of Science and Education (email available below). General contact details of provider: https://edirc.repec.org/data/cepflch.html .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.