SlideShare a Scribd company logo
1 of 22
Sambhram Institute of Technology
Department of Computer Science & Engineering
Stock Market Prediction
USING
MACHINE LEARNING
Akshay R 1ST14CS010
Aravind B 1ST14CS023
Arun Kumar 1ST14CS025
Ashok S 1ST14CS027
Under the guidance of
Dr. T John Peter
H.O.D, Dept. of CSE
Agenda
Introduction
Existing Methods
Proposed System
System Design
Implementation
Abstract
Results & Discussions
Stock Market Prediction
Performance
Future Enhancement
Conclusion
Abstract
 Time series forecasting has been widely used to determine the future prices of stock, and the analysis and
modelling of finance time series importantly guide investors’ decisions and trades
 This work proposes an intelligent time series prediction system that uses sliding-window
optimization for the purpose of predicting the stock prices
 The system has a graphical user interface and functions as a stand-alone application.
 The proposed model is a promising predictive technique for highly non-linear time series, whose
patterns are difficult to capture by traditional models.
Stock Market Prediction
Introduction
 Financial markets are highly volatile and generate huge amounts of data daily
 It is the most popular financial market instrument and its value changes quickly
 Stock prices are predicted to determine the future value of companies’ stock or other
financial instruments that are marketed on financial exchanges
 However, the stock market is influenced by many factors such as political events, economic
conditions and traders’ expectation
Stock Market Prediction
What is Machine Learning
Machine Learning is the field of study that gives computers the ability to learn without being
explicitly programmed
More formally, it can defined as,
A computer program is said to learn from experience E with respect to some class of
tasks T and performance measure P, if its performance at tasks in T, as measured by P,
improves with experience E
Example: playing checkers.
E = the experience of playing many games of checkers
T = the task of playing checkers.
P = the probability that the program will win the next game.
Stock Market Prediction
Machine Learning in Stock Prediction
 The field of Machine Learning is vast and plays a key role in a wide range of critical
applications.
 The concept of Support Vector Machines (SVM) have advanced features that are
reflected in their good generalization capacity and fast computation.
 Predicting the stock market involves predicting the closing prices of a company’s
stock for any given number of days ahead.
 SVMs can be used to perform Linear Regression on previous stock data to predict
the closing prices using Time series forecasting and other optimization algorithms
Stock Market Prediction
Existing Methods
 Time series forecasting consists of a research area designed to solve various
problems, mainly in the financial area
 Support vector regression (SVR), a variant of the SVM, is typically used to solve
nonlinear regression problems by constructing the input-output mapping function.
 The least squares support vector regression (LSSVR) algorithm is a further
development of SVR and its use considerably reduces computational complexity and
increases efficiency compared to standard SVR.
 The Firefly Algorithm (FA), which is a nature-inspired metaheuristic method, has
recently performed extremely well in solving various optimization problems.
Stock Market Prediction
Disadvantages
 The existing system focuses on the stock price market in Taiwan, but does not
generalize for other markets worldwide.
 The system does not allow the import of raw data directly
 The existing system cannot be used to analyze multi-variate time series
 Lastly, the system does not have a user-interface which can be distributed as a web
app to users for personal use
Stock Market Prediction
Proposed System
 To generalize the application of the existing system, our work uses the system to
estimate other stocks in similar emerging markets and mature markets
 The system can be extended to analyze multivariate time series data and import
raw dataset directly
 Profit can be maximized even when the corporate stock market is has lower value
 The development of a web-based application has been considered to improve the
user-friendliness and usability of the expert system.
Stock Market Prediction
USE CASE DIAGRAM
1. Data is initially collected from
online sources or the stock exchange
2. The data is then used to train the
system
3. Trained model is saved
4. User views the trade exchange and
stock of a company
5. Using the model, closing prices are
predicted
Stock Market Prediction
Architecture
System Design
Architecture
Input : Company Fetch Data Plot Data
Train model
(LSSVR)
Predict Stock for n
Days
Plot Predicted
Results
Save Model
Stock Market Prediction
Data Flow Diagram
SEQUENCE DIAGRAM
1. User visits the website/webapp
2. Previously saved model is loaded
3. User requests for a company's stock
data
4. He requests for prediction to be made
5. The Stock Market Prediction System
trains a model using the data from the
database
6. The model is saved for further use
and closing price is predicted
7. Result is displayed along with graph
Stock Market Prediction
Architecture
Sequence Diagram
Implementation
Algorithm
Algorithm : StockPrediction
Input : COMP, D_RANGE, N_PRED [company, date range, n-day predictions]
Output : A vector of predicted prices and graph, RESULTS
1. data ← fetch stock for COMP in date range D_RANGE
2. plot(data)
3. train_data ← slidingWindow(data) //perform sliding window operation on data
4. RESULTS ← 0 //set accuracy vector to zeroes
5. for each day in N_PRED :
1. model ← LSSVM(train_data) //pass the training data to LSSVM
2. pred ← predict(model,day) //predict the price given model and day
3. remove first item from train_data //removing last item and adding predicted value
4. train_data ← add pred to train_data //Last In, First Out.
5. RESULTS ← add pred to RESULTS
6. end for
7. print(RESULTS)
8. plot(RESULTS)
9. return
Stock Market Prediction
Implementation
Least Squares Support Vector Regression
The least squares version of the SVM classifier is obtained by reformulating the minimization problem as
For the kernel function K(𝑥, 𝑥𝑖) one typically has the Radial Basis Function
• The LSSVR algorithm is a further development of SVR by Suykens (2001) and involves equality instead of inequality
constraints, and works with a least squares objective function.
• The LSSVR approach considerably reduces computational complexity and increases efficiency compared to standard
SVM.
• LSSVR solves linear equations instead of a quadratic programming problem
LSSVR Formulation
Stock Market Prediction
Implementation
Sliding-Window
Algorithm : slidingWindow
Input : data [stock data]
Output : A data frame of a lagged stock
data
1. LAG ← 1
2. y ← remove first LAG rows from data
3. reset row indices of y
4. x ← remove last LAG rows from data
5. train ← merge (x,y) into a dataframe
6. rename column name to x and y
7. return train
Stock Market Prediction
Time Price
1 100
2 110
3 108
4 115
5 120
Re-organizing the time series dataset this way, we obtain the
table as above, on the right
Using previous time steps as input variables and use the next
time step as the output variable, we obtain the following table on the left
X Y
? 100
100 110
110 108
108 115
115 120
120 ?
Results & Discussions Stock Market Prediction
Performance Stock Market Prediction
Performance Stock Market Prediction
Screenshot
Stock Market Prediction
Future Enhancement
• The limitation of the proposed system is its computational speed, especially with respect
to sliding-window validation as the computational cost increases with the number of
forward day predictions.
• The proposed model does not predict well for sudden changes in the trend of stock data.
• This occurs due to external factors and real-world changes affecting the stock market.
• We can overcome this by implementing Sentiment Analysis and Neural Networks to
enhance the proposed model.
• We can modify the same system to an online-learning system that adapts in real-time.
Stock Market Prediction
Conclusion
Thus, as we can see above in our proposed method, we train the data using existing
stock dataset that is available. We use this data to predict and forecast the stock price of
n-days into the future.
The average performance of the model decreases with increase in number of days, due
to unpredictable changes in trend.
The current system can update its training set as each day passes so as to detect newer
trends and behave like an online-learning system that predicts stock in real-time.
Stock Market Prediction
Thank You
Stock Market Prediction

More Related Content

What's hot

Predicting house price
Predicting house pricePredicting house price
Predicting house priceDivya Tiwari
 
Handwritten Digit Recognition(Convolutional Neural Network) PPT
Handwritten Digit Recognition(Convolutional Neural Network) PPTHandwritten Digit Recognition(Convolutional Neural Network) PPT
Handwritten Digit Recognition(Convolutional Neural Network) PPTRishabhTyagi48
 
Stock Price Trend Forecasting using Supervised Learning
Stock Price Trend Forecasting using Supervised LearningStock Price Trend Forecasting using Supervised Learning
Stock Price Trend Forecasting using Supervised LearningSharvil Katariya
 
Back propagation
Back propagationBack propagation
Back propagationNagarajan
 
I. AO* SEARCH ALGORITHM
I. AO* SEARCH ALGORITHMI. AO* SEARCH ALGORITHM
I. AO* SEARCH ALGORITHMvikas dhakane
 
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
 
Machine learning: Stock Price Prediction
Machine learning: Stock Price PredictionMachine learning: Stock Price Prediction
Machine learning: Stock Price Predictioneurosigdoc acm
 
Diabetes prediction using machine learning
Diabetes prediction using machine learningDiabetes prediction using machine learning
Diabetes prediction using machine learningdataalcott
 
Stock Market Analysis and Prediction
Stock Market Analysis and PredictionStock Market Analysis and Prediction
Stock Market Analysis and PredictionAnil Shrestha
 
Convolution Neural Network (CNN)
Convolution Neural Network (CNN)Convolution Neural Network (CNN)
Convolution Neural Network (CNN)Suraj Aavula
 
Speech emotion recognition
Speech emotion recognitionSpeech emotion recognition
Speech emotion recognitionsaniya shaikh
 
Recurrent Neural Network (RNN) | RNN LSTM Tutorial | Deep Learning Course | S...
Recurrent Neural Network (RNN) | RNN LSTM Tutorial | Deep Learning Course | S...Recurrent Neural Network (RNN) | RNN LSTM Tutorial | Deep Learning Course | S...
Recurrent Neural Network (RNN) | RNN LSTM Tutorial | Deep Learning Course | S...Simplilearn
 
Image classification using CNN
Image classification using CNNImage classification using CNN
Image classification using CNNNoura Hussein
 
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
 
House Price Prediction.pptx
House Price Prediction.pptxHouse Price Prediction.pptx
House Price Prediction.pptxCodingWorld5
 

What's hot (20)

Predicting house price
Predicting house pricePredicting house price
Predicting house price
 
Support Vector Machines ( SVM )
Support Vector Machines ( SVM ) Support Vector Machines ( SVM )
Support Vector Machines ( SVM )
 
Handwritten Digit Recognition(Convolutional Neural Network) PPT
Handwritten Digit Recognition(Convolutional Neural Network) PPTHandwritten Digit Recognition(Convolutional Neural Network) PPT
Handwritten Digit Recognition(Convolutional Neural Network) PPT
 
Presentation1
Presentation1Presentation1
Presentation1
 
Stock Price Trend Forecasting using Supervised Learning
Stock Price Trend Forecasting using Supervised LearningStock Price Trend Forecasting using Supervised Learning
Stock Price Trend Forecasting using Supervised Learning
 
Back propagation
Back propagationBack propagation
Back propagation
 
Final PPT.pptx
Final PPT.pptxFinal PPT.pptx
Final PPT.pptx
 
I. AO* SEARCH ALGORITHM
I. AO* SEARCH ALGORITHMI. AO* SEARCH ALGORITHM
I. AO* SEARCH ALGORITHM
 
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
 
Machine learning: Stock Price Prediction
Machine learning: Stock Price PredictionMachine learning: Stock Price Prediction
Machine learning: Stock Price Prediction
 
Diabetes prediction using machine learning
Diabetes prediction using machine learningDiabetes prediction using machine learning
Diabetes prediction using machine learning
 
Lstm
LstmLstm
Lstm
 
Stock Market Analysis and Prediction
Stock Market Analysis and PredictionStock Market Analysis and Prediction
Stock Market Analysis and Prediction
 
Convolution Neural Network (CNN)
Convolution Neural Network (CNN)Convolution Neural Network (CNN)
Convolution Neural Network (CNN)
 
Speech emotion recognition
Speech emotion recognitionSpeech emotion recognition
Speech emotion recognition
 
Recurrent Neural Network (RNN) | RNN LSTM Tutorial | Deep Learning Course | S...
Recurrent Neural Network (RNN) | RNN LSTM Tutorial | Deep Learning Course | S...Recurrent Neural Network (RNN) | RNN LSTM Tutorial | Deep Learning Course | S...
Recurrent Neural Network (RNN) | RNN LSTM Tutorial | Deep Learning Course | S...
 
Image classification using CNN
Image classification using CNNImage classification using CNN
Image classification using CNN
 
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
 
House Price Prediction.pptx
House Price Prediction.pptxHouse Price Prediction.pptx
House Price Prediction.pptx
 
Deep learning presentation
Deep learning presentationDeep learning presentation
Deep learning presentation
 

Similar to Stock Market Prediction using Machine Learning

IRJET - Stock Market Prediction using Machine Learning Algorithm
IRJET - Stock Market Prediction using Machine Learning AlgorithmIRJET - Stock Market Prediction using Machine Learning Algorithm
IRJET - Stock Market Prediction using Machine Learning AlgorithmIRJET Journal
 
IRJET- Stock Market Prediction using Machine Learning
IRJET- Stock Market Prediction using Machine LearningIRJET- Stock Market Prediction using Machine Learning
IRJET- Stock Market Prediction using Machine LearningIRJET Journal
 
Rachit Mishra_stock prediction_report
Rachit Mishra_stock prediction_reportRachit Mishra_stock prediction_report
Rachit Mishra_stock prediction_reportRachit Mishra
 
BATCH 1 FIRST REVIEW-1.pptx
BATCH 1 FIRST REVIEW-1.pptxBATCH 1 FIRST REVIEW-1.pptx
BATCH 1 FIRST REVIEW-1.pptxSurajRavi16
 
AIRLINE FARE PRICE PREDICTION
AIRLINE FARE PRICE PREDICTIONAIRLINE FARE PRICE PREDICTION
AIRLINE FARE PRICE PREDICTIONIRJET Journal
 
Stock Price Prediction using Machine Learning Algorithms: ARIMA, LSTM & Linea...
Stock Price Prediction using Machine Learning Algorithms: ARIMA, LSTM & Linea...Stock Price Prediction using Machine Learning Algorithms: ARIMA, LSTM & Linea...
Stock Price Prediction using Machine Learning Algorithms: ARIMA, LSTM & Linea...IRJET Journal
 
STOCK PRICE PREDICTION USING ML TECHNIQUES
STOCK PRICE PREDICTION USING ML TECHNIQUESSTOCK PRICE PREDICTION USING ML TECHNIQUES
STOCK PRICE PREDICTION USING ML TECHNIQUESIRJET Journal
 
Predicting Stock Market Price Using Support Vector Regression
Predicting Stock Market Price Using Support Vector RegressionPredicting Stock Market Price Using Support Vector Regression
Predicting Stock Market Price Using Support Vector RegressionChittagong Independent University
 
Performance Comparisons among Machine Learning Algorithms based on the Stock ...
Performance Comparisons among Machine Learning Algorithms based on the Stock ...Performance Comparisons among Machine Learning Algorithms based on the Stock ...
Performance Comparisons among Machine Learning Algorithms based on the Stock ...IRJET Journal
 
Real Estate Investment Advising Using Machine Learning
Real Estate Investment Advising Using Machine LearningReal Estate Investment Advising Using Machine Learning
Real Estate Investment Advising Using Machine LearningIRJET Journal
 
STOCK MARKET PREDICTION USING MACHINE LEARNING IN PYTHON
STOCK MARKET PREDICTION USING MACHINE LEARNING IN PYTHONSTOCK MARKET PREDICTION USING MACHINE LEARNING IN PYTHON
STOCK MARKET PREDICTION USING MACHINE LEARNING IN PYTHONIRJET Journal
 
Stock Market Prediction using Long Short-Term Memory
Stock Market Prediction using Long Short-Term MemoryStock Market Prediction using Long Short-Term Memory
Stock Market Prediction using Long Short-Term MemoryIRJET Journal
 
AlgoB – Cryptocurrency price prediction system using LSTM
AlgoB – Cryptocurrency price prediction system using LSTMAlgoB – Cryptocurrency price prediction system using LSTM
AlgoB – Cryptocurrency price prediction system using LSTMIRJET Journal
 
House price prediction
House price predictionHouse price prediction
House price predictionSabahBegum
 
Data-Driven Approach to Stock Market Prediction and Sentiment Analysis
Data-Driven Approach to Stock Market Prediction and Sentiment AnalysisData-Driven Approach to Stock Market Prediction and Sentiment Analysis
Data-Driven Approach to Stock Market Prediction and Sentiment AnalysisIRJET Journal
 
Project report on Share Market application
Project report on Share Market applicationProject report on Share Market application
Project report on Share Market applicationKRISHNA PANDEY
 
Turnover Prediction of Shares Using Data Mining Techniques : A Case Study
Turnover Prediction of Shares Using Data Mining Techniques : A Case Study Turnover Prediction of Shares Using Data Mining Techniques : A Case Study
Turnover Prediction of Shares Using Data Mining Techniques : A Case Study csandit
 
stock market prediction and analysis using python
stock market prediction and analysis using pythonstock market prediction and analysis using python
stock market prediction and analysis using pythonstudanimo
 

Similar to Stock Market Prediction using Machine Learning (20)

IRJET - Stock Market Prediction using Machine Learning Algorithm
IRJET - Stock Market Prediction using Machine Learning AlgorithmIRJET - Stock Market Prediction using Machine Learning Algorithm
IRJET - Stock Market Prediction using Machine Learning Algorithm
 
IRJET- Stock Market Prediction using Machine Learning
IRJET- Stock Market Prediction using Machine LearningIRJET- Stock Market Prediction using Machine Learning
IRJET- Stock Market Prediction using Machine Learning
 
Rachit Mishra_stock prediction_report
Rachit Mishra_stock prediction_reportRachit Mishra_stock prediction_report
Rachit Mishra_stock prediction_report
 
BATCH 1 FIRST REVIEW-1.pptx
BATCH 1 FIRST REVIEW-1.pptxBATCH 1 FIRST REVIEW-1.pptx
BATCH 1 FIRST REVIEW-1.pptx
 
AIRLINE FARE PRICE PREDICTION
AIRLINE FARE PRICE PREDICTIONAIRLINE FARE PRICE PREDICTION
AIRLINE FARE PRICE PREDICTION
 
Stock Price Prediction using Machine Learning Algorithms: ARIMA, LSTM & Linea...
Stock Price Prediction using Machine Learning Algorithms: ARIMA, LSTM & Linea...Stock Price Prediction using Machine Learning Algorithms: ARIMA, LSTM & Linea...
Stock Price Prediction using Machine Learning Algorithms: ARIMA, LSTM & Linea...
 
STOCK PRICE PREDICTION USING ML TECHNIQUES
STOCK PRICE PREDICTION USING ML TECHNIQUESSTOCK PRICE PREDICTION USING ML TECHNIQUES
STOCK PRICE PREDICTION USING ML TECHNIQUES
 
Predicting Stock Market Price Using Support Vector Regression
Predicting Stock Market Price Using Support Vector RegressionPredicting Stock Market Price Using Support Vector Regression
Predicting Stock Market Price Using Support Vector Regression
 
Performance Comparisons among Machine Learning Algorithms based on the Stock ...
Performance Comparisons among Machine Learning Algorithms based on the Stock ...Performance Comparisons among Machine Learning Algorithms based on the Stock ...
Performance Comparisons among Machine Learning Algorithms based on the Stock ...
 
Real Estate Investment Advising Using Machine Learning
Real Estate Investment Advising Using Machine LearningReal Estate Investment Advising Using Machine Learning
Real Estate Investment Advising Using Machine Learning
 
STOCK MARKET PREDICTION USING MACHINE LEARNING IN PYTHON
STOCK MARKET PREDICTION USING MACHINE LEARNING IN PYTHONSTOCK MARKET PREDICTION USING MACHINE LEARNING IN PYTHON
STOCK MARKET PREDICTION USING MACHINE LEARNING IN PYTHON
 
Stock Market Prediction using Long Short-Term Memory
Stock Market Prediction using Long Short-Term MemoryStock Market Prediction using Long Short-Term Memory
Stock Market Prediction using Long Short-Term Memory
 
AlgoB – Cryptocurrency price prediction system using LSTM
AlgoB – Cryptocurrency price prediction system using LSTMAlgoB – Cryptocurrency price prediction system using LSTM
AlgoB – Cryptocurrency price prediction system using LSTM
 
House price prediction
House price predictionHouse price prediction
House price prediction
 
IC2IT 2013 Presentation
IC2IT 2013 PresentationIC2IT 2013 Presentation
IC2IT 2013 Presentation
 
IC2IT 2013 Presentation
IC2IT 2013 PresentationIC2IT 2013 Presentation
IC2IT 2013 Presentation
 
Data-Driven Approach to Stock Market Prediction and Sentiment Analysis
Data-Driven Approach to Stock Market Prediction and Sentiment AnalysisData-Driven Approach to Stock Market Prediction and Sentiment Analysis
Data-Driven Approach to Stock Market Prediction and Sentiment Analysis
 
Project report on Share Market application
Project report on Share Market applicationProject report on Share Market application
Project report on Share Market application
 
Turnover Prediction of Shares Using Data Mining Techniques : A Case Study
Turnover Prediction of Shares Using Data Mining Techniques : A Case Study Turnover Prediction of Shares Using Data Mining Techniques : A Case Study
Turnover Prediction of Shares Using Data Mining Techniques : A Case Study
 
stock market prediction and analysis using python
stock market prediction and analysis using pythonstock market prediction and analysis using python
stock market prediction and analysis using python
 

Recently uploaded

TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providermohitmore19
 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comFatema Valibhai
 
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdfintroduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdfVishalKumarJha10
 
10 Trends Likely to Shape Enterprise Technology in 2024
10 Trends Likely to Shape Enterprise Technology in 202410 Trends Likely to Shape Enterprise Technology in 2024
10 Trends Likely to Shape Enterprise Technology in 2024Mind IT Systems
 
How to Choose the Right Laravel Development Partner in New York City_compress...
How to Choose the Right Laravel Development Partner in New York City_compress...How to Choose the Right Laravel Development Partner in New York City_compress...
How to Choose the Right Laravel Development Partner in New York City_compress...software pro Development
 
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...ICS
 
Define the academic and professional writing..pdf
Define the academic and professional writing..pdfDefine the academic and professional writing..pdf
Define the academic and professional writing..pdfPearlKirahMaeRagusta1
 
VTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learnVTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learnAmarnathKambale
 
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfkalichargn70th171
 
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Modelsaagamshah0812
 
The Guide to Integrating Generative AI into Unified Continuous Testing Platfo...
The Guide to Integrating Generative AI into Unified Continuous Testing Platfo...The Guide to Integrating Generative AI into Unified Continuous Testing Platfo...
The Guide to Integrating Generative AI into Unified Continuous Testing Platfo...kalichargn70th171
 
Right Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsRight Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsJhone kinadey
 
Exploring the Best Video Editing App.pdf
Exploring the Best Video Editing App.pdfExploring the Best Video Editing App.pdf
Exploring the Best Video Editing App.pdfproinshot.com
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsArshad QA
 
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected WorkerHow To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected WorkerThousandEyes
 
AI & Machine Learning Presentation Template
AI & Machine Learning Presentation TemplateAI & Machine Learning Presentation Template
AI & Machine Learning Presentation TemplatePresentation.STUDIO
 
How To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.jsHow To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.jsAndolasoft Inc
 

Recently uploaded (20)

TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service provider
 
Microsoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdfMicrosoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdf
 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.com
 
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdfintroduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
 
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
 
10 Trends Likely to Shape Enterprise Technology in 2024
10 Trends Likely to Shape Enterprise Technology in 202410 Trends Likely to Shape Enterprise Technology in 2024
10 Trends Likely to Shape Enterprise Technology in 2024
 
How to Choose the Right Laravel Development Partner in New York City_compress...
How to Choose the Right Laravel Development Partner in New York City_compress...How to Choose the Right Laravel Development Partner in New York City_compress...
How to Choose the Right Laravel Development Partner in New York City_compress...
 
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
 
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS LiveVip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
 
Define the academic and professional writing..pdf
Define the academic and professional writing..pdfDefine the academic and professional writing..pdf
Define the academic and professional writing..pdf
 
VTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learnVTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learn
 
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
 
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Models
 
The Guide to Integrating Generative AI into Unified Continuous Testing Platfo...
The Guide to Integrating Generative AI into Unified Continuous Testing Platfo...The Guide to Integrating Generative AI into Unified Continuous Testing Platfo...
The Guide to Integrating Generative AI into Unified Continuous Testing Platfo...
 
Right Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsRight Money Management App For Your Financial Goals
Right Money Management App For Your Financial Goals
 
Exploring the Best Video Editing App.pdf
Exploring the Best Video Editing App.pdfExploring the Best Video Editing App.pdf
Exploring the Best Video Editing App.pdf
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview Questions
 
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected WorkerHow To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
 
AI & Machine Learning Presentation Template
AI & Machine Learning Presentation TemplateAI & Machine Learning Presentation Template
AI & Machine Learning Presentation Template
 
How To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.jsHow To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.js
 

Stock Market Prediction using Machine Learning

  • 1. Sambhram Institute of Technology Department of Computer Science & Engineering Stock Market Prediction USING MACHINE LEARNING Akshay R 1ST14CS010 Aravind B 1ST14CS023 Arun Kumar 1ST14CS025 Ashok S 1ST14CS027 Under the guidance of Dr. T John Peter H.O.D, Dept. of CSE
  • 2. Agenda Introduction Existing Methods Proposed System System Design Implementation Abstract Results & Discussions Stock Market Prediction Performance Future Enhancement Conclusion
  • 3. Abstract  Time series forecasting has been widely used to determine the future prices of stock, and the analysis and modelling of finance time series importantly guide investors’ decisions and trades  This work proposes an intelligent time series prediction system that uses sliding-window optimization for the purpose of predicting the stock prices  The system has a graphical user interface and functions as a stand-alone application.  The proposed model is a promising predictive technique for highly non-linear time series, whose patterns are difficult to capture by traditional models. Stock Market Prediction
  • 4. Introduction  Financial markets are highly volatile and generate huge amounts of data daily  It is the most popular financial market instrument and its value changes quickly  Stock prices are predicted to determine the future value of companies’ stock or other financial instruments that are marketed on financial exchanges  However, the stock market is influenced by many factors such as political events, economic conditions and traders’ expectation Stock Market Prediction
  • 5. What is Machine Learning Machine Learning is the field of study that gives computers the ability to learn without being explicitly programmed More formally, it can defined as, A computer program is said to learn from experience E with respect to some class of tasks T and performance measure P, if its performance at tasks in T, as measured by P, improves with experience E Example: playing checkers. E = the experience of playing many games of checkers T = the task of playing checkers. P = the probability that the program will win the next game. Stock Market Prediction
  • 6. Machine Learning in Stock Prediction  The field of Machine Learning is vast and plays a key role in a wide range of critical applications.  The concept of Support Vector Machines (SVM) have advanced features that are reflected in their good generalization capacity and fast computation.  Predicting the stock market involves predicting the closing prices of a company’s stock for any given number of days ahead.  SVMs can be used to perform Linear Regression on previous stock data to predict the closing prices using Time series forecasting and other optimization algorithms Stock Market Prediction
  • 7. Existing Methods  Time series forecasting consists of a research area designed to solve various problems, mainly in the financial area  Support vector regression (SVR), a variant of the SVM, is typically used to solve nonlinear regression problems by constructing the input-output mapping function.  The least squares support vector regression (LSSVR) algorithm is a further development of SVR and its use considerably reduces computational complexity and increases efficiency compared to standard SVR.  The Firefly Algorithm (FA), which is a nature-inspired metaheuristic method, has recently performed extremely well in solving various optimization problems. Stock Market Prediction
  • 8. Disadvantages  The existing system focuses on the stock price market in Taiwan, but does not generalize for other markets worldwide.  The system does not allow the import of raw data directly  The existing system cannot be used to analyze multi-variate time series  Lastly, the system does not have a user-interface which can be distributed as a web app to users for personal use Stock Market Prediction
  • 9. Proposed System  To generalize the application of the existing system, our work uses the system to estimate other stocks in similar emerging markets and mature markets  The system can be extended to analyze multivariate time series data and import raw dataset directly  Profit can be maximized even when the corporate stock market is has lower value  The development of a web-based application has been considered to improve the user-friendliness and usability of the expert system. Stock Market Prediction
  • 10. USE CASE DIAGRAM 1. Data is initially collected from online sources or the stock exchange 2. The data is then used to train the system 3. Trained model is saved 4. User views the trade exchange and stock of a company 5. Using the model, closing prices are predicted Stock Market Prediction Architecture System Design
  • 11. Architecture Input : Company Fetch Data Plot Data Train model (LSSVR) Predict Stock for n Days Plot Predicted Results Save Model Stock Market Prediction Data Flow Diagram
  • 12. SEQUENCE DIAGRAM 1. User visits the website/webapp 2. Previously saved model is loaded 3. User requests for a company's stock data 4. He requests for prediction to be made 5. The Stock Market Prediction System trains a model using the data from the database 6. The model is saved for further use and closing price is predicted 7. Result is displayed along with graph Stock Market Prediction Architecture Sequence Diagram
  • 13. Implementation Algorithm Algorithm : StockPrediction Input : COMP, D_RANGE, N_PRED [company, date range, n-day predictions] Output : A vector of predicted prices and graph, RESULTS 1. data ← fetch stock for COMP in date range D_RANGE 2. plot(data) 3. train_data ← slidingWindow(data) //perform sliding window operation on data 4. RESULTS ← 0 //set accuracy vector to zeroes 5. for each day in N_PRED : 1. model ← LSSVM(train_data) //pass the training data to LSSVM 2. pred ← predict(model,day) //predict the price given model and day 3. remove first item from train_data //removing last item and adding predicted value 4. train_data ← add pred to train_data //Last In, First Out. 5. RESULTS ← add pred to RESULTS 6. end for 7. print(RESULTS) 8. plot(RESULTS) 9. return Stock Market Prediction
  • 14. Implementation Least Squares Support Vector Regression The least squares version of the SVM classifier is obtained by reformulating the minimization problem as For the kernel function K(𝑥, 𝑥𝑖) one typically has the Radial Basis Function • The LSSVR algorithm is a further development of SVR by Suykens (2001) and involves equality instead of inequality constraints, and works with a least squares objective function. • The LSSVR approach considerably reduces computational complexity and increases efficiency compared to standard SVM. • LSSVR solves linear equations instead of a quadratic programming problem LSSVR Formulation Stock Market Prediction
  • 15. Implementation Sliding-Window Algorithm : slidingWindow Input : data [stock data] Output : A data frame of a lagged stock data 1. LAG ← 1 2. y ← remove first LAG rows from data 3. reset row indices of y 4. x ← remove last LAG rows from data 5. train ← merge (x,y) into a dataframe 6. rename column name to x and y 7. return train Stock Market Prediction Time Price 1 100 2 110 3 108 4 115 5 120 Re-organizing the time series dataset this way, we obtain the table as above, on the right Using previous time steps as input variables and use the next time step as the output variable, we obtain the following table on the left X Y ? 100 100 110 110 108 108 115 115 120 120 ?
  • 16. Results & Discussions Stock Market Prediction
  • 20. Future Enhancement • The limitation of the proposed system is its computational speed, especially with respect to sliding-window validation as the computational cost increases with the number of forward day predictions. • The proposed model does not predict well for sudden changes in the trend of stock data. • This occurs due to external factors and real-world changes affecting the stock market. • We can overcome this by implementing Sentiment Analysis and Neural Networks to enhance the proposed model. • We can modify the same system to an online-learning system that adapts in real-time. Stock Market Prediction
  • 21. Conclusion Thus, as we can see above in our proposed method, we train the data using existing stock dataset that is available. We use this data to predict and forecast the stock price of n-days into the future. The average performance of the model decreases with increase in number of days, due to unpredictable changes in trend. The current system can update its training set as each day passes so as to detect newer trends and behave like an online-learning system that predicts stock in real-time. Stock Market Prediction