Git Product home page Git Product logo

predicting-stocks's Introduction

Efficient and Effective Methods for Predicting Stock Market Prices

Adrianna Liu, Stanley Wu, Patrick Yoon. The paper detailing our experiments and results can be found within the "paper" folder, or here for quick access. IMPORTANT NOTE: for the blue links in the paper to work, you must download the paper from GitHub (aka. you can't just view it).

Requirements

To install and make sure you have all requirements necessary to run our code, you can run pip install -r requirements.txt from the root directory to verify necessary packages and install missing ones.

Brief Instructions

The appendix of the paper has been copied below with instructions on how to run our code:

Appendix

First, you will need to pull the code from our Github repository here. You will need to have Python installed along with these libraries: numpy, matplotlib, pan-das, seaborn, hmmlearn, and scikit-learn, keras (the file "requirements.txt" can be helpful to install all at once). Then, please follow the corresponding instructions for eachmachine learning algorithm. For the model notebooks themselves, they are all in the folder called "models", named respectively to their model type. As for the initial data wrangling and datasets, they are in “models/dataset."

Decision Tree

After opening “Decision Tree.ipynb", you can proceedto run every cell in order. Any cell directly below a textin bold red font may be skipped as they are examples or code that take an incredibly long time to run and areinsignificant to the actual experiment/result. If neitherthe code or the dataset has been modified, you should be able to run all the other cells quickly (except for two cells that create the decision trees which takes a littlelonger than instantaneous). You should get the exact same results as we did, as there were no instances ofusing any randomness in the experiment, includingsplitting the dataset and creating the decision tree.

LSTM

Similar to the Decision Tree, you can proceed to runevery cell in order in “LSTM.ipynb", however since LSTM training does not take as long as Decision Tree, there is no need to skip over any blocks. Also unlike the decision tree algorithm, LSTM does incur some randomness in training. This means the results maynot be identical to the ones presented, however theyshould remain relatively similar.

HMM

As with the Decision Tree and the LSTM, you can also run every cell in order in “HMM.ipynb", but closing_and_middle_price_in_range will take some time to run. Like the Decision Tree, you should be able to get the same results as there is no randomness in fitting the model. Thus, if you use the same training set, the data should have the same result.

predicting-stocks's People

Contributors

stanleykywu avatar adriannaliu avatar yoonpatrick3 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.