Giter VIP home page Giter VIP logo

north0n-fi / twitter-moods-as-stock-price-predictors-on-nasdaq Goto Github PK

View Code? Open in Web Editor NEW
23.0 4.0 6.0 28.65 MB

An attempt to predict next day's stock price movements using sentiments in tweets with cashtags. Six different ML algorithms were deployed (LogReg, KNN, SVM etc.). Main libraries used: Pandas & Numpy

Jupyter Notebook 100.00%
twitter-sentiment-analysis nasdaq100 naturallanguageprocessing nlp machine-learning stock-price-prediction

twitter-moods-as-stock-price-predictors-on-nasdaq's Introduction

Twitter-moods-as-stock-price-predictors-on-Nasdaq

Although news most certainly influence stock market prices, public mood states or sentiment may play an equally important role. We know from psychological research that emotions, in addition to information, play a significant role in human decision-making. Behavioral finance has provided further proof that financial decisions are significantly driven by emotion and mood. It is therefore reasonable to assume that the public mood and sentiment can drive stock market values as much as news. As far as tweets go, some interesting discoveries have already been made. I also wanted to investigate this, and made some interesting discoveries!

Also two articles, Parts 1 & 2 covering the analysis can be fund on medium.com

https://medium.com/@jang.noodin/moods-on-twitter-can-predict-stock-price-movements-on-nasdaq-part-1-9b128d4492ae

https://medium.com/@jang.noodin/moods-on-twitter-can-predict-stock-price-movements-on-nasdaq-part-2-524adc042a5e

Hypothesis: Tweets today with a positive or negative sentiment and containing one or several cashtags can affect the way a stock moves tomorrow. If negative sentiments dominate today, the stock price is expected to fall tomorrow, and rise after positive sentiments. The number of followers a Twitter account has is also a dominating factor. The more followers, the more influential the tweets, and the more impacts on the stock price.

PLEASE NOTE ONE THING ABOUT THE NOTEBOOKS: The dataframes contain also a lot of columns not used in the actual binary classification analysis, where only two features were relevant; 'Pct_daily_change' and 'Compound_multiplied' (=the x:s) and 'Buy/Sell' (=the y).

twitter-moods-as-stock-price-predictors-on-nasdaq's People

Contributors

north0n-fi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.