Coder Social home page Coder Social logo

stockforecast's Introduction

StockForecast

Objective:

Extract stock data of any one company from https://finance.yahoo.com/. Per hour per IP address one can pass 2000 requests, on an average. (note: there might be frequent changes to the request count by Yahoo Finance). Build a pipeline to extract the data on ongoing basis and forecast stock (long term and short term). Adjusted closing price must be forecasted.

Architecture

Screenshot 2023-05-07 at 3 16 32 PM

Data Collection & Preparation

  • Collection from yahoo finance, with option for user to change the stock. Data is collected from 1st Jan 2010 to last working date.
  • The historical stock data with relevant financial metrics was collected to build a forecasting model with enhanced accuracy. User has the liberty of selecting a stock and compare with market index such as DJIA.
  • Removed missing data, removed redundant features such as Open Price, High/Low etc
  • Scaling or transformation for modeling using Min Max Scaler
  • Engineered features like Return Price, Moving Average and Risk

Screenshot 2023-05-07 at 3 20 54 PM

Modelling

  • LSTM is a type of recurrent neural network (RNN) that is well-suited for time-series data analysis. It was used to capture long-term dependencies and relationships between different data points over time.
  • LSTM can learn from past data to make predictions about future trends. This is useful for stock forecasting since historical data can provide insight into patterns and trends that can inform future predictions.

Screenshot 2023-05-07 at 3 25 37 PM

Evaluation

  • MAPE & RMSE are used as standard evaluation metrics to assess the robustness of the LSTM model.
  • The below images displays our model performance on predicting the stock price of Apple Inc.

Screenshot 2023-05-07 at 3 26 44 PM

Deployment

stockforecast's People

Contributors

akhilrd avatar

Watchers

Kostas Georgiou 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.