Abstract

Stock market performance can be influenced by stock prices in either a positive ornegative way because it is a very unpredictable area. The public's opinions and feelings may be affected differently by various occurrences, which could impact the direction in which stock price fluctuates. To increase predictability of stock market indicators, this study examines the potential usage of sentiment data from Twitter users. In this study, relationship between public perceptions about acompany stated in tweets and changes in stock prices are investigated. The resultsof the study demonstrates strong association between changes in stock prices and the opinionsshared by the general public in tweets. In this study, a system is createdthat collects tweets, analyses and assesses if tweets has positive or negativesentiment using a model called Random Forest Classifier. The output for the algorithm is then checked with the actual change in stock price the next day to ascertain the prediction's error. The goal of this research is to forecast future market behavior by performing sentiment analysis on a sample of tweets from the past fewdays. The results suggest that Random Forest model is suitable for stock price prediction along with sentimental analysis it generates the accuracy of 84.86% which is accessed by with three widely used measures for the regressor— Mean Squared Error , Root Mean Square Error , Mean Absolute Error and along with sentimental analysis by generating classification report. Keywords: Stock price prediction, Volatility , Time series, Random Forest Classifier, Sentimental Analysis, Natural Language Tool Kit, VADER, Bootstrap method, Back testing, hyper parameter tuning, snscrape, Lemmatization and tokenization.

Full Text
Published version (Free)

Talk to us

Join us for a 30 min session where you can share your feedback and ask us any queries you have

Schedule a call