/CMPE297_AdvanceDL_Project

CMPE297_AdvanceDL_Project

Primary LanguageJupyter NotebookMIT LicenseMIT

CMPE297_AdvanceDL_Project

Stock Options Prediction with Advanced Deep Learning

image

Members:

  • Jacky
  • Jerry
  • Jumana

Proposal

https://github.com/zjzsu2000/CMPE297_AdvanceDL_Project/blob/main/Stock%20Options_Project_Proposal.pdf

In the investment terms options is a derivative which is derived from the price of another security. Another security can be a stock, a currency, rate or a commodity. This means that the price of options moves if the price of another security would move. Understanding how options are priced is important because there are a lot of variables that determine its value.

In this project we are creating a Deep Learning model for the prediction of the price of an option. Options prediction can help in determining the investment better and understanding the stock marketing better. In our model, we pick specific options of the stock. We need to consider the five important characteristics of the option stock-Underlying asset, Call vs. put, Strike price, Expiration date, and American vs. European. These five features are important to our model and output of the model will be the price. As we know there are many different strategies for options trading depending on what we want to get and how much risk we are willing to expound, we will limit the features for the scope of this project.

Project Report and PPT presentation

slides

report

Data Preprocessing and Crawler

stocks picking

https://github.com/zjzsu2000/CMPE297_AdvanceDL_Project/tree/main/02_NASDAQ_Best_Stocks_picking_Using_Clustering

Preprocessing code

-https://github.com/zjzsu2000/CMPE297_AdvanceDL_Project/tree/main/01_Data_Preprocessing image

Models and Results

code

testing

LSTM model

image

model2/model3

image

MSE results

image

results using WIX option to test

image

image

image

image

Training process

image image image image image image image

TensorBoard

  • LSTM
  • Model2:
  • Model3:

Colabs, Datasets, Saved models

Saved models

https://github.com/zjzsu2000/CMPE297_AdvanceDL_Project/tree/main/04_models_training/trained_h5_model_files

TFX

https://github.com/zjzsu2000/CMPE297_AdvanceDL_Project/tree/main/06_TFX

TFX end-to-end Pipeline with Model Training

Example Validator/ Data Anomalies-

Snip20201214_79

Transformed Data

image

image

image

Model Training

image

Model Evaluation

image

Pushed model

image

TFX Model Serving Architecture

Snip20201207_56

StatisticsGen

Snip20201207_47

Artifact

Snip20201207_54

Anomalies

Snip20201207_50

TFX Model Serving

Snip20201206_32

Price Prediction Results

Snip20201207_49

Future Work

  • Stocks filter — Using the stocks with better Sharpe Rate
  • Option filter -- Not using the options deep out of the money(The Deep-OTM options are more volatile) -- Not using the options expired in 7 days (The options closer to the expiry date are more volatile)
  • More models, More data, More training, More metric
  • Apply to the real trading
  • Fine-tuning with more hyperparameters