SlideShare a Scribd company logo
AAPL STOCK PREDICTION MODEL
DUSTIN JASMIN
GOAL
• Develop a Machine Learning model that uses:
• Relative Strength Index (RSI)
• Moving Average Convergence Divergence (MACD)
• To predict future % returns on AAPL shares
• Build trading bot that uses model to make buy and sell orders based on live
market data
PROCESS
• Imported many libraries
• Notables:
• Technical Analysis (TA)
• NumPy, Pandas
• Alpaca API
• CometML
• Pytorch, Keras, Tensorflow
PROCESS, CONTINUED
• Used Alpaca to import AAPL stock data (2016-2018):
• Each data point was in 4-hour intervals
• Used RSI, MACD and Closing Share Price for each data point
• Converted each dataset to NumPy arrays
• Developed Multi-Layered Perceptron
• Feed forward neural network
• Consists of three types of layers—the input layer, output layer and hidden layer
• The input layer receives the input signal to be processed.
• Output layer performs prediction and classification
• An arbitrary number of hidden layers that are placed in between the input and output layer are the true computational engine
of the MLP.
CODE, PRE-PROCESSING
• Added data to DataFrames
• Close series = 2 years of AAPL closing
price
• Added close series to RSI() and
MACD() object
• Converted to NumPy array
CODE, NORMALIZE
• Set data to between 0 and 1 for easier
computation
• Used unsqueeze() to format data for training
CODE, MODEL & PREDICTION
PERFORMANCE
• Model Learning Loss has
sharp decline in beginning
• Steady decline afterwards
• Epoch duration (time to
cycle through dataset)
decreases over time
SUMMARY
• Did not get to develop trading bot
• Personal Assessment:
• Based off loss data, model seemed to performed decently
• Project made me research/learn more about ML
• Data processing is toughest part in ML

More Related Content

PDF
Building machine learning service in your business — Eric Chen (Uber) @PAPIs ...
PDF
Extracting information from images using deep learning and transfer learning ...
PDF
Spark Summit East 2016 - MLeap Presentation
PPTX
Apache Apex Kafka Input Operator
PDF
Callgraph analysis
PDF
Scaling machine learning as a service at Uber — Li Erran Li at #papis2016
PPTX
Parallel Programming
PDF
MLLeap, or How to Productionize Data Science Workflows Using Spark by Mikha...
Building machine learning service in your business — Eric Chen (Uber) @PAPIs ...
Extracting information from images using deep learning and transfer learning ...
Spark Summit East 2016 - MLeap Presentation
Apache Apex Kafka Input Operator
Callgraph analysis
Scaling machine learning as a service at Uber — Li Erran Li at #papis2016
Parallel Programming
MLLeap, or How to Productionize Data Science Workflows Using Spark by Mikha...

What's hot (19)

PDF
Building machine learning applications locally with Spark — Joel Pinho Lucas ...
PPTX
Scalding intro 20141125
PPT
Sap abap online training
PDF
Apex as yarn application
PDF
Ml ch17
PPTX
Brazil
PPTX
MATLAB Major Projects
PPTX
University program - writing an apache apex application
PPTX
Spark UDFs are EviL, Catalyst to the rEsCue!
PPTX
PDF
Shortening the time from analysis to deployment with ml as-a-service — Luiz A...
PPTX
A Short Presentation on Kafka
PDF
Building A Machine Learning Platform At Quora (1)
PPTX
Coding For Cores - C# Way
PDF
Helm Charts 101 - Simply Kubernetes Apps deployment
PDF
Using Machine Learning & Artificial Intelligence to Create Impactful Customer...
PDF
amazon s3-connector and api architecture_kishore.pptx
PPTX
Incremental Queries and Transformations for Engineering Critical Systems
PPTX
Log Data Analysis Platform by Valentin Kropov
Building machine learning applications locally with Spark — Joel Pinho Lucas ...
Scalding intro 20141125
Sap abap online training
Apex as yarn application
Ml ch17
Brazil
MATLAB Major Projects
University program - writing an apache apex application
Spark UDFs are EviL, Catalyst to the rEsCue!
Shortening the time from analysis to deployment with ml as-a-service — Luiz A...
A Short Presentation on Kafka
Building A Machine Learning Platform At Quora (1)
Coding For Cores - C# Way
Helm Charts 101 - Simply Kubernetes Apps deployment
Using Machine Learning & Artificial Intelligence to Create Impactful Customer...
amazon s3-connector and api architecture_kishore.pptx
Incremental Queries and Transformations for Engineering Critical Systems
Log Data Analysis Platform by Valentin Kropov
Ad

Similar to StockPredictionML Presentation (20)

PPTX
ML Project OF Price pridiction Presentation.pptx
PPTX
flowchart ON DEEP LEARNING SPP
PDF
Stock Market Prediction using Machine Learning
PPTX
Stock Market Prediction using Machine Learning
PPTX
stock price prediction using machine learning
PPTX
stock prise prediction.pptx
PPTX
LSTM based method oh ML.pptx
PPTX
updated stock market ppt.pptx stock market presentation
PPTX
Stock Price Prediction PPT
PDF
Stock price prediction using stock eod of day price
PPTX
Stock prediction1600759770283_ak.ppt.pptx
PDF
Stock Market Prediction Analysis
PPTX
Stock-market-prediction.pptx
PDF
Stock Market Prediction.pptx
PDF
IRJET - Stock Market Prediction using Machine Learning Algorithm
PPTX
STOCK_PPT.pptx
PPTX
Oyebade's Lstm Stock Market Predictor Ai
PPTX
deep learning Lstm Stock model predictor for Google csv
PDF
STOCK MARKET PREDICTION USING NEURAL NETWORKS
PPTX
Final PPT.pptx
ML Project OF Price pridiction Presentation.pptx
flowchart ON DEEP LEARNING SPP
Stock Market Prediction using Machine Learning
Stock Market Prediction using Machine Learning
stock price prediction using machine learning
stock prise prediction.pptx
LSTM based method oh ML.pptx
updated stock market ppt.pptx stock market presentation
Stock Price Prediction PPT
Stock price prediction using stock eod of day price
Stock prediction1600759770283_ak.ppt.pptx
Stock Market Prediction Analysis
Stock-market-prediction.pptx
Stock Market Prediction.pptx
IRJET - Stock Market Prediction using Machine Learning Algorithm
STOCK_PPT.pptx
Oyebade's Lstm Stock Market Predictor Ai
deep learning Lstm Stock model predictor for Google csv
STOCK MARKET PREDICTION USING NEURAL NETWORKS
Final PPT.pptx
Ad

Recently uploaded (20)

PDF
iTop VPN Crack Latest Version Full Key 2025
PDF
17 Powerful Integrations Your Next-Gen MLM Software Needs
PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 41
PDF
AutoCAD Professional Crack 2025 With License Key
PDF
Design an Analysis of Algorithms II-SECS-1021-03
PDF
How AI/LLM recommend to you ? GDG meetup 16 Aug by Fariman Guliev
PPTX
AMADEUS TRAVEL AGENT SOFTWARE | AMADEUS TICKETING SYSTEM
PDF
Autodesk AutoCAD Crack Free Download 2025
PPTX
Weekly report ppt - harsh dattuprasad patel.pptx
PDF
Download FL Studio Crack Latest version 2025 ?
PPTX
history of c programming in notes for students .pptx
PPTX
WiFi Honeypot Detecscfddssdffsedfseztor.pptx
PDF
Salesforce Agentforce AI Implementation.pdf
PPTX
Why Generative AI is the Future of Content, Code & Creativity?
PDF
wealthsignaloriginal-com-DS-text-... (1).pdf
PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
PDF
Digital Systems & Binary Numbers (comprehensive )
DOCX
Greta — No-Code AI for Building Full-Stack Web & Mobile Apps
PPTX
Oracle Fusion HCM Cloud Demo for Beginners
PDF
Website Design Services for Small Businesses.pdf
iTop VPN Crack Latest Version Full Key 2025
17 Powerful Integrations Your Next-Gen MLM Software Needs
Internet Downloader Manager (IDM) Crack 6.42 Build 41
AutoCAD Professional Crack 2025 With License Key
Design an Analysis of Algorithms II-SECS-1021-03
How AI/LLM recommend to you ? GDG meetup 16 Aug by Fariman Guliev
AMADEUS TRAVEL AGENT SOFTWARE | AMADEUS TICKETING SYSTEM
Autodesk AutoCAD Crack Free Download 2025
Weekly report ppt - harsh dattuprasad patel.pptx
Download FL Studio Crack Latest version 2025 ?
history of c programming in notes for students .pptx
WiFi Honeypot Detecscfddssdffsedfseztor.pptx
Salesforce Agentforce AI Implementation.pdf
Why Generative AI is the Future of Content, Code & Creativity?
wealthsignaloriginal-com-DS-text-... (1).pdf
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
Digital Systems & Binary Numbers (comprehensive )
Greta — No-Code AI for Building Full-Stack Web & Mobile Apps
Oracle Fusion HCM Cloud Demo for Beginners
Website Design Services for Small Businesses.pdf

StockPredictionML Presentation

  • 1. AAPL STOCK PREDICTION MODEL DUSTIN JASMIN
  • 2. GOAL • Develop a Machine Learning model that uses: • Relative Strength Index (RSI) • Moving Average Convergence Divergence (MACD) • To predict future % returns on AAPL shares • Build trading bot that uses model to make buy and sell orders based on live market data
  • 3. PROCESS • Imported many libraries • Notables: • Technical Analysis (TA) • NumPy, Pandas • Alpaca API • CometML • Pytorch, Keras, Tensorflow
  • 4. PROCESS, CONTINUED • Used Alpaca to import AAPL stock data (2016-2018): • Each data point was in 4-hour intervals • Used RSI, MACD and Closing Share Price for each data point • Converted each dataset to NumPy arrays • Developed Multi-Layered Perceptron • Feed forward neural network • Consists of three types of layers—the input layer, output layer and hidden layer • The input layer receives the input signal to be processed. • Output layer performs prediction and classification • An arbitrary number of hidden layers that are placed in between the input and output layer are the true computational engine of the MLP.
  • 5. CODE, PRE-PROCESSING • Added data to DataFrames • Close series = 2 years of AAPL closing price • Added close series to RSI() and MACD() object • Converted to NumPy array
  • 6. CODE, NORMALIZE • Set data to between 0 and 1 for easier computation • Used unsqueeze() to format data for training
  • 7. CODE, MODEL & PREDICTION
  • 8. PERFORMANCE • Model Learning Loss has sharp decline in beginning • Steady decline afterwards • Epoch duration (time to cycle through dataset) decreases over time
  • 9. SUMMARY • Did not get to develop trading bot • Personal Assessment: • Based off loss data, model seemed to performed decently • Project made me research/learn more about ML • Data processing is toughest part in ML