Giter VIP home page Giter VIP logo

stock_price_prediction's Introduction

Stock Market Prediction using Numerical and Textual Analysis

Objective

Our goal is to create a hybrid model for stock price/performance prediction using both numerical analysis of historical stock prices and sentimental analysis of news headlines. By combining these two sources of information, we aim to improve the accuracy of our predictions.

Approach

  • We start by extracting sentiment scores from newspaper headlines data using the SentimentIntensityAnalyzer from the nltk library. This allows us to quantify the overall sentiment expressed in the news on a given day.
  • Next, we use a Multivariate Time Series Forecasting approach inspired by this paper. We utilize Keras' LSTM (Long Short-Term Memory) to model the temporal effects of past events (both textual sentiment scores and historical stock data) on opening prices. LSTM is a type of recurrent neural network that is well-suited for modeling time series data.
  • Our model achieved a training loss of 0.0472 and a validation loss of 0.0256, indicating that it was able to accurately predict stock prices on both the training and validation datasets. Additionally, our model achieved an RMSE (root mean squared error) of 475.102 on the test data, providing further evidence of its predictive power.

Data

We used the following data sources for our analysis and prediction:

  • Historical stock prices for SENSEX (S&P BSE SENSEX) from Yahoo Finance. This data provides us with information on past stock prices and performance.
  • Textual news data from Times of India. This data provides us with information on news events that may impact stock prices.
  • Data can be found here data

References

stock_price_prediction's People

Contributors

razzzeeev avatar

Watchers

 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.