Giter Site home page Giter Site logo

stock-prediction's Introduction

Stock-Prediction

A machine learning approach to prdicting stock price movement.

Introduction

Different price prediction methods have been proposed using various machine learning methods such as support vector machines, random trees, neural networks have been proposed. In this project we focus on recurrent neural networks(RNN) by creaing a model based on three layers of long short term memory (LSTM) cells.

By first constructing a crude model and experimenting with raw data, we find that the odds are no different from that of guessing.

For better approximation we convert raw data in to technical indicators and feed them into the our network under given paramters. The end result is a contour plot between our given paramters and the corresponding accuracy at each point.

Requirements

python 3.8.6 (developed used pyenv) AlphaVantage for raw data

Parameters

We investiage the relationship of two parameters per point to the up/down of price movement.

timesteps : the number of data points fed into the network forecast_days : the number of days forward the program aims to predict

Usage

Once running the program, it will first prompt

Type symbol of stock to be analyzed:

The run.py is executed, it will return a contour plot

Results

We can notice that for each set of data, there is a peak - an optimal paramter that yields highest accuracy. Perhaps these paramters can be used as pointers when testing in the real world.

stock-prediction's People

Contributors

kslee9572 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.