SlideShare ist ein Scribd-Unternehmen logo
1 von 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

Weitere ähnliche Inhalte

Was ist angesagt?

Stock Market Prediction using Machine Learning
Stock Market Prediction using Machine LearningStock Market Prediction using Machine Learning
Stock Market Prediction using Machine Learning
ijtsrd
 

Was ist angesagt? (20)

Stock market prediction using data mining
Stock market prediction using data miningStock market prediction using data mining
Stock market prediction using data mining
 
STOCK MARKET PREDICTION
STOCK MARKET PREDICTIONSTOCK MARKET PREDICTION
STOCK MARKET PREDICTION
 
Stock Market Price Prediction Using Technical Analysis
Stock Market Price Prediction Using Technical AnalysisStock Market Price Prediction Using Technical Analysis
Stock Market Price Prediction Using Technical Analysis
 
Stock 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
 
Presentation1
Presentation1Presentation1
Presentation1
 
STOCK MARKET PREDICTION
STOCK MARKET PREDICTIONSTOCK MARKET PREDICTION
STOCK MARKET PREDICTION
 
stock market prediction
stock market predictionstock market prediction
stock market prediction
 
Stock Price Prediction
Stock Price PredictionStock Price Prediction
Stock Price Prediction
 
Stock Market Prediction
Stock Market PredictionStock Market Prediction
Stock Market Prediction
 
Machine learning prediction of stock markets
Machine learning prediction of stock marketsMachine learning prediction of stock markets
Machine learning prediction of stock markets
 
Stock Market Prediction
Stock Market Prediction Stock Market Prediction
Stock Market Prediction
 
Stock Market Prediction using Machine Learning
Stock Market Prediction using Machine LearningStock Market Prediction using Machine Learning
Stock Market Prediction using Machine Learning
 
Google Stock Price Forecasting
Google Stock Price ForecastingGoogle Stock Price Forecasting
Google Stock Price Forecasting
 
Machine learning: Stock Price Prediction
Machine learning: Stock Price PredictionMachine learning: Stock Price Prediction
Machine learning: Stock Price Prediction
 
Stock Market Prediction using Machine Learning
Stock Market Prediction using Machine LearningStock Market Prediction using Machine Learning
Stock Market Prediction using Machine Learning
 
Stock Price Prediction PPT
Stock Price Prediction  PPTStock Price Prediction  PPT
Stock Price Prediction PPT
 
House Price Prediction An AI Approach.
House Price Prediction An AI Approach.House Price Prediction An AI Approach.
House Price Prediction An AI Approach.
 
A project report on technical analysis at share khan
A project report on technical analysis at share khanA project report on technical analysis at share khan
A project report on technical analysis at share khan
 
Stock-market-prediction.pptx
Stock-market-prediction.pptxStock-market-prediction.pptx
Stock-market-prediction.pptx
 
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
 

Ähnlich wie PERFORMANCE ANALYSIS and PREDICTION of NEPAL STOCK MARKET (NEPSE) for INVESTMENT DECISION using MACHINE LEARNING TECHNIQUES

Big Data Project - Final version
Big Data Project - Final versionBig Data Project - Final version
Big Data Project - Final version
Mihir 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 Semiconductor
Xuanhua(Peter) Yin
 
Summer 2015 Internship
Summer 2015 InternshipSummer 2015 Internship
Summer 2015 Internship
Taylor Martell
 

Ähnlich wie PERFORMANCE ANALYSIS and PREDICTION of NEPAL STOCK MARKET (NEPSE) for INVESTMENT DECISION using MACHINE LEARNING 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 pedagogy
Six sigma pedagogySix sigma pedagogy
Six sigma pedagogy
 
Six sigma
Six sigma Six sigma
Six sigma
 
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
 
Predicting House Prices: A Machine Learning Approach
Predicting House Prices: A Machine Learning ApproachPredicting House Prices: A Machine Learning Approach
Predicting House Prices: A Machine Learning Approach
 
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
 

Kürzlich hochgeladen

notes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptnotes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.ppt
MsecMca
 
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Kandungan 087776558899
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
dollysharma2066
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
dharasingh5698
 

Kürzlich hochgeladen (20)

data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdf
 
Employee leave management system project.
Employee leave management system project.Employee leave management system project.
Employee leave management system project.
 
notes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptnotes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.ppt
 
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torque
 
chapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringchapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineering
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - V
 
Block diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.pptBlock diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.ppt
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . ppt
 
Work-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptxWork-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptx
 
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
 
22-prompt engineering noted slide shown.pdf
22-prompt engineering noted slide shown.pdf22-prompt engineering noted slide shown.pdf
22-prompt engineering noted slide shown.pdf
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPT
 
Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
 
Introduction to Serverless with AWS Lambda
Introduction to Serverless with AWS LambdaIntroduction to Serverless with AWS Lambda
Introduction to Serverless with AWS Lambda
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghly
 
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
COST-EFFETIVE  and Energy Efficient BUILDINGS ptxCOST-EFFETIVE  and Energy Efficient BUILDINGS ptx
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
 
2016EF22_0 solar project report rooftop projects
2016EF22_0 solar project report rooftop projects2016EF22_0 solar project report rooftop projects
2016EF22_0 solar project report rooftop projects
 
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
 

PERFORMANCE ANALYSIS and PREDICTION of NEPAL STOCK MARKET (NEPSE) for INVESTMENT DECISION using MACHINE LEARNING 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