IDEAS home Printed from https://ideas.repec.org/a/wly/jforec/v45y2026i1p114-121.html

On the Optimal Selection of Time‐Lag Embedding Dimension for Deep Learning Approaches in Financial Forecasting With Big Data

Author

Listed:
  • Mohammadreza Ghadimpour
  • Seyed Babak Ebrahimi
  • Stelios Bekrios
  • Ehsan Bagheri

Abstract

Our expectation of stock price trends is the main factor in making a trading strategy or determining the right time to buy or sell a stock. Predictions on stock market prices are a great challenge due to its complexity and the dependence of prices on various economic and non‐economic factors. Today, technological advances have led to proposing new methods in this field. Deep learning is one of these methods that has received much attention in recent years. In this study, using deep learning methods and, more specifically, long‐short term memory (LSTM) and gated recurrent unit (GRU) networks, we predict the S&P 500 index in three different time frames: daily, weekly, and monthly. We also compare the efficiency of these two methods and examine the effect of choosing different time frames for the input data of these networks. The results indicate that the GRU network outperforms the LSTM network. Also, selecting an appropriate time frame for the input data may improve the network accuracy.

Suggested Citation

  • Mohammadreza Ghadimpour & Seyed Babak Ebrahimi & Stelios Bekrios & Ehsan Bagheri, 2026. "On the Optimal Selection of Time‐Lag Embedding Dimension for Deep Learning Approaches in Financial Forecasting With Big Data," Journal of Forecasting, John Wiley & Sons, Ltd., vol. 45(1), pages 114-121, January.
  • Handle: RePEc:wly:jforec:v:45:y:2026:i:1:p:114-121
    DOI: 10.1002/for.70007
    as

    Download full text from publisher

    File URL: https://doi.org/10.1002/for.70007
    Download Restriction: no

    File URL: https://libkey.io/10.1002/for.70007?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    References listed on IDEAS

    as
    1. Virtanen, Ilkka & Yli-Olli, Paavo, 1987. "Forecasting stock market prices in a thin security market," Omega, Elsevier, vol. 15(2), pages 145-155.
    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. Sima Siami-Namini & Akbar Siami Namin, 2018. "Forecasting Economics and Financial Time Series: ARIMA vs. LSTM," Papers 1803.06386, arXiv.org.
    4. French, Kenneth R. & Schwert, G. William & Stambaugh, Robert F., 1987. "Expected stock returns and volatility," Journal of Financial Economics, Elsevier, vol. 19(1), pages 3-29, September.
    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. Alagidede, Paul & Panagiotidis, Theodore, 2009. "Modelling stock returns in Africa's emerging equity markets," International Review of Financial Analysis, Elsevier, vol. 18(1-2), pages 1-11, March.
    2. Linnenluecke, Martina K. & Chen, Xiaoyan & Ling, Xin & Smith, Tom & Zhu, Yushu, 2017. "Research in finance: A review of influential publications and a research agenda," Pacific-Basin Finance Journal, Elsevier, vol. 43(C), pages 188-199.
    3. Xuan Vinh Vo & Kevin Daly, 2008. "Volatility amongst firms in the Dow Jones Eurostoxx50 Index," Applied Financial Economics, Taylor & Francis Journals, vol. 18(7), pages 569-582.
    4. Fernando Rubio, 2005. "Estrategias Cuantitativas De Valor Y Retornos Por Accion De Largo," Finance 0503029, University Library of Munich, Germany.
    5. Stefanescu, Razvan & Dumitriu, Ramona, 2015. "Conţinutul analizei seriilor de timp financiare [The Essentials of the Analysis of Financial Time Series]," MPRA Paper 67175, University Library of Munich, Germany.
    6. Jasman Tuyon & Zamri Ahmada, 2016. "Behavioural finance perspectives on Malaysian stock market efficiency," Borsa Istanbul Review, Research and Business Development Department, Borsa Istanbul, vol. 16(1), pages 43-61, March.
    7. Balaban, Ercan & Ozgen, Tolga, 2016. "Trading session effects on stock returns and their conditional volatility: Firm-level evidence from a European Union accession country," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 446(C), pages 264-271.
    8. Abdelaziz Eissa, Mohamed & Al Refai, Hisham, 2024. "Context-dependent responses to geopolitical risk in Middle Eastern and African stock markets: An asymmetric volatility spillover study," International Review of Economics & Finance, Elsevier, vol. 94(C).
    9. Peter F. Christoffersen & Francis X. Diebold, 2006. "Financial Asset Returns, Direction-of-Change Forecasting, and Volatility Dynamics," Management Science, INFORMS, vol. 52(8), pages 1273-1287, August.
    10. Claudeci Da Silva & Hugo Agudelo Murillo & Joaquim Miguel Couto, 2014. "Early Warning Systems: Análise De Ummodelo Probit De Contágio De Crise Dos Estados Unidos Para O Brasil(2000-2010)," Anais do XL Encontro Nacional de Economia [Proceedings of the 40th Brazilian Economics Meeting] 110, ANPEC - Associação Nacional dos Centros de Pós-Graduação em Economia [Brazilian Association of Graduate Programs in Economics].
    11. Mika Vaihekoski, 1998. "Short-term returns and the predictability of Finnish stock returns," Finnish Economic Papers, Finnish Economic Association, vol. 11(1), pages 19-36, Spring.
    12. Michael Nofer & Oliver Hinz, 2015. "Using Twitter to Predict the Stock Market," Business & Information Systems Engineering: The International Journal of WIRTSCHAFTSINFORMATIK, Springer;Gesellschaft für Informatik e.V. (GI), vol. 57(4), pages 229-242, August.
    13. Borjigin, Sumuya & Gao, Ting & Sun, Yafei & An, Biao, 2020. "For evil news rides fast, while good news baits later?—A network based analysis in Chinese stock market," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 551(C).
    14. Jonas Hanetho, 2023. "Deep Policy Gradient Methods in Commodity Markets," Papers 2308.01910, arXiv.org.
    15. Jennie Bai & Turan G. Bali & Quan Wen, 2019. "Is There a Risk-Return Tradeoff in the Corporate Bond Market? Time-Series and Cross-Sectional Evidence," NBER Working Papers 25995, National Bureau of Economic Research, Inc.
    16. Vanshu Mahajan & Sunil Thakan & Aashish Malik, 2022. "Modeling and Forecasting the Volatility of NIFTY 50 Using GARCH and RNN Models," Economies, MDPI, vol. 10(5), pages 1-20, April.
    17. Fernando Rubio, 2005. "Eficiencia De Mercado, Administracion De Carteras De Fondos Y Behavioural Finance," Finance 0503028, University Library of Munich, Germany, revised 23 Jul 2005.
    18. Choudhry, Taufiq & Jayasekera, Ranadeva, 2012. "Comparison of efficiency characteristics between the banking sectors of US and UK during the global financial crisis of 2007–2011," International Review of Financial Analysis, Elsevier, vol. 25(C), pages 106-116.
    19. Degiannakis, Stavros & Xekalaki, Evdokia, 2004. "Autoregressive Conditional Heteroskedasticity (ARCH) Models: A Review," MPRA Paper 80487, University Library of Munich, Germany.
    20. Herold, Michael & Kanz, Andreas & Muck, Matthias, 2021. "Do opinion polls move stock prices? Evidence from the US presidential election in 2016," The Quarterly Review of Economics and Finance, Elsevier, vol. 80(C), pages 665-690.

    More about this item

    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:wly:jforec:v:45:y:2026:i:1:p:114-121. 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: Wiley Content Delivery (email available below). General contact details of provider: http://www3.interscience.wiley.com/cgi-bin/jhome/2966 .

    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.