SlideShare une entreprise Scribd logo
1  sur  30
Télécharger pour lire hors ligne
Stock Price Prediction
INTRODUCTION
● A stock market is a public market for
the trading of company stock.
● Stock market allows us to buy and sell
units of stocks (ownership) of a
company.
● If the company’s profits go up,then we
own some of the profits and if they go
down, then we lose profits with them.
● If more sellers than buyers, stock
prices tend to fall. Conversely, when
more buyers than sellers, stock prices
tend to rise
INTRODUCTION
ProfitLoss
Red is purchased stock
Green is sold stock
HOW TO READ A STOCK TABLE?
Date- day on
which the stock
is traded
High- high is the
highest price at which
a stock traded during
the course of the day
Close- refers to the
last price at which a
stock trades during a
regular trading session
Open- price of the
first trade for any
listed stock is its
daily opening price.
Low- lowest price at
which a stock trades
over the course of a
trading day.
Volume- the number
of shares or contracts
traded in a security or
an entire market during
a given period of time
● To accurately predict the
future closing value of a given
stock across a given period of
time in the future.
● Use different machine
learning and deep learning
models available and
compare them in terms of
graphical analysis.
5
PROBLEM STATEMENT
Actual Close
Predicted Close
Today’s
Close price
Predicted
Close price
of Next day
The data used in this project is of the Alphabet Inc3
from January 1, 2005 to July
30, 2017, this is a series of data points indexed in time order or a time series. Our
goal was to predict the closing price for any given date after training
6
DATASET
● Process of selecting a subset of relevant features for use in model construction.
● Feature selection methods include and exclude attributes present in the data without
changing them.
● Here, in our case ‘Date’,‘High’ and ‘Low’ attributes are dropped.
7
FEATURE IMPORTANCE
Dropped
● Process of selecting a subset of relevant features for use in model construction.
● Feature selection methods include and exclude attributes present in the data without
changing them.
● Here, in our case ‘Date’,‘High’ and ‘Low’ attributes are dropped.
8
FEATURE IMPORTANCE
Denormalized Dataset
9
Normalized Dataset
10
SO, WHAT ARE THE DIFFERENT MODELS
AVAILABLE?
APPROACHES TO SOLVE
● Linear Regression
● Recurrent Neural Network + LSTM
11
LINEAR REGRESSION
● Linear regression is an
approach for predictive
modeling to showcase the
relationship between a scalar
dependent variable ‘Y’, (in
our case, we have ‘Close’
attribute) and one or more
independent variables ‘X’
(‘Trading day’ attribute).
12
Close
trading days
Now, you can predict Closing
price along this line
LINEAR REGRESSION
13
Weights Bias
Predicted
Close Vector
Day
Vector
Initially, we will take some random weights and bias to initialize.
This equation
represents this line
LINEAR REGRESSION
14
● Initially, we have some
random weight and bias, so
it will look like this.
● Next step, calculate the
error.
LINEAR REGRESSION
15
● Initially, we have some
random weight and bias, so
it will look like this.
● Next step, calculate the
error.
Mean Squared Error
LINEAR REGRESSION
LINEAR REGRESSION
17
Mean Squared Error
● we keep on repeating this
process till we achieve the
minimum error.
Weight = Weight - (n x Error )
Bias = Bias - (n x Error )
LINEAR REGRESSION
RECURRENT NEURAL NETWORK
Information related to
previous predicted
Closing price
Today’s opening
price
Current state
hidden layer
output
Predicted
Closing price
Current state
Hidden layer
output
RECURRENT NEURAL NETWORK
So, it does not allow it to learn from past data as was expected.
Vanishing Gradient Problem
Less effect on the current calculation of weight
Day1
Prediction
Day2
Prediction
Day3
Prediction
Day4
Prediction
Day5
Prediction
Day6
Prediction
Day7
Prediction
RECURRENT NEURAL NETWORK + LSTM
LSTM (Long Short Term Memory)
LSTMs are explicitly designed to
avoid the long-term dependency
problem. Remembering
information for long periods of
time is practically their default
behavior, not something they
struggle to learn! Recurrent Neural Network
LSTM
RECURRENT NEURAL NETWORK + LSTM
LSTM (How it works?)
● The key to LSTM is the Memory cell
state which stores the information. It runs
straight down the entire chain.
● LSTM has the ability to remove or add
information to these cell state, regulated
by structures called gates.
● Gates are composed of sigmoid neural
net layer and a multiplication operation.
● Sigmoid layer outputs zero or one.
Sigmoid
layer
Multiplication
operation
RECURRENT NEURAL NETWORK + LSTM
LSTM (How it works?)
● There are three gates to protect and
control the cell states.
○ forget gate
○ input gate
○ output gate
forget gate
Input gate Output gate
RECURRENT NEURAL NETWORK + LSTM
LSTM (How it works?)
● First, forget gate looks at ht-1
and xt
and
outputs a number between 0 and 1.
● 1 represents “keep the information” and 0
represents “remove the information”.
Current closing
Price
Past information
of this state
RECURRENT NEURAL NETWORK + LSTM
LSTM (How it works?)
● First, forget gate looks at ht-1
and xt
and
outputs a number between 0 and 1.
● 1 represents “keep the information” and 0
represents “remove the information”.
● Second, input gate decides which values
will be updated, in order to do that a tanh
layer creates a vector of Ct
(bar).
● Combining these two, create an update to
the state.
required for
updating the
weight
RECURRENT NEURAL NETWORK + LSTM
LSTM (How it works?)
● First, forget gate looks at ht-1
and xt
and
outputs a number between 0 and 1.
● 1 represents “keep the information” and 0
represents “remove the information”.
● Second, input gate decides which values
will be updated, in order to do that a tanh
layer creates a vector of Ct
(bar).
● Combining these two, create an update to
the state.
● Third, It’s time to update the old cell Ct-1
to
Ct.
New Cell
state
RECURRENT NEURAL NETWORK + LSTM
LSTM (How it works?)
● First, forget gate looks at ht-1
and xt
and
outputs a number between 0 and 1.
● 1 represents “keep the information” and 0
represents “remove the information”.
● Second, input gate decides which values
will be updated, in order to do that a tanh
layer creates a vector of Ct
(bar).
● Combining these two, create an update to
the state.
● Third, It’s time to update the old cell Ct-1
to
Ct.
● Fourth, output will based on our cell
state.
● a sigmoid layer will decides what parts of
the cell state we’re going to output.
Output
Layer
Current
hidden layer
information
RECURRENT NEURAL NETWORK + LSTM
CONCLUSION
Linear Regression
Recurrent Neural Network + LSTM
● Model does not fit properly
● Model fits properly
Stock price prediction is a complex problem and difficult
to predict.
Machine learning model doesn’t perform well as
compared to Deep Learning model.
30
THANK YOU!

Contenu connexe

Tendances

STOCK MARKET PRREDICTION WITH FEATURE EXTRACTION USING NEURAL NETWORK TEHNIQUE
STOCK MARKET PRREDICTION WITH FEATURE EXTRACTION USING NEURAL NETWORK TEHNIQUESTOCK MARKET PRREDICTION WITH FEATURE EXTRACTION USING NEURAL NETWORK TEHNIQUE
STOCK MARKET PRREDICTION WITH FEATURE EXTRACTION USING NEURAL NETWORK TEHNIQUERicha Handa
 
STOCK MARKET PREDICTION USING MACHINE LEARNING METHODS
STOCK MARKET PREDICTION USING MACHINE LEARNING METHODSSTOCK MARKET PREDICTION USING MACHINE LEARNING METHODS
STOCK MARKET PREDICTION USING MACHINE LEARNING METHODSIAEME Publication
 
stock market prediction
stock market predictionstock market prediction
stock market predictionSRIGINES
 
Stock Price Prediction
Stock Price PredictionStock Price Prediction
Stock Price PredictionManisha Mishra
 
IRJET- Future Stock Price Prediction using LSTM Machine Learning Algorithm
IRJET-  	  Future Stock Price Prediction using LSTM Machine Learning AlgorithmIRJET-  	  Future Stock Price Prediction using LSTM Machine Learning Algorithm
IRJET- Future Stock Price Prediction using LSTM Machine Learning AlgorithmIRJET Journal
 
Stock Market Price Prediction Using Technical Analysis
Stock Market Price Prediction Using Technical AnalysisStock Market Price Prediction Using Technical Analysis
Stock Market Price Prediction Using Technical AnalysisASHEESHVERMA6
 
Machine learning: Stock Price Prediction
Machine learning: Stock Price PredictionMachine learning: Stock Price Prediction
Machine learning: Stock Price Predictioneurosigdoc acm
 
Google Stock Price Forecasting
Google Stock Price ForecastingGoogle Stock Price Forecasting
Google Stock Price ForecastingArkaprava Kundu
 
Stock Market Analysis and Prediction
Stock Market Analysis and PredictionStock Market Analysis and Prediction
Stock Market Analysis and PredictionAnil Shrestha
 
Credit card fraud detection
Credit card fraud detectionCredit card fraud detection
Credit card fraud detectionkalpesh1908
 
Stock market prediction using data mining
Stock market prediction using data miningStock market prediction using data mining
Stock market prediction using data miningShivakumarSoppannavar
 
Predicting house price
Predicting house pricePredicting house price
Predicting house priceDivya Tiwari
 
Stock Market Prediction.pptx
Stock Market Prediction.pptxStock Market Prediction.pptx
Stock Market Prediction.pptxRastogiAman
 
Machine learning prediction of stock markets
Machine learning prediction of stock marketsMachine learning prediction of stock markets
Machine learning prediction of stock marketsNikola Milosevic
 
Diabetes prediction using machine learning
Diabetes prediction using machine learningDiabetes prediction using machine learning
Diabetes prediction using machine learningdataalcott
 
Deep Learning for Stock Prediction
Deep Learning for Stock PredictionDeep Learning for Stock Prediction
Deep Learning for Stock PredictionLim Zhi Yuan (Zane)
 

Tendances (20)

STOCK MARKET PRREDICTION WITH FEATURE EXTRACTION USING NEURAL NETWORK TEHNIQUE
STOCK MARKET PRREDICTION WITH FEATURE EXTRACTION USING NEURAL NETWORK TEHNIQUESTOCK MARKET PRREDICTION WITH FEATURE EXTRACTION USING NEURAL NETWORK TEHNIQUE
STOCK MARKET PRREDICTION WITH FEATURE EXTRACTION USING NEURAL NETWORK TEHNIQUE
 
STOCK MARKET PREDICTION USING MACHINE LEARNING METHODS
STOCK MARKET PREDICTION USING MACHINE LEARNING METHODSSTOCK MARKET PREDICTION USING MACHINE LEARNING METHODS
STOCK MARKET PREDICTION USING MACHINE LEARNING METHODS
 
stock market prediction
stock market predictionstock market prediction
stock market prediction
 
STOCK MARKET PREDICTION
STOCK MARKET PREDICTIONSTOCK MARKET PREDICTION
STOCK MARKET PREDICTION
 
Stock Price Prediction
Stock Price PredictionStock Price Prediction
Stock Price Prediction
 
IRJET- Future Stock Price Prediction using LSTM Machine Learning Algorithm
IRJET-  	  Future Stock Price Prediction using LSTM Machine Learning AlgorithmIRJET-  	  Future Stock Price Prediction using LSTM Machine Learning Algorithm
IRJET- Future Stock Price Prediction using LSTM Machine Learning Algorithm
 
Stock Market Price Prediction Using Technical Analysis
Stock Market Price Prediction Using Technical AnalysisStock Market Price Prediction Using Technical Analysis
Stock Market Price Prediction Using Technical Analysis
 
STOCK MARKET PREDICTION
STOCK MARKET PREDICTIONSTOCK MARKET PREDICTION
STOCK MARKET PREDICTION
 
Machine learning: Stock Price Prediction
Machine learning: Stock Price PredictionMachine learning: Stock Price Prediction
Machine learning: Stock Price Prediction
 
Google Stock Price Forecasting
Google Stock Price ForecastingGoogle Stock Price Forecasting
Google Stock Price Forecasting
 
Stock Market Analysis and Prediction
Stock Market Analysis and PredictionStock Market Analysis and Prediction
Stock Market Analysis and Prediction
 
Credit card fraud detection
Credit card fraud detectionCredit card fraud detection
Credit card fraud detection
 
Stock market prediction using data mining
Stock market prediction using data miningStock market prediction using data mining
Stock market prediction using data mining
 
Predicting house price
Predicting house pricePredicting house price
Predicting house price
 
Lstm
LstmLstm
Lstm
 
Stock Market Prediction.pptx
Stock Market Prediction.pptxStock Market Prediction.pptx
Stock Market Prediction.pptx
 
Machine learning prediction of stock markets
Machine learning prediction of stock marketsMachine learning prediction of stock markets
Machine learning prediction of stock markets
 
Diabetes prediction using machine learning
Diabetes prediction using machine learningDiabetes prediction using machine learning
Diabetes prediction using machine learning
 
Deep Learning for Stock Prediction
Deep Learning for Stock PredictionDeep Learning for Stock Prediction
Deep Learning for Stock Prediction
 
Housing price prediction
Housing price predictionHousing price prediction
Housing price prediction
 

Similaire à Stock price prediction using Neural Net

IRJET- Stock Price Prediction using Long Short Term Memory
IRJET-  	  Stock Price Prediction using Long Short Term MemoryIRJET-  	  Stock Price Prediction using Long Short Term Memory
IRJET- Stock Price Prediction using Long Short Term MemoryIRJET Journal
 
Applications of Machine Learning in High Frequency Trading
Applications of Machine Learning in High Frequency TradingApplications of Machine Learning in High Frequency Trading
Applications of Machine Learning in High Frequency TradingAyan Sengupta
 
08 neural networks
08 neural networks08 neural networks
08 neural networksankit_ppt
 
IRJET- Stock Market Cost Forecasting by Recurrent Neural Network on Long Shor...
IRJET- Stock Market Cost Forecasting by Recurrent Neural Network on Long Shor...IRJET- Stock Market Cost Forecasting by Recurrent Neural Network on Long Shor...
IRJET- Stock Market Cost Forecasting by Recurrent Neural Network on Long Shor...IRJET Journal
 
Predictive model based on Supervised ML
Predictive model based on Supervised MLPredictive model based on Supervised ML
Predictive model based on Supervised MLUmeshchandraYadav5
 
IRJET- Data Visualization and Stock Market and Prediction
IRJET- Data Visualization and Stock Market and PredictionIRJET- Data Visualization and Stock Market and Prediction
IRJET- Data Visualization and Stock Market and PredictionIRJET Journal
 
Neuromation.io AI Ukraine Presentation
Neuromation.io AI Ukraine PresentationNeuromation.io AI Ukraine Presentation
Neuromation.io AI Ukraine PresentationBohdan Klimenko
 
solidity programming solidity programming
solidity programming solidity programmingsolidity programming solidity programming
solidity programming solidity programmingMohan Kumar Ch
 
Dataworkz odsc london 2018
Dataworkz odsc london 2018Dataworkz odsc london 2018
Dataworkz odsc london 2018Olaf de Leeuw
 
The Validity of CNN to Time-Series Forecasting Problem
The Validity of CNN to Time-Series Forecasting ProblemThe Validity of CNN to Time-Series Forecasting Problem
The Validity of CNN to Time-Series Forecasting ProblemMasaharu Kinoshita
 
Application of Deep Learning to Asset Management
Application of Deep Learning to Asset ManagementApplication of Deep Learning to Asset Management
Application of Deep Learning to Asset ManagementIsaac Buitrago
 
Refactoring Applications for the XK7 and Future Hybrid Architectures
Refactoring Applications for the XK7 and Future Hybrid ArchitecturesRefactoring Applications for the XK7 and Future Hybrid Architectures
Refactoring Applications for the XK7 and Future Hybrid ArchitecturesJeff Larkin
 
Recurrent Neural Networks
Recurrent Neural NetworksRecurrent Neural Networks
Recurrent Neural NetworksSharath TS
 
Basics in algorithms and data structure
Basics in algorithms and data structure Basics in algorithms and data structure
Basics in algorithms and data structure Eman magdy
 
Recurrent Neural Networks for Text Analysis
Recurrent Neural Networks for Text AnalysisRecurrent Neural Networks for Text Analysis
Recurrent Neural Networks for Text Analysisodsc
 

Similaire à Stock price prediction using Neural Net (20)

IRJET- Stock Price Prediction using Long Short Term Memory
IRJET-  	  Stock Price Prediction using Long Short Term MemoryIRJET-  	  Stock Price Prediction using Long Short Term Memory
IRJET- Stock Price Prediction using Long Short Term Memory
 
Applications of Machine Learning in High Frequency Trading
Applications of Machine Learning in High Frequency TradingApplications of Machine Learning in High Frequency Trading
Applications of Machine Learning in High Frequency Trading
 
Seminar.pptx
Seminar.pptxSeminar.pptx
Seminar.pptx
 
08 neural networks
08 neural networks08 neural networks
08 neural networks
 
IRJET- Stock Market Cost Forecasting by Recurrent Neural Network on Long Shor...
IRJET- Stock Market Cost Forecasting by Recurrent Neural Network on Long Shor...IRJET- Stock Market Cost Forecasting by Recurrent Neural Network on Long Shor...
IRJET- Stock Market Cost Forecasting by Recurrent Neural Network on Long Shor...
 
Predictive model based on Supervised ML
Predictive model based on Supervised MLPredictive model based on Supervised ML
Predictive model based on Supervised ML
 
MLProjectReport
MLProjectReportMLProjectReport
MLProjectReport
 
IRJET- Data Visualization and Stock Market and Prediction
IRJET- Data Visualization and Stock Market and PredictionIRJET- Data Visualization and Stock Market and Prediction
IRJET- Data Visualization and Stock Market and Prediction
 
Neuromation.io AI Ukraine Presentation
Neuromation.io AI Ukraine PresentationNeuromation.io AI Ukraine Presentation
Neuromation.io AI Ukraine Presentation
 
solidity programming solidity programming
solidity programming solidity programmingsolidity programming solidity programming
solidity programming solidity programming
 
Dataworkz odsc london 2018
Dataworkz odsc london 2018Dataworkz odsc london 2018
Dataworkz odsc london 2018
 
The Validity of CNN to Time-Series Forecasting Problem
The Validity of CNN to Time-Series Forecasting ProblemThe Validity of CNN to Time-Series Forecasting Problem
The Validity of CNN to Time-Series Forecasting Problem
 
Network predictive analysis
Network predictive analysisNetwork predictive analysis
Network predictive analysis
 
Rnn presentation 2
Rnn presentation 2Rnn presentation 2
Rnn presentation 2
 
Application of Deep Learning to Asset Management
Application of Deep Learning to Asset ManagementApplication of Deep Learning to Asset Management
Application of Deep Learning to Asset Management
 
Icbai 2018 ver_1
Icbai 2018 ver_1Icbai 2018 ver_1
Icbai 2018 ver_1
 
Refactoring Applications for the XK7 and Future Hybrid Architectures
Refactoring Applications for the XK7 and Future Hybrid ArchitecturesRefactoring Applications for the XK7 and Future Hybrid Architectures
Refactoring Applications for the XK7 and Future Hybrid Architectures
 
Recurrent Neural Networks
Recurrent Neural NetworksRecurrent Neural Networks
Recurrent Neural Networks
 
Basics in algorithms and data structure
Basics in algorithms and data structure Basics in algorithms and data structure
Basics in algorithms and data structure
 
Recurrent Neural Networks for Text Analysis
Recurrent Neural Networks for Text AnalysisRecurrent Neural Networks for Text Analysis
Recurrent Neural Networks for Text Analysis
 

Dernier

Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024The Digital Insurer
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilV3cube
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsRoshan Dwivedi
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 

Dernier (20)

Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of Brazil
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 

Stock price prediction using Neural Net

  • 2. INTRODUCTION ● A stock market is a public market for the trading of company stock. ● Stock market allows us to buy and sell units of stocks (ownership) of a company. ● If the company’s profits go up,then we own some of the profits and if they go down, then we lose profits with them. ● If more sellers than buyers, stock prices tend to fall. Conversely, when more buyers than sellers, stock prices tend to rise
  • 3. INTRODUCTION ProfitLoss Red is purchased stock Green is sold stock
  • 4. HOW TO READ A STOCK TABLE? Date- day on which the stock is traded High- high is the highest price at which a stock traded during the course of the day Close- refers to the last price at which a stock trades during a regular trading session Open- price of the first trade for any listed stock is its daily opening price. Low- lowest price at which a stock trades over the course of a trading day. Volume- the number of shares or contracts traded in a security or an entire market during a given period of time
  • 5. ● To accurately predict the future closing value of a given stock across a given period of time in the future. ● Use different machine learning and deep learning models available and compare them in terms of graphical analysis. 5 PROBLEM STATEMENT Actual Close Predicted Close Today’s Close price Predicted Close price of Next day
  • 6. The data used in this project is of the Alphabet Inc3 from January 1, 2005 to July 30, 2017, this is a series of data points indexed in time order or a time series. Our goal was to predict the closing price for any given date after training 6 DATASET
  • 7. ● Process of selecting a subset of relevant features for use in model construction. ● Feature selection methods include and exclude attributes present in the data without changing them. ● Here, in our case ‘Date’,‘High’ and ‘Low’ attributes are dropped. 7 FEATURE IMPORTANCE Dropped
  • 8. ● Process of selecting a subset of relevant features for use in model construction. ● Feature selection methods include and exclude attributes present in the data without changing them. ● Here, in our case ‘Date’,‘High’ and ‘Low’ attributes are dropped. 8 FEATURE IMPORTANCE
  • 10. 10 SO, WHAT ARE THE DIFFERENT MODELS AVAILABLE?
  • 11. APPROACHES TO SOLVE ● Linear Regression ● Recurrent Neural Network + LSTM 11
  • 12. LINEAR REGRESSION ● Linear regression is an approach for predictive modeling to showcase the relationship between a scalar dependent variable ‘Y’, (in our case, we have ‘Close’ attribute) and one or more independent variables ‘X’ (‘Trading day’ attribute). 12 Close trading days Now, you can predict Closing price along this line
  • 13. LINEAR REGRESSION 13 Weights Bias Predicted Close Vector Day Vector Initially, we will take some random weights and bias to initialize. This equation represents this line
  • 14. LINEAR REGRESSION 14 ● Initially, we have some random weight and bias, so it will look like this. ● Next step, calculate the error.
  • 15. LINEAR REGRESSION 15 ● Initially, we have some random weight and bias, so it will look like this. ● Next step, calculate the error. Mean Squared Error
  • 17. LINEAR REGRESSION 17 Mean Squared Error ● we keep on repeating this process till we achieve the minimum error. Weight = Weight - (n x Error ) Bias = Bias - (n x Error )
  • 19. RECURRENT NEURAL NETWORK Information related to previous predicted Closing price Today’s opening price Current state hidden layer output Predicted Closing price Current state Hidden layer output
  • 20. RECURRENT NEURAL NETWORK So, it does not allow it to learn from past data as was expected. Vanishing Gradient Problem Less effect on the current calculation of weight Day1 Prediction Day2 Prediction Day3 Prediction Day4 Prediction Day5 Prediction Day6 Prediction Day7 Prediction
  • 21. RECURRENT NEURAL NETWORK + LSTM LSTM (Long Short Term Memory) LSTMs are explicitly designed to avoid the long-term dependency problem. Remembering information for long periods of time is practically their default behavior, not something they struggle to learn! Recurrent Neural Network LSTM
  • 22. RECURRENT NEURAL NETWORK + LSTM LSTM (How it works?) ● The key to LSTM is the Memory cell state which stores the information. It runs straight down the entire chain. ● LSTM has the ability to remove or add information to these cell state, regulated by structures called gates. ● Gates are composed of sigmoid neural net layer and a multiplication operation. ● Sigmoid layer outputs zero or one. Sigmoid layer Multiplication operation
  • 23. RECURRENT NEURAL NETWORK + LSTM LSTM (How it works?) ● There are three gates to protect and control the cell states. ○ forget gate ○ input gate ○ output gate forget gate Input gate Output gate
  • 24. RECURRENT NEURAL NETWORK + LSTM LSTM (How it works?) ● First, forget gate looks at ht-1 and xt and outputs a number between 0 and 1. ● 1 represents “keep the information” and 0 represents “remove the information”. Current closing Price Past information of this state
  • 25. RECURRENT NEURAL NETWORK + LSTM LSTM (How it works?) ● First, forget gate looks at ht-1 and xt and outputs a number between 0 and 1. ● 1 represents “keep the information” and 0 represents “remove the information”. ● Second, input gate decides which values will be updated, in order to do that a tanh layer creates a vector of Ct (bar). ● Combining these two, create an update to the state. required for updating the weight
  • 26. RECURRENT NEURAL NETWORK + LSTM LSTM (How it works?) ● First, forget gate looks at ht-1 and xt and outputs a number between 0 and 1. ● 1 represents “keep the information” and 0 represents “remove the information”. ● Second, input gate decides which values will be updated, in order to do that a tanh layer creates a vector of Ct (bar). ● Combining these two, create an update to the state. ● Third, It’s time to update the old cell Ct-1 to Ct. New Cell state
  • 27. RECURRENT NEURAL NETWORK + LSTM LSTM (How it works?) ● First, forget gate looks at ht-1 and xt and outputs a number between 0 and 1. ● 1 represents “keep the information” and 0 represents “remove the information”. ● Second, input gate decides which values will be updated, in order to do that a tanh layer creates a vector of Ct (bar). ● Combining these two, create an update to the state. ● Third, It’s time to update the old cell Ct-1 to Ct. ● Fourth, output will based on our cell state. ● a sigmoid layer will decides what parts of the cell state we’re going to output. Output Layer Current hidden layer information
  • 29. CONCLUSION Linear Regression Recurrent Neural Network + LSTM ● Model does not fit properly ● Model fits properly Stock price prediction is a complex problem and difficult to predict. Machine learning model doesn’t perform well as compared to Deep Learning model.