SlideShare a Scribd company logo
Time Series Forecasting of Amazon Stock Prices using
Neural Networks
By
Under the Esteemed Guidance of
Dr. S. Shiva Kumar
Head of Department
Department of CSE -AIML
Malla Reddy Engineering College( Autonomous)
Maisammaguda, Dhulapally(Po), Via Kompally,
Secunderabad-500100
1
ALTHAF JAFFERY MD 20J41A6602
E HARI PRASAD 21J45A6601
K ANIL KUMAR 21J45A6603
V VAMSI 21J45A6606
mazon Stocks Prediction
Using Neural Networks
2
3
 Introduction
 Objectives
 Existing System
 Proposed System
 Methodology
 References
 Conclusion
4
why predicting stocks…?
The successful prediction of a
stock's future price could yield
significant profit. The efficient-
market hypothesis suggests that
stock prices reflect all currently
available information and any price
changes that are not based on newly
revealed information thus are
inherently unpredictable
5
Objective
• Stock market prediction is the act
of trying to determine the future value of
a company stock or other financial
instrument traded on an exchange. The
successful prediction of a stock's future
price could yield significant profit.
• This project main goal is to study and
apply deep learning techniques to the
stock market in order to predict stock
behavior and thus act on those
predictions to avoid investment risk and
generate profit.
6
• The stock market prediction problem has drawn a lot of interest from
academics and industry professionals since it is crucial yet difficult.
• Due to the complexity and ambiguity of the natural language used in the
news, conventional machine learning models frequently fail to understand
the substance of financial news.
• An RNN-based ensemble model for financial market prediction using news
releases was reported in this study.
• The sliding window approach and sentiment analysis were used to extract
the most representative characteristics from historical data and financial
news.
• Compared to conventional pre-processing techniques (such bag-of-words
and TF-IDF), which extract tens of thousands of features, this significantly
decreased the number of dimensions.
Existing System:
7
Data gathered from a variety of sources make up the
proposed project. The data will be examined for accuracy.
The cleansed data will be created for testing and training
purposes. The machine learning approach is used to generate
the model, The ideal one serves as a template. The new stock
price is predicted using the data model.
Proposed System:
The LSTM model
Long short-term memory (LSTM) is an artificial recurrent
neural network (RNN) architecture used in the field of deep
learning. Unlike standard feedforward neural networks,
LSTM has feedback connections. It can not only process single
data points , but also entire sequences of data.
LSTM models are able to store information over a period of
time. This characteristic is extremely useful when we deal
with Time-Series or Sequential Data.
8
Methodology
The LSTM algorithm has been widely used in sequence
prediction research and has proven to be quite
successful.
Data Collection and Preprocessing:
Acquiring historical Amazon stock price data in CSV
format. Uploaded the dataset into Jupyter Notebook
environment. Uses Pandas to load and preprocess the
data. This includes handling missing values, outliers,
and data normalization.
Data Exploration:
Conducts exploratory data analysis (EDA) to gain
insights into the dataset. Visualize key statistics and
trends in the Amazon stock price data using
Matplotlib.pyplot.
9
Neural Network Architecture:
The LSTM-based neural network architecture
using the Torch and Torch.nn libraries. Specify the
number of LSTM layers, the number of neurons in
each layer, and the output layer for prediction.
Data Splitting:
Splits the dataset into training, validation, and test
sets.
Typically, use a larger portion for training (e.g., 70-
80%) and the remaining for validation and testing.
Model Training:
Trains the LSTM model using the training data.
Utilize the Torch library for model training.
Experiment with different hyperparameters (e.g.,
learning rate, batch size, epochs) to optimize the
model's performance.
10
Model Testing:
Evaluates the trained LSTM model on the test
dataset, which the model hasn't seen during
training.
Calculates and displays performance metrics such
as MAE, MSE, RMSE on the test set.
Prediction and Visualization:
Makes predictions on future Amazon stock prices
using the trained LSTM model.
Plots the predicted stock price trends along with
actual data using Matplotlib.pyplot.
11
Future Scope
Real-Time Data Integration: Modify the project to fetch real-time stock
price data from reliable sources and continuously update the model to
make daily predictions.
Risk Assessment: Integrate risk assessment metrics and strategies into
the present project. Implementing tools to calculate Value at Risk (VaR) or
Conditional Value at Risk (CVaR) to measure the potential downside risk.
Automated Trading: Understanding of financial markets and risk
management, the model can be trained and explored to automating
trading strategies based on the model's predictions. However, this should
be approached cautiously and ideally with the help of a financial advisor.
12
• Our project successfully demonstrated the application of LSTM
neural networks for Amazon stock price prediction.
• We leveraged Python libraries and data preprocessing
techniques to develop a model capable of generating forecasts.
• While predictive modeling can be a valuable tool for traders and
investors, it's important to use such models in conjunction with
other investment strategies and risk management techniques,
acknowledging that financial markets are inherently uncertain
and subject to various influences.
Conclusion:
13
[1] Raymond Chiong , Zongwen Fan, Zhongyi Hu, and Sandeep Dhakal “A Novel
Ensemble Learning Approach for Stock Market Prediction Based on Sentiment Analysis
and the Sliding Window Method”,2022.
[2] T. Fischer and C. Krauss, “Deep learning with long short-term memory 600
networks for financial market predictions,” Eur. J. Oper. Res., vol. 270, 601 no. 2, pp.
654–669, Dec. 2017. 602
[3] X. Wu, Q. Ye, H. Hong, and Y. Li, “Stock selection model based on 603 machine
learning with wisdom of experts and crowds,” IEEE Intell. 604 Syst., vol. 35, no. 2, pp.
54–64, Mar. 2020. 605 [4] M. Jiang, L. Jia, Z. Chen, and W. Chen, “The two-stage machine
606 learning ensemble models for stock price prediction by combining 607 mode
decomposition, extreme learning machine and improved har- 608 mony search
algorithm,” Ann. Oper. Res., vol. 309, pp. 553–585, 609 Jun. 2020. 610
REFERENCES
14
Thank You All

More Related Content

PPTX
MPS PPT_1 For Long Short Term Memory For Stock Price Prediction
PDF
STOCK MARKET PREDICTION USING NEURAL NETWORKS
PDF
Stock price prediction using stock eod of day price
PPTX
stock price prediction using machine learning
PPTX
Mini Project With Seminar In LSTM For Stock Price Prediction
PPTX
Final PPT.pptx
PPTX
flowchart ON DEEP LEARNING SPP
PPTX
stock prise prediction.pptx
MPS PPT_1 For Long Short Term Memory For Stock Price Prediction
STOCK MARKET PREDICTION USING NEURAL NETWORKS
Stock price prediction using stock eod of day price
stock price prediction using machine learning
Mini Project With Seminar In LSTM For Stock Price Prediction
Final PPT.pptx
flowchart ON DEEP LEARNING SPP
stock prise prediction.pptx

Similar to Batch_12_TSA_using_LSTM machine learning project (20)

PPTX
LSTM and Neuralprohet for Share Price Forecasting
PDF
IRJET- Future Stock Price Prediction using LSTM Machine Learning Algorithm
PDF
IRJET- Data Visualization and Stock Market and Prediction
PDF
STOCK MARKET PREDICTION AND ANALYSIS USING MACHINE LEARNING ALGORITHMS
PPTX
LSTM based method oh ML.pptx
PDF
Stock Market Price Prediction Using Technical Analysis
PDF
STOCK PRICE PREDICTION USING ML TECHNIQUES
PPTX
Stock Price Prediction.pptxshsjjejejejejejej
PDF
The Validity of CNN to Time-Series Forecasting Problem
PPTX
stockmarket_analysis_and _prediction_using_lstm
PDF
Stock Market Prediction Analysis
PDF
IRJET- Stock Price Prediction using Long Short Term Memory
PPTX
ML Project OF Price pridiction Presentation.pptx
PDF
Stock Market Prediction.pptx
PDF
IRJET - Stock Market Analysis and Prediction using Deep Learning
PDF
Rachit Mishra_stock prediction_report
PDF
IRJET - Stock Market Analysis and Prediction
PDF
Predicting Stock Price Movements with Low Power Consumption LSTM
PDF
An improved convolutional recurrent neural network for stock price forecasting
PDF
Icbai 2018 ver_1
LSTM and Neuralprohet for Share Price Forecasting
IRJET- Future Stock Price Prediction using LSTM Machine Learning Algorithm
IRJET- Data Visualization and Stock Market and Prediction
STOCK MARKET PREDICTION AND ANALYSIS USING MACHINE LEARNING ALGORITHMS
LSTM based method oh ML.pptx
Stock Market Price Prediction Using Technical Analysis
STOCK PRICE PREDICTION USING ML TECHNIQUES
Stock Price Prediction.pptxshsjjejejejejejej
The Validity of CNN to Time-Series Forecasting Problem
stockmarket_analysis_and _prediction_using_lstm
Stock Market Prediction Analysis
IRJET- Stock Price Prediction using Long Short Term Memory
ML Project OF Price pridiction Presentation.pptx
Stock Market Prediction.pptx
IRJET - Stock Market Analysis and Prediction using Deep Learning
Rachit Mishra_stock prediction_report
IRJET - Stock Market Analysis and Prediction
Predicting Stock Price Movements with Low Power Consumption LSTM
An improved convolutional recurrent neural network for stock price forecasting
Icbai 2018 ver_1
Ad

Recently uploaded (20)

PDF
cuic standard and advanced reporting.pdf
PPT
Teaching material agriculture food technology
PDF
Assigned Numbers - 2025 - Bluetooth® Document
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Getting Started with Data Integration: FME Form 101
PPTX
SOPHOS-XG Firewall Administrator PPT.pptx
PDF
gpt5_lecture_notes_comprehensive_20250812015547.pdf
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Encapsulation theory and applications.pdf
PDF
Machine learning based COVID-19 study performance prediction
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Electronic commerce courselecture one. Pdf
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
NewMind AI Weekly Chronicles - August'25-Week II
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
cuic standard and advanced reporting.pdf
Teaching material agriculture food technology
Assigned Numbers - 2025 - Bluetooth® Document
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Advanced methodologies resolving dimensionality complications for autism neur...
Getting Started with Data Integration: FME Form 101
SOPHOS-XG Firewall Administrator PPT.pptx
gpt5_lecture_notes_comprehensive_20250812015547.pdf
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
MIND Revenue Release Quarter 2 2025 Press Release
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Encapsulation theory and applications.pdf
Machine learning based COVID-19 study performance prediction
Diabetes mellitus diagnosis method based random forest with bat algorithm
Electronic commerce courselecture one. Pdf
Encapsulation_ Review paper, used for researhc scholars
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Reach Out and Touch Someone: Haptics and Empathic Computing
NewMind AI Weekly Chronicles - August'25-Week II
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Ad

Batch_12_TSA_using_LSTM machine learning project

  • 1. Time Series Forecasting of Amazon Stock Prices using Neural Networks By Under the Esteemed Guidance of Dr. S. Shiva Kumar Head of Department Department of CSE -AIML Malla Reddy Engineering College( Autonomous) Maisammaguda, Dhulapally(Po), Via Kompally, Secunderabad-500100 1 ALTHAF JAFFERY MD 20J41A6602 E HARI PRASAD 21J45A6601 K ANIL KUMAR 21J45A6603 V VAMSI 21J45A6606
  • 2. mazon Stocks Prediction Using Neural Networks 2
  • 3. 3  Introduction  Objectives  Existing System  Proposed System  Methodology  References  Conclusion
  • 4. 4 why predicting stocks…? The successful prediction of a stock's future price could yield significant profit. The efficient- market hypothesis suggests that stock prices reflect all currently available information and any price changes that are not based on newly revealed information thus are inherently unpredictable
  • 5. 5 Objective • Stock market prediction is the act of trying to determine the future value of a company stock or other financial instrument traded on an exchange. The successful prediction of a stock's future price could yield significant profit. • This project main goal is to study and apply deep learning techniques to the stock market in order to predict stock behavior and thus act on those predictions to avoid investment risk and generate profit.
  • 6. 6 • The stock market prediction problem has drawn a lot of interest from academics and industry professionals since it is crucial yet difficult. • Due to the complexity and ambiguity of the natural language used in the news, conventional machine learning models frequently fail to understand the substance of financial news. • An RNN-based ensemble model for financial market prediction using news releases was reported in this study. • The sliding window approach and sentiment analysis were used to extract the most representative characteristics from historical data and financial news. • Compared to conventional pre-processing techniques (such bag-of-words and TF-IDF), which extract tens of thousands of features, this significantly decreased the number of dimensions. Existing System:
  • 7. 7 Data gathered from a variety of sources make up the proposed project. The data will be examined for accuracy. The cleansed data will be created for testing and training purposes. The machine learning approach is used to generate the model, The ideal one serves as a template. The new stock price is predicted using the data model. Proposed System: The LSTM model Long short-term memory (LSTM) is an artificial recurrent neural network (RNN) architecture used in the field of deep learning. Unlike standard feedforward neural networks, LSTM has feedback connections. It can not only process single data points , but also entire sequences of data. LSTM models are able to store information over a period of time. This characteristic is extremely useful when we deal with Time-Series or Sequential Data.
  • 8. 8 Methodology The LSTM algorithm has been widely used in sequence prediction research and has proven to be quite successful. Data Collection and Preprocessing: Acquiring historical Amazon stock price data in CSV format. Uploaded the dataset into Jupyter Notebook environment. Uses Pandas to load and preprocess the data. This includes handling missing values, outliers, and data normalization. Data Exploration: Conducts exploratory data analysis (EDA) to gain insights into the dataset. Visualize key statistics and trends in the Amazon stock price data using Matplotlib.pyplot.
  • 9. 9 Neural Network Architecture: The LSTM-based neural network architecture using the Torch and Torch.nn libraries. Specify the number of LSTM layers, the number of neurons in each layer, and the output layer for prediction. Data Splitting: Splits the dataset into training, validation, and test sets. Typically, use a larger portion for training (e.g., 70- 80%) and the remaining for validation and testing. Model Training: Trains the LSTM model using the training data. Utilize the Torch library for model training. Experiment with different hyperparameters (e.g., learning rate, batch size, epochs) to optimize the model's performance.
  • 10. 10 Model Testing: Evaluates the trained LSTM model on the test dataset, which the model hasn't seen during training. Calculates and displays performance metrics such as MAE, MSE, RMSE on the test set. Prediction and Visualization: Makes predictions on future Amazon stock prices using the trained LSTM model. Plots the predicted stock price trends along with actual data using Matplotlib.pyplot.
  • 11. 11 Future Scope Real-Time Data Integration: Modify the project to fetch real-time stock price data from reliable sources and continuously update the model to make daily predictions. Risk Assessment: Integrate risk assessment metrics and strategies into the present project. Implementing tools to calculate Value at Risk (VaR) or Conditional Value at Risk (CVaR) to measure the potential downside risk. Automated Trading: Understanding of financial markets and risk management, the model can be trained and explored to automating trading strategies based on the model's predictions. However, this should be approached cautiously and ideally with the help of a financial advisor.
  • 12. 12 • Our project successfully demonstrated the application of LSTM neural networks for Amazon stock price prediction. • We leveraged Python libraries and data preprocessing techniques to develop a model capable of generating forecasts. • While predictive modeling can be a valuable tool for traders and investors, it's important to use such models in conjunction with other investment strategies and risk management techniques, acknowledging that financial markets are inherently uncertain and subject to various influences. Conclusion:
  • 13. 13 [1] Raymond Chiong , Zongwen Fan, Zhongyi Hu, and Sandeep Dhakal “A Novel Ensemble Learning Approach for Stock Market Prediction Based on Sentiment Analysis and the Sliding Window Method”,2022. [2] T. Fischer and C. Krauss, “Deep learning with long short-term memory 600 networks for financial market predictions,” Eur. J. Oper. Res., vol. 270, 601 no. 2, pp. 654–669, Dec. 2017. 602 [3] X. Wu, Q. Ye, H. Hong, and Y. Li, “Stock selection model based on 603 machine learning with wisdom of experts and crowds,” IEEE Intell. 604 Syst., vol. 35, no. 2, pp. 54–64, Mar. 2020. 605 [4] M. Jiang, L. Jia, Z. Chen, and W. Chen, “The two-stage machine 606 learning ensemble models for stock price prediction by combining 607 mode decomposition, extreme learning machine and improved har- 608 mony search algorithm,” Ann. Oper. Res., vol. 309, pp. 553–585, 609 Jun. 2020. 610 REFERENCES