The Effect of Liquidity on Deep Learning Errors
Abstract
This study investigates the impact of market liquidity and macroeconomic variables on the forecasting performance of deep learning models in financial markets. The primary objective is to forecast price movements for ten stocks listed on the BIST 30 index using a single-layer Long Short-Term Memory (LSTM) model and identify market conditions associated with prediction failures. A two-stage empirical framework is employed using daily data covering 2006–2025. First, LSTM hyperparameters are optimized through Bayesian optimization and walk-forward validation. Second, daily Absolute Percentage Error (APE) is modeled using OLS-HAC and EGARCH-X regressions to examine the effects of stock-level liquidity measures and global macroeconomic variables. Results show that the LSTM model generates well-calibrated forecasts across all ten equities, with MAPE values ranging from 3.29% to 8.40%. Trading volume and illiquidity, measured by the Amihud ratio, are positively associated with prediction errors for most stocks. At least one liquidity proxy is statistically significant for nine of the ten equities, with consistent coefficient signs where significance is observed. In contrast, macroeconomic and global indicators exhibit limited and stock-specific effects. These findings highlight the importance of incorporating liquidity conditions into deep learning-based financial forecasting models to improve forecast reliability.
Keywords
References
- Alamu, O.S. and Siam, M.K. (2024). Stock price prediction and traditional models: An approach to achieve short-, medium- and long-term goals. Journal of Intelligent Learning Systems and Applications, 16, 363–383. https://doi.org/10.4236/jilsa.2024.164018
- Alkan, S. (2024). Liquidity and market efficiency in Borsa Istanbul. Hacettepe University Journal of Economics and Administrative Sciences, 42(3), 371-384. https://doi.org/10.17065/huniibf.1388807
- Amihud, Y. (2002). Illiquidity and stock returns: Cross-section and time-series effects. Journal of Financial Markets, 5(1), 31-56. https://doi.org/10.1016/S1386-4181(01)00024-6
- Avcı, Ö.B. (2020). Interaction between CDS premiums and stock markets: Case of Turkey. Ömer Halisdemir University Academic Review of Economics and Administrative Sciences, 13(1), 1-8. https://doi.org/10.25287/ohuiibf.526638
- Ballester, L. and González-Urteaga, A. (2020). Is there a connection between sovereign CDS spreads and the stock market? Evidence for European and US returns and volatilities. Mathematics, 8(10), 1667. https://doi.org/10.3390/math8101667
- Bhattacharya, S.N., Bhattacharya, M. and Basu, S. (2019). Stock market and its liquidity: Evidence from ARDL bound testing approach in the Indian context. Cogent Economics & Finance, 7(1), https://doi.org/10.1080/23322039.2019.1586297
- Bildirici, M., Şahin Onat, I. and Ersin, Ö.Ö. (2023). Forecasting BDI sea freight shipment cost, VIX investor sentiment and MSCI global stock market indicator indices: LSTAR-GARCH and LSTAR-APGARCH models. Mathematics, 11(5), 1242. https://doi.org/10.3390/math11051242
- Bokka, R., Ali, M.M.R., Mouryashrith, C., Srinivas, G., Kumar, K.D.S. and Himaithika, R. (2025). An efficient hybrid model based on deep learning technique for stock price prognostication. In S. Mishra, H.K. Tripathy & J.R. Mohanty (Eds.), 2025 international conference on advancements in smart, secure and intelligent computing (ASSIC) (pp. 1-5). IEEE Computer Society. https://doi.org/10.1109/ASSIC64892.2025.11158690
Details
Primary Language
English
Subjects
Econometric and Statistical Methods, Time-Series Analysis, Finance
Journal Section
Research Article
Authors
Nurullah Uçkun
0000-0001-5073-5644
Türkiye
Publication Date
September 30, 2026
Submission Date
March 25, 2026
Acceptance Date
September 18, 2026
Published in Issue
Year 2026 Volume: 11 Number: 3