IDEAS home Printed from https://ideas.repec.org/a/spr/ijsaem/v14y2023i4d10.1007_s13198-023-01934-z.html
   My bibliography  Save this article

Analysis and prediction of Indian stock market: a machine-learning approach

Author

Listed:
  • Shilpa Srivastava

    (Christ (Deemed to be University), Delhi NCR)

  • Millie Pant

    (IIT Roorkee)

  • Varuna Gupta

    (Christ (Deemed to be University), Delhi NCR)

Abstract

Prediction of financial stock market is a challenging task because of its volatile and non- linear nature. The presence of different factors like psychological, sentimental state, rational or irrational behaviour of investors make the stock market more dynamic. With the inculcation of algorithms based on artificial intelligence, deep learning algorithms, the prediction of movement of financial stock market is revolutionized in the recent years. The purpose of using these algorithms is to help the investors for taking decisions related to the Stock Pricing. A model has been proposed to predict the direction of movement of Indian stock market in the near future. This model makes use of historical Indian stock data of companies in nifty 50 since they came existence along with some financial and social indicators like financial news and tweets related to stocks. After pre-processing and normalization various machine learning algorithms like LSTM, support vector machines, KNearest neighbour, random forest, gradient boosting regressor are applied on this time series data to produce better accuracy and to minimize the RMSE error. This model has the ability to reduce major losses to the investors who invest in stock market. The social indicators will give an insight for predicting the direction of stock market. The LSTM network will make use of historical closing prices, tweets and trading volume.

Suggested Citation

  • Shilpa Srivastava & Millie Pant & Varuna Gupta, 2023. "Analysis and prediction of Indian stock market: a machine-learning approach," International Journal of System Assurance Engineering and Management, Springer;The Society for Reliability, Engineering Quality and Operations Management (SREQOM),India, and Division of Operation and Maintenance, Lulea University of Technology, Sweden, vol. 14(4), pages 1567-1585, August.
  • Handle: RePEc:spr:ijsaem:v:14:y:2023:i:4:d:10.1007_s13198-023-01934-z
    DOI: 10.1007/s13198-023-01934-z
    as

    Download full text from publisher

    File URL: http://link.springer.com/10.1007/s13198-023-01934-z
    File Function: Abstract
    Download Restriction: Access to the full text of the articles in this series is restricted.

    File URL: https://libkey.io/10.1007/s13198-023-01934-z?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
    ---><---

    As the access to this document is restricted, you may want to search for a different version of it.

    References listed on IDEAS

    as
    1. Sharma, Chandradew & Banerjee, Kinjal, 2015. "A study of correlations in the stock market," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 432(C), pages 321-330.
    2. Renault, Thomas, 2017. "Intraday online investor sentiment and return patterns in the U.S. stock market," Journal of Banking & Finance, Elsevier, vol. 84(C), pages 25-40.
    3. Thomas Renault, 2017. "Intraday online investor sentiment and return patterns in the U.S. stock market," Université Paris1 Panthéon-Sorbonne (Post-Print and Working Papers) hal-03205113, HAL.
    4. Liu, Qingbai & Wang, Chuanjie & Zhang, Ping & Zheng, Kaixin, 2021. "Detecting stock market manipulation via machine learning: Evidence from China Securities Regulatory Commission punishment cases," International Review of Financial Analysis, Elsevier, vol. 78(C).
    5. Chandradew Sharma & Kinjal Banerjee, 2015. "A Study of Correlations in the Stock Market," Papers 1504.05844, arXiv.org.
    6. Sun, Andrew & Lachanski, Michael & Fabozzi, Frank J., 2016. "Trade the tweet: Social media text mining and sparse matrix factorization for stock market prediction," International Review of Financial Analysis, Elsevier, vol. 48(C), pages 272-281.
    7. Lee, Hsiu-Chuan & Lee, Yun-Huan & Lu, Yang-Cheng & Wang, Yu-Chun, 2020. "States of psychological anchors and price behavior of Japanese yen futures," The North American Journal of Economics and Finance, Elsevier, vol. 51(C).
    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. Fan, Rui & Talavera, Oleksandr & Tran, Vu, 2023. "Information flows and the law of one price," International Review of Financial Analysis, Elsevier, vol. 85(C).
    2. Santi, Caterina, 2023. "Investor climate sentiment and financial markets," International Review of Financial Analysis, Elsevier, vol. 86(C).
    3. Na, Haejung & Kim, Soonho, 2021. "Predicting stock prices based on informed traders’ activities using deep neural networks," Economics Letters, Elsevier, vol. 204(C).
    4. Mohammad Alomari & Abdel Razzaq Al rababa’a & Ghaith El-Nader & Ahmad Alkhataybeh, 2021. "Who’s behind the wheel? The role of social and media news in driving the stock–bond correlation," Review of Quantitative Finance and Accounting, Springer, vol. 57(3), pages 959-1007, October.
    5. Shaen Corbet & Yang (Greg) Hou & Yang Hu & Les Oxley, 2022. "We Reddit in a Forum: The Influence of Message Boards on Firm Stability," Review of Corporate Finance, now publishers, vol. 2(1), pages 151-190, March.
    6. Shen, Yiran & Liu, Chang & Sun, Xiaolei & Guo, Kun, 2023. "Investor sentiment and the Chinese new energy stock market: A risk–return perspective," International Review of Economics & Finance, Elsevier, vol. 84(C), pages 395-408.
    7. Thomas Renault, 2020. "Sentiment analysis and machine learning in finance: a comparison of methods and models on one million messages," Digital Finance, Springer, vol. 2(1), pages 1-13, September.
    8. Gianluca Anese & Marco Corazza & Michele Costola & Loriana Pelizzon, 2023. "Impact of public news sentiment on stock market index return and volatility," Computational Management Science, Springer, vol. 20(1), pages 1-36, December.
    9. Béatrice BOULU-RESHEF & Catherine BRUNEAU & Maxime NICOLAS & Thomas RENAULT, 2022. "An Experimental Analysis of Investor Sentiment," LEO Working Papers / DR LEO 2940, Orleans Economics Laboratory / Laboratoire d'Economie d'Orleans (LEO), University of Orleans.
    10. Geng, Yuedan & Ye, Qiang & Jin, Yu & Shi, Wen, 2022. "Crowd wisdom and internet searches: What happens when investors search for stocks?," International Review of Financial Analysis, Elsevier, vol. 82(C).
    11. Seok, Sangik & Cho, Hoon & Ryu, Doojin, 2022. "Scheduled macroeconomic news announcements and intraday market sentiment," The North American Journal of Economics and Finance, Elsevier, vol. 62(C).
    12. Chen, Haozhi & Zhang, Yue, 2023. "Research on the effect of firm-specific investor sentiment on the idiosyncratic volatility anomaly: Evidence from the Chinese market," Pacific-Basin Finance Journal, Elsevier, vol. 81(C).
    13. Gaoshan Wang & Guangjin Yu & Xiaohong Shen, 2020. "The Effect of Online Investor Sentiment on Stock Movements: An LSTM Approach," Complexity, Hindawi, vol. 2020, pages 1-11, December.
    14. Song, Ziyu & Yu, Changrui, 2022. "Investor sentiment indices based on k-step PLS algorithm: A group of powerful predictors of stock market returns," International Review of Financial Analysis, Elsevier, vol. 83(C).
    15. Rui Fan & Oleksandr Talavera & Vu Tran, 2023. "Social media and price discovery: The case of cross‐listed firms," Journal of Financial Research, Southern Finance Association;Southwestern Finance Association, vol. 46(1), pages 151-167, February.
    16. Simon Porcher & Thomas Renault, 2021. "Social distancing beliefs and human mobility: Evidence from Twitter," PLOS ONE, Public Library of Science, vol. 16(3), pages 1-12, March.
    17. Salman Bahoo & Marco Cucculelli & Xhoana Goga & Jasmine Mondolo, 2024. "Artificial intelligence in Finance: a comprehensive review through bibliometric and content analysis," SN Business & Economics, Springer, vol. 4(2), pages 1-46, February.
    18. Xiaojun Chu & Jianying Qiu, 2021. "Forecasting stock returns using first half an hour order imbalance," International Journal of Finance & Economics, John Wiley & Sons, Ltd., vol. 26(3), pages 3236-3245, July.
    19. Wang, Xinjie & Xiang, Zhiqiang & Xu, Weike & Yuan, Peixuan, 2022. "The causal relationship between social media sentiment and stock return: Experimental evidence from an online message forum," Economics Letters, Elsevier, vol. 216(C).
    20. Valerio Astuti & Marta Crispino & Marco Langiulli & Juri Marcucci, 2022. "Textual analysis of a Twitter corpus during the COVID-19 pandemics," Questioni di Economia e Finanza (Occasional Papers) 692, Bank of Italy, Economic Research and International Relations Area.

    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:spr:ijsaem:v:14:y:2023:i:4:d:10.1007_s13198-023-01934-z. 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: Sonal Shukla or Springer Nature Abstracting and Indexing (email available below). General contact details of provider: http://www.springer.com .

    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.