Skip to main content

A Comparative Study into Stock Market Prediction Through Various Sentiment Analysis Algorithms

  • Conference paper
  • First Online:
Cyber Intelligence and Information Retrieval

Part of the book series: Lecture Notes in Networks and Systems ((LNNS,volume 291))

Abstract

From past times, there is strong link between finances, currencies and economic growth the future and progress of humankind. Now a days, the future of economic development is dictated by fortunes and vagaries prevalent in share stock markets. Researchers have found that it is possible to make forecasts with large historical data on stock market and up-down in prices of share values. So, the fact that stock markets play a really vital role in national and global economy, which is today undeniable. Stock markets can be profitable by speculations provided, of course though the future behavior can be forecast with a constant degree of accuracy. In this study, the authors propose a model which help to guess stock market trends consistently and with minimal of error value. The model discussed here makes the use of sentiment analyses based on financial news and also historical patterns of stocks in share markets and can offer more accurate results to analyses data from multiple news sources and historical price movement of individual stocks. By using a two-step process, the model offers a minimum prediction accuracy value of 72%. In the first step, Naïve Bayes algorithm is used to evaluate text polarity to obtain a fix on public sentiment based on news feeds collected and received. In the second step, the future stock prices are forecasted by combining the evaluation results on text polarity with historical data on stock value price up-down.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 169.00
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 219.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

References

  1. Wyss B (2001) Fundamentals of the stock market. McGraw Hill, pp 1–245

    Google Scholar 

  2. Khan W, Ghazanfar MA, Azam MA, Karami A, Alyoubi KH, Alfakeeh AS (2020) Stock market prediction using machine learning classifiers and social media, news. Jo Ambient Intelligence Humanized Comput

    Google Scholar 

  3. See-To EWK, Yang Y (2017) Market sentiment dispersion and its effects on stock return and volatility. Electron Mark 27:283–296

    Article  Google Scholar 

  4. Xindan LI, Bing Z (2017) Stock market behavior and Investor sentiment: evidence from China. Front Bus Res China 2(2):277–282

    Google Scholar 

  5. Smailovic J, Grcar M, Lavrac N, Znidarsic M (2013) Predictive sentiment analysis of tweets: a stock market application. Human-computer interaction and knowledge discovery in complex, unstructured, big data. HCI-KDD 2013. Lect Notes Comput Sci 7947:77–88

    Article  Google Scholar 

  6. Wang H, Ou P (2009) Prediction of stock market index movement by ten data mining techniques. Mod Appl Sci 3(12):28–42

    Article  Google Scholar 

  7. Shu-e Y, Qiang Z (2009) Noise trading, investor sentiment volatility, and stock returns. Syst Eng Theor Pract 29(3):40–47

    Google Scholar 

  8. Pal R, Pawar U, Zambare K, Hole V (2020) Predicting stock market movement based on twitter data and news articles using sentiment analysis and fuzzy logic. In: Second international conference on computer networks and communication technologies. Lecture Notes on Data Engineering and Communications Technologies, vol 44, pp 561–571

    Google Scholar 

  9. Bose R, Dey RK, Roy S, Sarddar D (2018) Analyzing political sentiment using twitter data. Information and communication technology for intelligent systems. Smart Innov Syst Technol 107:427–436

    Article  Google Scholar 

  10. Federer LM, Belter CW, Joubert DJ, Livinski A, Lu Y-L, Snyders LN, Thompson H (2018) Data sharing in PLOS ONE: an analysis of data availability statements. PLoS ONE 13(5):1–12

    Article  Google Scholar 

  11. Biswas S, Sarkar I, Das P, Bose R, Roy S (2020) Examining the effects of pandemics on stock market trends through sentiment analysis. J Xidian Univ 6:1163–1176

    Google Scholar 

  12. Biswas S, Ghosh AK, Chakraborty S, Roy S, Bose R (2020) Scope of sentiment analysis on news articles regarding stock market and GDP in struggling economic condition. Int J Emerging Trends Eng Res 8(7):3594–3609

    Article  Google Scholar 

  13. Han J, Kamber M, Pei J (2011) Data mining concepts and techniques. Morgan Kaufmann 3:1–744

    MATH  Google Scholar 

  14. Namugera F, Wesonga R, Jehopio P (2019) Text mining and determinants of sentiments: twitter social media usage by traditional media houses in Uganda. Comput Soc Netw 6(3):1–21

    Google Scholar 

  15. Aqlan AAQ, Manjula B, Lakshman Naik R (2019) A study of sentiment analysis: concepts, techniques, and challenges. In: International conference on computational intelligence and data engineering. Lecture Notes on Data Engineering and Communications Technologies, vol 28, pp 14–162

    Google Scholar 

  16. Sharma D, Sabharwal M, Goyal V, Vij M (2020) Sentiment analysis techniques for social media data: a review. In: First international conference on sustainable technologies for computational intelligence 1045:75–90

    Google Scholar 

  17. Kothari AA, Patel WD (2015) A novel approach towards context sensitive recommendations based on machine learning methodology. In: Fifth international conference on communication systems and network technologies 2015:1114–1118

    Google Scholar 

  18. Basari ASH, Hussin B, Ananta GP (2012) Opinion mining of movie review using hybrid method of support vector machine and particle swarm optimization. In: Malaysian Technical Universities Conference on Engineering and Technology (MUCET) 4:545–552

    Google Scholar 

  19. Gopal A, Sultani MM, Bansal JC (2019) On stability analysis of particle swarm optimization algorithm. Arab J Sci Eng 1–10

    Google Scholar 

  20. Kennedy J, Eberhart R (1995) Particle swarm optimization. In: International conference on neural networks 4:1942–1948

    Google Scholar 

  21. Khan W, Ghazanfar MA, Azam MA, Karami A, Alyoubi KH, Alfakeeh AS (2020) Stock market prediction using machine learning classifiers and social media news. J Ambient Intelligence Humanized Comput

    Google Scholar 

  22. More P, Ghotkar A (2016) A study of different approaches to aspect-based opinion mining. Int J Comput Appl 145(6):11–15

    Google Scholar 

  23. Smeureanu I, Bucur C (2012) Applying supervised opinion mining techniques on online user reviews. Informatica Economica 16(2):81–91

    Google Scholar 

  24. Sharma D, Sabharwal M (2019) Sentiment analysis for social media using SVM classifier of machine learning. Int J Innov Technol Exploring Eng (IJITEE) 8(9):39–47

    Google Scholar 

  25. Umamaheswari K, Rajamohana SP, Aishwaryalakshmi G. Opinion mining using hybrid methods. Int J Comput Appl 18–21

    Google Scholar 

  26. Sarddar D, Dey RK, Bose R, Roy S. Topic modeling as a tool to gauge political sentiments from twitter feeds. Int J Natural Comput Res (IJNCR) 9(2):1–22

    Google Scholar 

  27. Srivastava DK, Bhambhu L (2009) Data classification using support vector machine. J Theor Appl Information Technol 1–7

    Google Scholar 

  28. Hastie T, Rosset S, Tibshirani R, Zhu J (2004) The entire regularization path for the support vector machine. J Mach Learn Res 5:1391–1415

    MathSciNet  MATH  Google Scholar 

  29. Tong S, Koller D (2001) Support vector machine active learning with applications to text classification. J Mach Learn Res 45–66

    Google Scholar 

  30. Chang C-C, Lin C-J (2011) LIBSVM: a library for support vector. ACM Trans Intelligent Syst Technol 2(3):1–27

    Article  Google Scholar 

  31. Watson TJ (2001) An empirical study of the naive Bayes classifier, pp 1–6

    Google Scholar 

  32. Ahmad S, Asghar MZ, Alotaibi FM, Awan I (2019) Detection and classification of social media-based extremist affiliations using sentiment analysis techniques. Human Centric Comput Information Sci 9:24

    Article  Google Scholar 

  33. Ding G, Qin L (2019) Study on the prediction of stock price based on the associated network model of LSTM. Int J Mach Learn Cybern 1–11

    Google Scholar 

  34. Wilson JR, Lorenz KA (2015) Standard binary logistic regression model. In: Modeling binary correlated responses using SAS, SPSS and R. ICSA Book Series in Statistics, vol 9, pp 25–54

    Google Scholar 

  35. Tolles J, Meurer WJ (2016) Logistic regression relating patient characteristics to outcomes. JAMA Guide Statistics Methods 316(5):533–534

    Google Scholar 

  36. Phienthrakul T, Kijsirikul B, Takamura H, Okumura M (2009) Sentiment classification with support vector machines and multiple kernel functions. In: Leung CS, Lee M, Chan JH (eds) Neural information processing. ICONIP 2009. Lecture Notes in Computer Science, vol 5864, pp 583–592

    Google Scholar 

  37. Cai L, Hofmann T (2004) Hierarchical document categorization with support vector machines. In: CIKM’04, ACMI, pp 78–87

    Google Scholar 

  38. Altman NS (1992) An introduction to Kernel and nearest-neighbor nonparametric regression. Am Stat 46(3):175–185

    MathSciNet  Google Scholar 

  39. Verma P, Om H (2019) A novel approach for text summarization using optimal combination of sentence scoring methods. Sadhana 44(110)

    Google Scholar 

  40. Porter M (1980) An algorithm for suffix stripping. In: Program: electronic library and information systems, vol 14, issue 3, pp 130–137

    Google Scholar 

  41. Ting KM (2017) Confusion matrix. Encyclopedia of machine learning and data mining

    Google Scholar 

  42. Singh R, Baidya D (2019) Usage of data science to predict string integrity failures. Society of Petroleum Engineers

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2022 The Author(s), under exclusive license to Springer Nature Singapore Pte Ltd.

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Biswas, S., Ghosh, S. (2022). A Comparative Study into Stock Market Prediction Through Various Sentiment Analysis Algorithms. In: Tavares, J.M.R.S., Dutta, P., Dutta, S., Samanta, D. (eds) Cyber Intelligence and Information Retrieval. Lecture Notes in Networks and Systems, vol 291. Springer, Singapore. https://doi.org/10.1007/978-981-16-4284-5_11

Download citation

Publish with us

Policies and ethics