IDEAS home Printed from https://ideas.repec.org/p/arx/papers/2409.08297.html
   My bibliography  Save this paper

Comparative Study of Long Short-Term Memory (LSTM) and Quantum Long Short-Term Memory (QLSTM): Prediction of Stock Market Movement

Author

Listed:
  • Tariq Mahmood
  • Ibtasam Ahmad
  • Malik Muhammad Zeeshan Ansar
  • Jumanah Ahmed Darwish
  • Rehan Ahmad Khan Sherwani

Abstract

In recent years, financial analysts have been trying to develop models to predict the movement of a stock price index. The task becomes challenging in vague economic, social, and political situations like in Pakistan. In this study, we employed efficient models of machine learning such as long short-term memory (LSTM) and quantum long short-term memory (QLSTM) to predict the Karachi Stock Exchange (KSE) 100 index by taking monthly data of twenty-six economic, social, political, and administrative indicators from February 2004 to December 2020. The comparative results of LSTM and QLSTM predicted values of the KSE 100 index with the actual values suggested QLSTM a potential technique to predict stock market trends.

Suggested Citation

  • Tariq Mahmood & Ibtasam Ahmad & Malik Muhammad Zeeshan Ansar & Jumanah Ahmed Darwish & Rehan Ahmad Khan Sherwani, 2024. "Comparative Study of Long Short-Term Memory (LSTM) and Quantum Long Short-Term Memory (QLSTM): Prediction of Stock Market Movement," Papers 2409.08297, arXiv.org.
  • Handle: RePEc:arx:papers:2409.08297
    as

    Download full text from publisher

    File URL: http://arxiv.org/pdf/2409.08297
    File Function: Latest version
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. Pan, Lei & Mishra, Vinod, 2018. "Stock market development and economic growth: Empirical evidence from China," Economic Modelling, Elsevier, vol. 68(C), pages 661-673.
    2. Faisal Faisal & Peshraw Majid Muhamad & Turgut Tursoy, 2016. "Impact of Economic Growth, Foreign Direct Investment and Financial Development on Stock Prices in China: Empirical Evidence from Time Series Analysis," International Journal of Economics and Financial Issues, Econjournals, vol. 6(4), pages 1998-2006.
    3. Wen Chang, Hao & Chang, Tsangyao, 2023. "How oil price and exchange rate affect stock price in China using Bayesian Quantile_on_Quantile with GARCH approach," The North American Journal of Economics and Finance, Elsevier, vol. 64(C).
    4. Peng, Lu & Liu, Shan & Liu, Rui & Wang, Lin, 2018. "Effective long short-term memory with differential evolution algorithm for electricity price prediction," Energy, Elsevier, vol. 162(C), pages 1301-1314.
    5. Kashif Islam & Ahmad Raza Bilal & Zeeshan Saeed & Samina Sardar & Muhammad Husnain Kamboh, 2023. "Impact of government integrity and corruption on sustainable stock market development: linear and nonlinear evidence from Pakistan," Economic Change and Restructuring, Springer, vol. 56(4), pages 2529-2556, August.
    6. Deepika Krishnan & Vishal Dagar, 2022. "Exchange Rate and Stock Markets During Trade Conflicts in the USA, China, and India," Global Journal of Emerging Market Economies, Emerging Markets Forum, vol. 14(2), pages 185-203, May.
    7. Shabir Mohsin Hashmi & Bisharat Hussain Chang, 2023. "Asymmetric effect of macroeconomic variables on the emerging stock indices: A quantile ARDL approach," International Journal of Finance & Economics, John Wiley & Sons, Ltd., vol. 28(1), pages 1006-1024, January.
    8. Kuosmanen, Petri & Nabulsi, Nasib & Vataja, Juuso, 2015. "Financial variables and economic activity in the Nordic countries," International Review of Economics & Finance, Elsevier, vol. 37(C), pages 368-379.
    9. Dimitrios Subeniotis & Dimitrios Papadopoulos & Ioannis Tampakoudis & Athina Tampakoudi, 2011. "How Inflation, Market Capitalization, Industrial Production and the Economic Sentiment Indicator Affect the EU-12 Stock Markets," European Research Studies Journal, European Research Studies Journal, vol. 0(1), pages 105-120.
    10. Ahmet Tiryaki & Reşat Ceylan & Levent Erdoğan, 2019. "Asymmetric effects of industrial production, money supply and exchange rate changes on stock returns in Turkey," Applied Economics, Taylor & Francis Journals, vol. 51(20), pages 2143-2154, April.
    11. Li, Dan & Miller, Stewart R. & Eden, Lorraine & Hitt, Michael A., 2012. "The Impact of Rule of Law on Market Value Creation for Local Alliance Partners in BRIC Countries," Journal of International Management, Elsevier, vol. 18(4), pages 305-321.
    12. Arestis, Philip & Demetriades, Panicos O, 1997. "Financial Development and Economic Growth: Assessing the Evidence," Economic Journal, Royal Economic Society, vol. 107(442), pages 783-799, May.
    13. Mojtaba Nabipour & Pooyan Nayyeri & Hamed Jabani & Amir Mosavi, 2020. "Deep learning for Stock Market Prediction," Papers 2004.01497, arXiv.org.
    14. Chang, Bisharat Hussain & Sharif, Arshian & Aman, Ameenullah & Suki, Norazah Mohd & Salman, Asma & Khan, Syed Abdul Rehman, 2020. "The asymmetric effects of oil price on sectoral Islamic stocks: New evidence from quantile-on-quantile regression approach," Resources Policy, Elsevier, vol. 65(C).
    15. Asongu Simplice, 2011. "Government Quality Determinants of Stock Market Performance in African Countries," Working Papers of the African Governance and Development Institute. 11/019, African Governance and Development Institute..
    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. Ullah, Assad & Zhao, Xinshun & Kamal, Muhammad Abdul & Zheng, JiaJia, 2020. "Modeling the relationship between military spending and stock market development (a) symmetrically in China: An empirical analysis via the NARDL approach," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 554(C).
    2. Huo, Dongxia & Bagadeem, Salim & Elsherazy, Tarek Abbas & Nasnodkar, Siddhesh Prabhu & Kalra, Akash, 2023. "Renewable energy consumption and the rising effect of climate policy uncertainty: Fresh policy analysis from China," Economic Analysis and Policy, Elsevier, vol. 80(C), pages 1459-1474.
    3. Lu, Man & Chang, Bisharat Hussain & Salman, Asma & Razzaq, Muthanna G. Abdul & Uddin, Mohammed Ahmar, 2023. "Time varying connectedness between foreign exchange markets and crude oil futures prices," Resources Policy, Elsevier, vol. 86(PB).
    4. Dervis Kirikkaleli, 2019. "Time–frequency dependency of financial risk and economic risk: evidence from Greece," Journal of Economic Structures, Springer;Pan-Pacific Association of Input-Output Studies (PAPAIOS), vol. 8(1), pages 1-10, December.
    5. Xiaohui GONG & Bisharat Hussain CHANG & Xi CHEN & Kaiyang ZHONG, 2023. "Asymmetric Effects of Exchange Rates on Energy Demand in E7 Countries: New Evidence from Multiple Thresholds Nonlinear ARDL Model," Journal for Economic Forecasting, Institute for Economic Forecasting, vol. 0(2), pages 125-142, June.
    6. Cemil Kuzey & Ali Uyar & Amal Hamrouni & Merve Kilic & Rim Boussaada, 2021. "The link between institutional quality, ethical behaviors of firms, and market regulations on stock market developments," Managerial and Decision Economics, John Wiley & Sons, Ltd., vol. 42(4), pages 998-1021, June.
    7. Shabir Mohsin Hashmi & Bisharat Hussain Chang, 2023. "Asymmetric effect of macroeconomic variables on the emerging stock indices: A quantile ARDL approach," International Journal of Finance & Economics, John Wiley & Sons, Ltd., vol. 28(1), pages 1006-1024, January.
    8. Perugini, Cristiano, 2020. "Patterns and drivers of household income dynamics in Russia: The role of access to credit," BOFIT Discussion Papers 11/2020, Bank of Finland Institute for Emerging Economies (BOFIT).
    9. Efobi, Uchenna & Asongu, Simplice & Okafor, Chinelo & Tchamyou, Vanessa & Tanankem, Belmondo, 2016. "Diaspora Remittance Inflow, Financial Development and the Industrialisation of Africa," MPRA Paper 76121, University Library of Munich, Germany.
    10. Godfrey Osaseri & Ifuero Osad Osamwonyi, 2019. "Impact of Stock Market Development on Economic Growth in BRICS," International Journal of Financial Research, International Journal of Financial Research, Sciedu Press, vol. 10(1), pages 23-30, January.
    11. Bilgehan TEKIN & Erol YENER, 2019. "The causality between economic growth and stock market in developing and developed countries: Toda-Yamamoto approach," Theoretical and Applied Economics, Asociatia Generala a Economistilor din Romania / Editura Economica, vol. 0(2(619), S), pages 79-90, Summer.
    12. Su, Chen & Brookfield, David, 2013. "An evaluation of the impact of stock market reforms on IPO under-pricing in China: The certification role of underwriters," International Review of Financial Analysis, Elsevier, vol. 28(C), pages 20-33.
    13. Simplice A. Asongu & Joseph I. Uduji & Elda N. Okolo‐Obasi, 2020. "Drivers and Persistence of Death in Conflicts: Global Evidence," World Affairs, John Wiley & Sons, vol. 183(4), pages 389-429, December.
    14. Panicos Demetriades & David Fielding, 2012. "Information, Institutions, And Banking Sector Development In West Africa," Economic Inquiry, Western Economic Association International, vol. 50(3), pages 739-753, July.
    15. Bangake, Chrysost & Eggoh, Jude C., 2011. "Further evidence on finance-growth causality: A panel data analysis," Economic Systems, Elsevier, vol. 35(2), pages 176-188, June.
    16. Simplice A. Asongu & Vanessa S. Tchamyou & Ndemaze Asongu & Nina Tchamyou, 2018. "The Comparative African Economics of Governance in Fighting Terrorism," AFEA Working Papers 18/046, African Finance and Economic Association (AFEA).
    17. Asongu, Simplice & Acha-Anyi, Paul, 2019. "Global Tourism and Waves of Terror: Perspectives from Military Expenditure," MPRA Paper 101793, University Library of Munich, Germany.
    18. Florentina Melnic & Daniel Juravle, 2020. "Governance And Access To Finance," Review of Economic and Business Studies, Alexandru Ioan Cuza University, Faculty of Economics and Business Administration, issue 25, pages 151-168, June.
    19. Hung, Ngo Thai, 2023. "Green investment, financial development, digitalization and economic sustainability in Vietnam: Evidence from a quantile-on-quantile regression and wavelet coherence," Technological Forecasting and Social Change, Elsevier, vol. 186(PB).
    20. Kashif Islam & Ahmad Raza Bilal & Syed Anees Haider Zaidi, 2022. "Symmetric and asymmetric nexus between economic freedom and stock market development in Pakistan," Economic Change and Restructuring, Springer, vol. 55(4), pages 2391-2421, November.

    More about this item

    NEP fields

    This paper has been announced in the following NEP Reports:

    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:arx:papers:2409.08297. 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: arXiv administrators (email available below). General contact details of provider: http://arxiv.org/ .

    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.