SlideShare a Scribd company logo
1 of 34
TRIBHUVAN UNIVERSITY
INSTITUTE OF ENGINEERING
PASHCHIMANCHAL CAMPUS
A Thesis final Presentation
on
Performance Analysis and Prediction of Stock Market for
Investment Decision using Regression Techniques.
Supervised by: Presented by:
Er. Sharan Thapa Hari K.C.
072/MSCK/403 1
Outline
• Introduction
• Problem statement
• Objective
• Literature Review
• Methodology
• Data collection and Tools used
• Result and Discussion
• References
2
Introduction
• This thesis focus on study of Stock Market and its performance over
different time period.
• The core of the study is to determine the effective regression
technique to predict the stock price for four different companies.
• These companies are randomly selected from the different sectors
such as Banking sector, Insurance sector, Hydropower and Hotels
• Also, this thesis helps in identifying the investment decision before
investing on different companies.
3
Introduction (contd...)
Stock Market
• Share or Stock is an indivisible unit of capital that represent the equal
proportion of a company capital.
• The more a share is transacted, the more it is valuable.
• Stock Market stock values varies based on “Demand and Supply strategy”
• Stock Market is widely used investment scheme promising high returns but it
has risks.
4
Problem Statement
• Stock values are changing depending on the market conditions day
by day.
• The challenge is to guide the investors for the right time to buy and
sell the shares.
• There are many regression and classifiers available for the prediction.
• Need for determining the best technique that provide better result in
predicting the stock prices and give accurate trends.
5
Objective
• To analyze and predict the stock price for investment decision using
regression techniques
• To compare the accuracy of different Machine Learning regression
techniques.
• To compare the actual and predicted stock price
6
Literature Review
7
Date 2012 A.D 2014 A.D 2016 A.D
Research Forecasting of Stock
market of NASDAQ and
S&P 500
Prediction of Bombay
Stock Exchange Market
Returns (BSE)
Prediction of Stock
Market of Karachi
Stock Exchange
Research paper
writer
S. Shen, T. Zheng Y. Perwej and A. Perwej Kamran Raza
Features in Research Uses SVM Uses ANN and GA Used ARIMA and SVR
Parameters used in
Research
Gold and silver rates +
Oil rates+ Historical
stock price
Historical stock price Different oil rates+
gold and silver rates+
historical stock price +
Foreign exchange
Methodology
8Figure: Diagram of system model for analysis and prediction of NEPSE stock data
Methodology
• Preprocessing
• Stock data are incomplete and noisy so, stock data are cleaned and outliers
are removed.
• Interest Rate Correlation is performed to find the relation of Interest rate to
stock closing price.
• Stock Data moving Average and Deviation are also performed to see previous
stock market performance.
• Stock News of different companies are pre-processed to determine the
positive and negative sentiment .
9
Methodology
10
Deviation curve of Agricultural Development Bank Ltd
Figure: Deviation Curve of ADBL.
Lots of Fluctuations is seen from 2013 to 2017. During 2016-07 to 2017-01 , the deviation
constantly decreasing which is due to the uniform decrement in Stock Closing Price. In this
time period, right share has been issued to shareholders .
Methodology
11
Table: Correlation Coefficient of Agricultural Development Bank Ltd
This table shows the correlation of Stock Price of different Companies with the Interest Rate.
Three Companies Agricultural Development Bank Ltd, Asian Life Insurance , TaraGaon Regency
Hotels have Negative correlation Coefficient . It means during five years time period, they follows
the statement “ Decrease in Interest rate is directly proportional to increase in stock investment.”
But Arun Hydro power do not follow this since it has positive correlation coefficient.
Company Correlation Coefficient with Interest Rate
ADBL -0.609354
ALICL -0.859071
AHPC 0.620511
TRH -0.026552
Methodology
12
Sentiment Index of Agricultural Development Bank Ltd
This Pie chart shows that almost 58.8 percent news are positive and sentiment index is
also quite good. This indicate that the investors feel no risk to invest their money in
ADBL with positive response.
Figure: Pie Chart for Agricultural Development Bank Ltd.
Methodology
13
Moving Average of Agricultural Development Bank Ltd
This graph shows the change of trend in two major time period (2014 A.D) and
(2016 A.D) . At this time, more share transactions takes place. Trade the share
when 50 MA crosses the 100 MA but exit the trade if next time 50MA again
crosses the 100 MA.
Figure: Moving Average graph for Agricultural Development Bank Ltd.
Methodology
• Normalization
• Suitable data and feature is generated using Normalization.
• After preprocessing ,Normalization involves making the interest rate and
stock sentiment data suitable to adjust with stock closing price.
• And finally , feature vector is developed which represent the standard form of
data.
• This feature vector represent the final dataset for prediction.
14
Methodology
• Regression
• Linear Regression
• Polynomial Regression
• Radial Basis Function Regression
15
Methodology
• Linear Regression
• Supervised Machine Learning Technique.
• A commonly used predictive analysis.
• It gives best predicted output for linear set of data but not for nonlinear data.
Y=m*X +C
• Regression Line fits the data to predict the stock price
• Best fit slope : m=average(X) * average(Y)
C= average(Y) – m * average(X)
16
Methodology
• Linear Regression(contd...)
• Linear regression can provide reasonable and fair results after normalization
with no parameter tuning.
• Linear regression is good for an ideal training window.
• It gives good result for relatively short periods.
• It is sensitive to window size changes.
17
Methodology
• Polynomial Regression
• Supervised Machine Learning Technique.
• Polynomial is a kernel of Support vector regression to fits data representing curve.
Y = a + ß1*X + ß2* X^2 + ß3* X^3 (degree is set to 3)
• Multiple trials can be performed in polynomial regression.
• Better prediction of subset of testing data but tends to diverged abruptly at
different time periods.
• It is sensitive to window size changes.
18
Methodology
• RBF Regression
• Radial Basis Function (RBF) tends to fix the divergent behaviour which is
constantly seen in Polynomial kernel.
• It fits data representing gaussian function.
g(n) = Wt * f(n) , f(n) =exp[- (X(n) – Ck )2 / w]
where W= Width and w = spread
• The RBF kernel performed the best on average for each month that it was
tested on.
• RBF kernel is not sensitive to window size changes.
19
Data Collection and Tools Used
20
• Stock datasets from Nepal Stock Exchange(NEPSE).
• Interest Rate data from Nepal Rastra Bank.
• Stock News from ShareSansar and Nepal Stock Exchange(NEPSE)
• Use of Python Programming Language.
Result and Discussion (Data fitting)
21Data fitting by RBF regression is best than that of linear and Polynomial regression.
Result and Discussion (Comparision)
22
NEPSE stock exchange Karachi stock exchange
Regression/Companies Linear Accuracy RBF Accuracy Polynomial Accuracy RBF Accuracy
1) ADBL 14% 80% 38%
63%
(Data sets of KSE-100 index)
2) ALICL 5% 77% 47%
3) AHPC 21% 85% 67%
4) TRH 14% 80% 78%
In 2016/2017 , Karachi Stock Exchange currently known as Pakistan Stock exchange
accuracy is 63 percent using Radial Basis Function .
Result and Discussion (Validation)
23
NEPSE stock exchange S&P 500 (Data set of GOOGLE)
Regression/Companies
Linear Accuracy RBF
Accuracy
Polynomial
Accuracy
Linear RBF Polynomial
1) ADBL 14% 80% 38%
12% 66% 22%
2) ALICL
5% 77% 47%
3) AHPC 21% 85% 67%
4) TRH
14% 80% 78%
Result and Discussion (Actual vs Predicted
Stock Price)
24
Prediction Error = (|(ActualAverage – PredictedAverage) / ActualAverage| ) *100%
=|(446.73-450.05)/ 446.73| *100%
=0.74 %
Prediction Error =(| 1603.13 – 1394.22| / 1603.13) * 100%
= 13.03 %
Result and Discussion (Actual vs Predicted
Stock Price)
25
Prediction Error = ((|295.93- 270.90| )/ 295.93) * 100 %
= 8.45%
Prediction Error = ((|267.46- 284.46| )/ 267.46) * 100 %
=6.35 %
Result and Discussion ( Predicting Stock Price)
26
DATE ADBL PREDICTED PRICE(Rs)
11/1/2017 437.67
11/2/2017 442.57
11/3/2017 445.17
11/4/2017 449.38
11/5/2017 442.59
11/6/2017 431.89
11/7/2017 431.42
11/8/2017 432.78
11/9/2017 424.87
11/10/2017 425.85
11/11/2017 426.36
11/12/2017 442.92
11/13/2017 443.14
11/14/2017 444.35
11/15/2017 446.21
DATE ALICL PREDICTED PRICE(Rs)
11/1/2017 1298.5
11/2/2017 1299.1
11/3/2017 1306.58
11/4/2017 1310.86
11/5/2017 1268.34
11/6/2017 1268.44
11/7/2017 1284.61
11/8/2017 1276.19
11/9/2017 1281.96
11/10/2017 1280.39
11/11/2017 1293.49
11/12/2017 1309.54
11/13/2017 1320.26
11/14/2017 1351.94
11/15/2017 1332.52
Result and Discussion ( Predicting Stock Price)
27
DATE AHPC PREDICTED PRICE(Rs)
11/1/2017 263.13
11/2/2017 262.82
11/3/2017 262.70
11/4/2017 260.95
11/5/2017 261.46
11/6/2017 260.64
11/7/2017 262.67
11/8/2017 262.55
11/9/2017 259.72
11/10/2017 261.79
11/11/2017 262.21
11/12/2017 260.52
11/13/2017 261.30
11/14/2017 262.38
11/15/2017 258.68
DATE TRH PREDICTED PRICE(Rs)
11/1/2017 211.55
11/2/2017 217.43
11/3/2017 222.63
11/4/2017 221.24
11/5/2017 219.56
11/6/2017 218.00
11/7/2017 212.59
11/8/2017 213.81
11/9/2017 202.45
11/10/2017 206.44
11/11/2017 211.59
11/12/2017 208.08
11/13/2017 206.06
11/14/2017 206.25
11/15/2017 207.90
Result and Discussion( Summary )
28
Public Companies/
Parameter
ADBL ALICL AHPC TRH
1) Stock Sentiment Index 64.70 % 72.72% 78.94% 64.28 %
2)Moving Average 100MA <50MA 100MA <50MA 100MA =50MA 100 <50MA
3) Regression Accuracy 80% 77% 85% 80%
4) InterestRate Correlation -0.609354 -0.859071 0.62051 -0.026552
5)MaximumAverage Prediction Error 2.08% 13.65% 26.17% 11.18%
ADBL has low prediction error than others and its other parameters are quite
good. So, first investment priority is given to ADBL.
Snap Shots of Program
29
Conclusion
• It has been concluded that predicting the stock price using RBF
regression gives maximum accuracy and less prediction error than
other regressions .
• RBF kernel is the most consistent for accurate prediction than linear
and polynomial kernel.
• The four companies listed in NEPSE are compared with number of
parameters to set the investment priority for the investors.
• According to experiment conducted , ADBL has the highest
investment priority compared to other companies.
30
Future Work
• In future, Optimized RBF technique can also be used that optimize
spread and width parameter to decrease error rate.
• The new kernel function or technique can be designed which gives
better performance with low error rate and high accuracy.
31
References
32
33
34

More Related Content

What's hot

Google Stock Price Forecasting
Google Stock Price ForecastingGoogle Stock Price Forecasting
Google Stock Price ForecastingArkaprava Kundu
 
An intelligent scalable stock market prediction system
An intelligent scalable stock market prediction systemAn intelligent scalable stock market prediction system
An intelligent scalable stock market prediction systemHarshit Agarwal
 
Stock market prediction technique:
Stock market prediction technique:Stock market prediction technique:
Stock market prediction technique:Paladion Networks
 
Stock Market Prediction.pptx
Stock Market Prediction.pptxStock Market Prediction.pptx
Stock Market Prediction.pptxRastogiAman
 
Stock Price Prediction
Stock Price PredictionStock Price Prediction
Stock Price PredictionManisha Mishra
 
Aditya report finaL
Aditya report finaLAditya report finaL
Aditya report finaL2767882
 
Stock market analysis
Stock market analysisStock market analysis
Stock market analysisSruti Jain
 
Stock market prediction using data mining
Stock market prediction using data miningStock market prediction using data mining
Stock market prediction using data miningShivakumarSoppannavar
 
Stock market prediction using Twitter sentiment analysis
Stock market prediction using Twitter sentiment analysisStock market prediction using Twitter sentiment analysis
Stock market prediction using Twitter sentiment analysisjournal ijrtem
 
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 Prediction using Machine Learning
Stock Market Prediction using Machine LearningStock Market Prediction using Machine Learning
Stock Market Prediction using Machine LearningAravind Balaji
 
Stock Market Analysis and Prediction
Stock Market Analysis and PredictionStock Market Analysis and Prediction
Stock Market Analysis and PredictionAnil Shrestha
 
Stock price prediction using Neural Net
Stock price prediction using Neural NetStock price prediction using Neural Net
Stock price prediction using Neural NetRajat Sharma
 
Stock market analysis using supervised machine learning
Stock market analysis using supervised machine learningStock market analysis using supervised machine learning
Stock market analysis using supervised machine learningPriyanshu Gandhi
 
Prediction of Car Price using Linear Regression
Prediction of Car Price using Linear RegressionPrediction of Car Price using Linear Regression
Prediction of Car Price using Linear Regressionijtsrd
 
Stock Price Prediction PPT
Stock Price Prediction  PPTStock Price Prediction  PPT
Stock Price Prediction PPTPrashantGanji4
 
IRJET- Road Accident Prediction using Machine Learning Algorithm
IRJET- Road Accident Prediction using Machine Learning AlgorithmIRJET- Road Accident Prediction using Machine Learning Algorithm
IRJET- Road Accident Prediction using Machine Learning AlgorithmIRJET Journal
 

What's hot (20)

Presentation1
Presentation1Presentation1
Presentation1
 
Google Stock Price Forecasting
Google Stock Price ForecastingGoogle Stock Price Forecasting
Google Stock Price Forecasting
 
An intelligent scalable stock market prediction system
An intelligent scalable stock market prediction systemAn intelligent scalable stock market prediction system
An intelligent scalable stock market prediction system
 
Stock market prediction technique:
Stock market prediction technique:Stock market prediction technique:
Stock market prediction technique:
 
Stock Market Prediction.pptx
Stock Market Prediction.pptxStock Market Prediction.pptx
Stock Market Prediction.pptx
 
Stock Price Prediction
Stock Price PredictionStock Price Prediction
Stock Price Prediction
 
STOCK MARKET PREDICTION
STOCK MARKET PREDICTIONSTOCK MARKET PREDICTION
STOCK MARKET PREDICTION
 
Aditya report finaL
Aditya report finaLAditya report finaL
Aditya report finaL
 
Stock market analysis
Stock market analysisStock market analysis
Stock market analysis
 
Stock market prediction using data mining
Stock market prediction using data miningStock market prediction using data mining
Stock market prediction using data mining
 
STOCK_PPT.pptx
STOCK_PPT.pptxSTOCK_PPT.pptx
STOCK_PPT.pptx
 
Stock market prediction using Twitter sentiment analysis
Stock market prediction using Twitter sentiment analysisStock market prediction using Twitter sentiment analysis
Stock market prediction using Twitter sentiment analysis
 
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 Prediction using Machine Learning
Stock Market Prediction using Machine LearningStock Market Prediction using Machine Learning
Stock Market Prediction using Machine Learning
 
Stock Market Analysis and Prediction
Stock Market Analysis and PredictionStock Market Analysis and Prediction
Stock Market Analysis and Prediction
 
Stock price prediction using Neural Net
Stock price prediction using Neural NetStock price prediction using Neural Net
Stock price prediction using Neural Net
 
Stock market analysis using supervised machine learning
Stock market analysis using supervised machine learningStock market analysis using supervised machine learning
Stock market analysis using supervised machine learning
 
Prediction of Car Price using Linear Regression
Prediction of Car Price using Linear RegressionPrediction of Car Price using Linear Regression
Prediction of Car Price using Linear Regression
 
Stock Price Prediction PPT
Stock Price Prediction  PPTStock Price Prediction  PPT
Stock Price Prediction PPT
 
IRJET- Road Accident Prediction using Machine Learning Algorithm
IRJET- Road Accident Prediction using Machine Learning AlgorithmIRJET- Road Accident Prediction using Machine Learning Algorithm
IRJET- Road Accident Prediction using Machine Learning Algorithm
 

Similar to Stock Market Prediction Using Regression Techniques

Big Data Project - Final version
Big Data Project - Final versionBig Data Project - Final version
Big Data Project - Final versionMihir Sanghavi
 
Statistical Model to Predict IPO Prices for Semiconductor
Statistical Model to Predict IPO Prices for SemiconductorStatistical Model to Predict IPO Prices for Semiconductor
Statistical Model to Predict IPO Prices for SemiconductorXuanhua(Peter) Yin
 
OPIM 5604 predictive modeling presentation group7
OPIM 5604 predictive modeling presentation group7OPIM 5604 predictive modeling presentation group7
OPIM 5604 predictive modeling presentation group7Shu-Feng Tsao
 
Ali asgher slides copy
Ali asgher slides   copyAli asgher slides   copy
Ali asgher slides copyAli Asgher
 
IRJET - Stock Recommendation System using Machine Learning Approache
IRJET - Stock Recommendation System using Machine Learning ApproacheIRJET - Stock Recommendation System using Machine Learning Approache
IRJET - Stock Recommendation System using Machine Learning ApproacheIRJET Journal
 
Predictive Analysis - Using Insight-informed Data to Determine Factors Drivin...
Predictive Analysis - Using Insight-informed Data to Determine Factors Drivin...Predictive Analysis - Using Insight-informed Data to Determine Factors Drivin...
Predictive Analysis - Using Insight-informed Data to Determine Factors Drivin...ThinkInnovation
 
Application_of_Deep_Learning_Techniques.pptx
Application_of_Deep_Learning_Techniques.pptxApplication_of_Deep_Learning_Techniques.pptx
Application_of_Deep_Learning_Techniques.pptxKiranKumar918931
 
Seven Basic Quality Control Tools أدوات ضبط الجودة السبعة
Seven Basic Quality Control Tools أدوات ضبط الجودة السبعةSeven Basic Quality Control Tools أدوات ضبط الجودة السبعة
Seven Basic Quality Control Tools أدوات ضبط الجودة السبعةMohamed Khaled
 
Useful Tools for Problem Solving by Operational Excellence Consulting
Useful Tools for Problem Solving by Operational Excellence ConsultingUseful Tools for Problem Solving by Operational Excellence Consulting
Useful Tools for Problem Solving by Operational Excellence ConsultingOperational Excellence Consulting
 
ANALYSIS AND PREDICTION OF RAINFALL USING MACHINE LEARNING TECHNIQUES
ANALYSIS AND PREDICTION OF RAINFALL USING MACHINE LEARNING TECHNIQUESANALYSIS AND PREDICTION OF RAINFALL USING MACHINE LEARNING TECHNIQUES
ANALYSIS AND PREDICTION OF RAINFALL USING MACHINE LEARNING TECHNIQUESIRJET Journal
 
Summer 2015 Internship
Summer 2015 InternshipSummer 2015 Internship
Summer 2015 InternshipTaylor Martell
 
Ecm time series forecast
Ecm time series forecastEcm time series forecast
Ecm time series forecastAyapparaj SKS
 

Similar to Stock Market Prediction Using Regression Techniques (20)

Big Data Project - Final version
Big Data Project - Final versionBig Data Project - Final version
Big Data Project - Final version
 
Statistical Model to Predict IPO Prices for Semiconductor
Statistical Model to Predict IPO Prices for SemiconductorStatistical Model to Predict IPO Prices for Semiconductor
Statistical Model to Predict IPO Prices for Semiconductor
 
Case study of s&amp;p 500
Case study of s&amp;p 500Case study of s&amp;p 500
Case study of s&amp;p 500
 
OPIM 5604 predictive modeling presentation group7
OPIM 5604 predictive modeling presentation group7OPIM 5604 predictive modeling presentation group7
OPIM 5604 predictive modeling presentation group7
 
Ali asgher slides copy
Ali asgher slides   copyAli asgher slides   copy
Ali asgher slides copy
 
Cmt learning objective 36 case study of s&amp;p 500
Cmt learning objective 36   case study of s&amp;p 500Cmt learning objective 36   case study of s&amp;p 500
Cmt learning objective 36 case study of s&amp;p 500
 
IRJET - Stock Recommendation System using Machine Learning Approache
IRJET - Stock Recommendation System using Machine Learning ApproacheIRJET - Stock Recommendation System using Machine Learning Approache
IRJET - Stock Recommendation System using Machine Learning Approache
 
PPT_Sanjeev
PPT_SanjeevPPT_Sanjeev
PPT_Sanjeev
 
Kondal Kolipaka.pptx
Kondal Kolipaka.pptxKondal Kolipaka.pptx
Kondal Kolipaka.pptx
 
Six sigma
Six sigma Six sigma
Six sigma
 
Six sigma pedagogy
Six sigma pedagogySix sigma pedagogy
Six sigma pedagogy
 
Predictive Analysis - Using Insight-informed Data to Determine Factors Drivin...
Predictive Analysis - Using Insight-informed Data to Determine Factors Drivin...Predictive Analysis - Using Insight-informed Data to Determine Factors Drivin...
Predictive Analysis - Using Insight-informed Data to Determine Factors Drivin...
 
Application_of_Deep_Learning_Techniques.pptx
Application_of_Deep_Learning_Techniques.pptxApplication_of_Deep_Learning_Techniques.pptx
Application_of_Deep_Learning_Techniques.pptx
 
Seven Basic Quality Control Tools أدوات ضبط الجودة السبعة
Seven Basic Quality Control Tools أدوات ضبط الجودة السبعةSeven Basic Quality Control Tools أدوات ضبط الجودة السبعة
Seven Basic Quality Control Tools أدوات ضبط الجودة السبعة
 
Useful Tools for Problem Solving by Operational Excellence Consulting
Useful Tools for Problem Solving by Operational Excellence ConsultingUseful Tools for Problem Solving by Operational Excellence Consulting
Useful Tools for Problem Solving by Operational Excellence Consulting
 
ANALYSIS AND PREDICTION OF RAINFALL USING MACHINE LEARNING TECHNIQUES
ANALYSIS AND PREDICTION OF RAINFALL USING MACHINE LEARNING TECHNIQUESANALYSIS AND PREDICTION OF RAINFALL USING MACHINE LEARNING TECHNIQUES
ANALYSIS AND PREDICTION OF RAINFALL USING MACHINE LEARNING TECHNIQUES
 
Summer 2015 Internship
Summer 2015 InternshipSummer 2015 Internship
Summer 2015 Internship
 
HEHEH
HEHEHHEHEH
HEHEH
 
HEHEH
HEHEHHEHEH
HEHEH
 
Ecm time series forecast
Ecm time series forecastEcm time series forecast
Ecm time series forecast
 

Recently uploaded

Current Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLCurrent Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLDeelipZope
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINESIVASHANKAR N
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSRajkumarAkumalla
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingrakeshbaidya232001
 
Analog to Digital and Digital to Analog Converter
Analog to Digital and Digital to Analog ConverterAnalog to Digital and Digital to Analog Converter
Analog to Digital and Digital to Analog ConverterAbhinavSharma374939
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024hassan khalil
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )Tsuyoshi Horigome
 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024Mark Billinghurst
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerAnamika Sarkar
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxupamatechverse
 
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...ZTE
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...RajaP95
 
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Serviceranjana rawat
 

Recently uploaded (20)

9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
 
Current Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLCurrent Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCL
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writing
 
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINEDJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
 
Analog to Digital and Digital to Analog Converter
Analog to Digital and Digital to Analog ConverterAnalog to Digital and Digital to Analog Converter
Analog to Digital and Digital to Analog Converter
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )
 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptx
 
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
 
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
 

Stock Market Prediction Using Regression Techniques

  • 1. TRIBHUVAN UNIVERSITY INSTITUTE OF ENGINEERING PASHCHIMANCHAL CAMPUS A Thesis final Presentation on Performance Analysis and Prediction of Stock Market for Investment Decision using Regression Techniques. Supervised by: Presented by: Er. Sharan Thapa Hari K.C. 072/MSCK/403 1
  • 2. Outline • Introduction • Problem statement • Objective • Literature Review • Methodology • Data collection and Tools used • Result and Discussion • References 2
  • 3. Introduction • This thesis focus on study of Stock Market and its performance over different time period. • The core of the study is to determine the effective regression technique to predict the stock price for four different companies. • These companies are randomly selected from the different sectors such as Banking sector, Insurance sector, Hydropower and Hotels • Also, this thesis helps in identifying the investment decision before investing on different companies. 3
  • 4. Introduction (contd...) Stock Market • Share or Stock is an indivisible unit of capital that represent the equal proportion of a company capital. • The more a share is transacted, the more it is valuable. • Stock Market stock values varies based on “Demand and Supply strategy” • Stock Market is widely used investment scheme promising high returns but it has risks. 4
  • 5. Problem Statement • Stock values are changing depending on the market conditions day by day. • The challenge is to guide the investors for the right time to buy and sell the shares. • There are many regression and classifiers available for the prediction. • Need for determining the best technique that provide better result in predicting the stock prices and give accurate trends. 5
  • 6. Objective • To analyze and predict the stock price for investment decision using regression techniques • To compare the accuracy of different Machine Learning regression techniques. • To compare the actual and predicted stock price 6
  • 7. Literature Review 7 Date 2012 A.D 2014 A.D 2016 A.D Research Forecasting of Stock market of NASDAQ and S&P 500 Prediction of Bombay Stock Exchange Market Returns (BSE) Prediction of Stock Market of Karachi Stock Exchange Research paper writer S. Shen, T. Zheng Y. Perwej and A. Perwej Kamran Raza Features in Research Uses SVM Uses ANN and GA Used ARIMA and SVR Parameters used in Research Gold and silver rates + Oil rates+ Historical stock price Historical stock price Different oil rates+ gold and silver rates+ historical stock price + Foreign exchange
  • 8. Methodology 8Figure: Diagram of system model for analysis and prediction of NEPSE stock data
  • 9. Methodology • Preprocessing • Stock data are incomplete and noisy so, stock data are cleaned and outliers are removed. • Interest Rate Correlation is performed to find the relation of Interest rate to stock closing price. • Stock Data moving Average and Deviation are also performed to see previous stock market performance. • Stock News of different companies are pre-processed to determine the positive and negative sentiment . 9
  • 10. Methodology 10 Deviation curve of Agricultural Development Bank Ltd Figure: Deviation Curve of ADBL. Lots of Fluctuations is seen from 2013 to 2017. During 2016-07 to 2017-01 , the deviation constantly decreasing which is due to the uniform decrement in Stock Closing Price. In this time period, right share has been issued to shareholders .
  • 11. Methodology 11 Table: Correlation Coefficient of Agricultural Development Bank Ltd This table shows the correlation of Stock Price of different Companies with the Interest Rate. Three Companies Agricultural Development Bank Ltd, Asian Life Insurance , TaraGaon Regency Hotels have Negative correlation Coefficient . It means during five years time period, they follows the statement “ Decrease in Interest rate is directly proportional to increase in stock investment.” But Arun Hydro power do not follow this since it has positive correlation coefficient. Company Correlation Coefficient with Interest Rate ADBL -0.609354 ALICL -0.859071 AHPC 0.620511 TRH -0.026552
  • 12. Methodology 12 Sentiment Index of Agricultural Development Bank Ltd This Pie chart shows that almost 58.8 percent news are positive and sentiment index is also quite good. This indicate that the investors feel no risk to invest their money in ADBL with positive response. Figure: Pie Chart for Agricultural Development Bank Ltd.
  • 13. Methodology 13 Moving Average of Agricultural Development Bank Ltd This graph shows the change of trend in two major time period (2014 A.D) and (2016 A.D) . At this time, more share transactions takes place. Trade the share when 50 MA crosses the 100 MA but exit the trade if next time 50MA again crosses the 100 MA. Figure: Moving Average graph for Agricultural Development Bank Ltd.
  • 14. Methodology • Normalization • Suitable data and feature is generated using Normalization. • After preprocessing ,Normalization involves making the interest rate and stock sentiment data suitable to adjust with stock closing price. • And finally , feature vector is developed which represent the standard form of data. • This feature vector represent the final dataset for prediction. 14
  • 15. Methodology • Regression • Linear Regression • Polynomial Regression • Radial Basis Function Regression 15
  • 16. Methodology • Linear Regression • Supervised Machine Learning Technique. • A commonly used predictive analysis. • It gives best predicted output for linear set of data but not for nonlinear data. Y=m*X +C • Regression Line fits the data to predict the stock price • Best fit slope : m=average(X) * average(Y) C= average(Y) – m * average(X) 16
  • 17. Methodology • Linear Regression(contd...) • Linear regression can provide reasonable and fair results after normalization with no parameter tuning. • Linear regression is good for an ideal training window. • It gives good result for relatively short periods. • It is sensitive to window size changes. 17
  • 18. Methodology • Polynomial Regression • Supervised Machine Learning Technique. • Polynomial is a kernel of Support vector regression to fits data representing curve. Y = a + ß1*X + ß2* X^2 + ß3* X^3 (degree is set to 3) • Multiple trials can be performed in polynomial regression. • Better prediction of subset of testing data but tends to diverged abruptly at different time periods. • It is sensitive to window size changes. 18
  • 19. Methodology • RBF Regression • Radial Basis Function (RBF) tends to fix the divergent behaviour which is constantly seen in Polynomial kernel. • It fits data representing gaussian function. g(n) = Wt * f(n) , f(n) =exp[- (X(n) – Ck )2 / w] where W= Width and w = spread • The RBF kernel performed the best on average for each month that it was tested on. • RBF kernel is not sensitive to window size changes. 19
  • 20. Data Collection and Tools Used 20 • Stock datasets from Nepal Stock Exchange(NEPSE). • Interest Rate data from Nepal Rastra Bank. • Stock News from ShareSansar and Nepal Stock Exchange(NEPSE) • Use of Python Programming Language.
  • 21. Result and Discussion (Data fitting) 21Data fitting by RBF regression is best than that of linear and Polynomial regression.
  • 22. Result and Discussion (Comparision) 22 NEPSE stock exchange Karachi stock exchange Regression/Companies Linear Accuracy RBF Accuracy Polynomial Accuracy RBF Accuracy 1) ADBL 14% 80% 38% 63% (Data sets of KSE-100 index) 2) ALICL 5% 77% 47% 3) AHPC 21% 85% 67% 4) TRH 14% 80% 78% In 2016/2017 , Karachi Stock Exchange currently known as Pakistan Stock exchange accuracy is 63 percent using Radial Basis Function .
  • 23. Result and Discussion (Validation) 23 NEPSE stock exchange S&P 500 (Data set of GOOGLE) Regression/Companies Linear Accuracy RBF Accuracy Polynomial Accuracy Linear RBF Polynomial 1) ADBL 14% 80% 38% 12% 66% 22% 2) ALICL 5% 77% 47% 3) AHPC 21% 85% 67% 4) TRH 14% 80% 78%
  • 24. Result and Discussion (Actual vs Predicted Stock Price) 24 Prediction Error = (|(ActualAverage – PredictedAverage) / ActualAverage| ) *100% =|(446.73-450.05)/ 446.73| *100% =0.74 % Prediction Error =(| 1603.13 – 1394.22| / 1603.13) * 100% = 13.03 %
  • 25. Result and Discussion (Actual vs Predicted Stock Price) 25 Prediction Error = ((|295.93- 270.90| )/ 295.93) * 100 % = 8.45% Prediction Error = ((|267.46- 284.46| )/ 267.46) * 100 % =6.35 %
  • 26. Result and Discussion ( Predicting Stock Price) 26 DATE ADBL PREDICTED PRICE(Rs) 11/1/2017 437.67 11/2/2017 442.57 11/3/2017 445.17 11/4/2017 449.38 11/5/2017 442.59 11/6/2017 431.89 11/7/2017 431.42 11/8/2017 432.78 11/9/2017 424.87 11/10/2017 425.85 11/11/2017 426.36 11/12/2017 442.92 11/13/2017 443.14 11/14/2017 444.35 11/15/2017 446.21 DATE ALICL PREDICTED PRICE(Rs) 11/1/2017 1298.5 11/2/2017 1299.1 11/3/2017 1306.58 11/4/2017 1310.86 11/5/2017 1268.34 11/6/2017 1268.44 11/7/2017 1284.61 11/8/2017 1276.19 11/9/2017 1281.96 11/10/2017 1280.39 11/11/2017 1293.49 11/12/2017 1309.54 11/13/2017 1320.26 11/14/2017 1351.94 11/15/2017 1332.52
  • 27. Result and Discussion ( Predicting Stock Price) 27 DATE AHPC PREDICTED PRICE(Rs) 11/1/2017 263.13 11/2/2017 262.82 11/3/2017 262.70 11/4/2017 260.95 11/5/2017 261.46 11/6/2017 260.64 11/7/2017 262.67 11/8/2017 262.55 11/9/2017 259.72 11/10/2017 261.79 11/11/2017 262.21 11/12/2017 260.52 11/13/2017 261.30 11/14/2017 262.38 11/15/2017 258.68 DATE TRH PREDICTED PRICE(Rs) 11/1/2017 211.55 11/2/2017 217.43 11/3/2017 222.63 11/4/2017 221.24 11/5/2017 219.56 11/6/2017 218.00 11/7/2017 212.59 11/8/2017 213.81 11/9/2017 202.45 11/10/2017 206.44 11/11/2017 211.59 11/12/2017 208.08 11/13/2017 206.06 11/14/2017 206.25 11/15/2017 207.90
  • 28. Result and Discussion( Summary ) 28 Public Companies/ Parameter ADBL ALICL AHPC TRH 1) Stock Sentiment Index 64.70 % 72.72% 78.94% 64.28 % 2)Moving Average 100MA <50MA 100MA <50MA 100MA =50MA 100 <50MA 3) Regression Accuracy 80% 77% 85% 80% 4) InterestRate Correlation -0.609354 -0.859071 0.62051 -0.026552 5)MaximumAverage Prediction Error 2.08% 13.65% 26.17% 11.18% ADBL has low prediction error than others and its other parameters are quite good. So, first investment priority is given to ADBL.
  • 29. Snap Shots of Program 29
  • 30. Conclusion • It has been concluded that predicting the stock price using RBF regression gives maximum accuracy and less prediction error than other regressions . • RBF kernel is the most consistent for accurate prediction than linear and polynomial kernel. • The four companies listed in NEPSE are compared with number of parameters to set the investment priority for the investors. • According to experiment conducted , ADBL has the highest investment priority compared to other companies. 30
  • 31. Future Work • In future, Optimized RBF technique can also be used that optimize spread and width parameter to decrease error rate. • The new kernel function or technique can be designed which gives better performance with low error rate and high accuracy. 31
  • 33. 33
  • 34. 34