GithubHelp home page GithubHelp logo

rnn-price-prediction's Introduction

RNN-Price-Prediction

Stock price prediction based on stacking ensemble method with LSTM, GRU, Bidirectional LSTM

Abstraction

Machine learning technology is developing rapidly, and people apply the technology to various industries. The financial industry is especially one of the most active machine-learning enabled industries because it does not affect the human right or require explainability. Thus, many investment companies adopted machine learning technology to estimate future prices and even replaces human traders’ stock trading work. However, these techniques are not opened to the public as they are directly connected to their profit, so this paper will present the fundamental machine learning algorithms and techniques that can predict the future price with reasonable accuracy. Especially for the price prediction, the paper will use three types of Recurrent Neural Network algorithms: LSTM, GRU, Bidirectional LSTM. The paper will also use a stacking ensemble method that can improve the stock price prediction value based on the inputs of each algorithm’s output data. Through these RNN algorithms and ensemble methods, the paper presents an average of 0.016 Root Mean Square Error rate regarding US tech stocks price prediction.

Input Data

  • Stock Price : Stock Daily High, Low, Open, Close Price, and Stock Volume
  • Commodity : Gold, Oil
  • Exchange Rate : EUR, JPY

RNN Algorithms

  • LSTM, BI-LSTM, GRU image

Test

  • Test 1 : With different datasets
  • Test 2 : With different window sizes
  • Test 3 : With different unit sizes, stock only data set
  • Test 4 : With different unit sizes, stock and commodity data set
  • Test 5 : With different unit sizes, all dataset
  • Test 6 : With different combination of the Algorithms
  • Test 7 : performance of the price estimation of four IT stocks(Microsoft, Amazon, Google and Facebook) with stock only dataset

Result

Performance was measuerd with Root Mean Square Error(RMSE)

Test 1

image

Test 2

image

Test 3

image

Test 4

image

Test 5

image

Test 6

image

Test 7

image

rnn-price-prediction's People

Contributors

h344lee avatar

Stargazers

Onwubiko Emmanuel avatar  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.