Code Monkey home page Code Monkey logo

stock-market-sentiment-analysis's Introduction

Stock-market-sentiment-analysis

The main purpose of the following code is prediction of stock market trends using sentiment analysis.

Data source: Kaggle

All the code is included in the intermidiate_report.ipynb file. It might be necessary to change file paths before running code on local machine

The project first applies simple neural networks and then more complex models like LSTMs to time series data to see if they are successful in predicting the change in price of stocks.

Then I used sentiment analysis of news to see how news sentiment co-relates to the change in price of stocks. Surprisingly sentiment analysis of doesn't provide a substantial improvement over baseline methods in predicting prices. This suggests that news is merely a after effect of the trend not the cause for it.

Several early papers have suggested sentiment analysis as a excellent method to predict stock prices[2] while several later papers[1] suggest exactly the opposite. The cause of later poor results is usually attributed to spam posts[1] whose sole job is to decieve the sentiment analysis model. This project can a considered a expriment in understanding why prediction models need to keep on evolving and also not to blindly trust models just because they worked in the past.

[1] Stock chatter: Using stock sentiment to predict price direction Michael Rechenthin , W. Nick Street a , and Padmini Srinivasan

[2]Stock Prediction Using Twitter Sentiment Analysis Anshul Mittal, Arpit Goel

stock-market-sentiment-analysis's People

Contributors

dragonascent009 avatar

Stargazers

 avatar Ajit Kumar avatar Sabboshachi Sarkar avatar  avatar  avatar  avatar CodingBaby 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.