You are on page 1of 15

Innovative Computing Review (ICR)

Volume 1 Issue 1, Summer 2021


SSN(P): 2791-0024 ISSN(E): 2791-0032 Journal
DOI: https://doi.org/10.32350/icr
Issue DOI: https://doi.org/10.32350/icr.0101
Homepage: https://journals.umt.edu.pk/index.php/icr

Article: Stock Exchange Prediction through Regression Journal QR

Author(s): Maira kamran, Marium Malik, Salman Mehmood

Article QR
Affiliation: Department of Software Engineering, The Superior College, Lahore, Pakistan

Received: February 27, 2021


Article History: Revised: June 7, 2021
Accepted: June 30, 2021
Available Online: June 30, 2021

M. Kamran, M. Malik, and S. Mehmood, “Stock Exchange


Citation: Prediction through regression”, Innov Comput Rev, vol. 1, no. 1,
pp. 28–42, 2021.
https://doi.org/10.32350/icr.0101.03

Copyright
Information: This article is open access and is distributed under the terms of
Creative Commons Attribution 4.0 International License

A publication of the

School of Systems and Technology

University of Management and Technology, Lahore, Pakistan


Stock Exchange Prediction through Regression Technique
Maira Kamran1, Marium Malik1, Salman Mehmood1

ABSTRACT: Stock exchange forecast important for all small and large scale
has become an attractive research companies for financial benefits and
because of its essential job in the low risk. People either gain and lose
economy and profitable offers. In the money their whole life for saving in
stock exchange, the choice of when stock activities [1]. It is difficult to build
purchasing or selling stock is significant an accurate model and there is a various
so as to achieve interest. There are many factor that makes stock ups and down
methods that can be appropriated to help such as Investors, Interest rate,
businesspeople so as to resolve a choice dividends, Management, Economy,
for financial benefit. In this survey Political Climate. In the stock trade, the
work, I have introduced a Forecast most widely recognized and open
Algorithm that will give the connection market is quality to the market stocks
between the dependent factor-like cost where the passage Investment is low as
and Independent factors like First, Last, 1USD. The Performance of financial
Close, Open, att1, DTYYYMMDD, exchanges is estimated every day by
VALUES, PRE LOW, TICKER, VOL, some key pointers, for example, 'share
OPENING stock values and qualities. list', which is a performance of measure
In this review, I have clarified the of and certain stocks picked from the
change of the stock value forecast with various segments of the market [2].
the utilization of regression The more exact the forecast
investigation a calculation. Here prediction, the more efficient it can
regression is utilized to predict the stock maintain a strategic distance from risk
cost of an organization for a specific [3]. Cost of stocks change with reasons.
date. While a barely any individuals
INDEX TERMS: prediction, regression acknowledge that it is hard to track
down the changes, others accept that
I. INTRODUCTION
seeing past worth turns of events and
Stock market prediction is very charts can choose when you should buy
important for business people and and sell [4].
common people. Forecasting is

1
Maira Kamran, Marium Malik, Salman Mehmood. The authors are with Department of
Software Engineering, The Superior College, Lahore, 54700, Pakistan.
Mariam Malik is the corresponding author available at maryammalick2@gmail.com

School of Systems and Technology


29
Volume 1 Issue 1, Summer 2021
Stock Exchange Prediction through Regression...

If they forecast the future behaviour successful in stock market forecasting


of the stock market price they can in stock price trading.
follow up on it and make a profit [5]. In the Data mining technique, there
Stocks are unpredictable, which means are various strategies that are overcome
prices can change quickly. That change this vulnerability. For example
affects on the people behaviour in the Regression, SVM, neural system etc. As
term of the investment or capital saving. the Data mining technique is ordered
The stock price, increases or decreases into a Predictive method or strategy,
the risk for investors [5]. Therefore, Regression is a predictive technique. A
commonly, Stock market prediction Regression technique is utilized to
through multiple techniques and rapid forecast the stock cost of a specific
mining tools. It will help the investors organization [8].In this paper, we did
for taking the risk with greater stock market prediction and highlight
confidence and volatility of finance into the various data mining technique and
a plan and know when to buy and sell their success rate. By using a linear
higher and cheapest prices.
regression technique, with the dataset
Some different researchers used the (“Daily news of stock market
methods of technical examination, rules prediction”) and behavior at the end we
where exchanging and created the compare the result with other
historical information of the stock approaches.
exchanging cost or volume [6]. The
II. LITERATURE REVIEW
framework is likewise it expected or
consider the factors and it may affect ‘Sadegh Bafandeh et.al proposed a
stock's worth and execution. There are forecast of stock value return is a very
different techniques and methods of uncertain and difficult responsibility in
executing the expectation framework data of the fact that there are many
like Machine Learning, Technical variables with the end object that may
Analysis, Market Mimicry, impact stock costs. A particular desire
Fundamental Analysis, and Time- for improvement heading of the stock
arrangement viewpoint organizing. rundown is noteworthy for investigators
With the way of the advanced time, the to make amazing business sector trading
forecast has climbed into the innovative approachs. This exploration endeavored
domain. The most promising strategy to make three models and inspected
includes the utilization of RNN and their features in introducing the title of
Artificial Neural Networks, which is headway reliably Tehran Stock
basically the execution of AI [7].The Exchange (TSE) list. The models rely
data mining technique could be on three classifier techniques, DT, RF,
and Naïve Bayesian Classifier. Choice

Innovative Computing Review


30
Volume 1 Issue 1, Summer 2021
Kamran, Malik and Mehmood

Tree model (80.08%) was found better the qualities anticipated the future
than RF (78.81%) and Naïve Bayesian exchanging of the offers will happen
Classifier (73.84%) [9]. [11].
Ayman E.khedr ET. AL introduced Dr. S. Radhimeenakshi Et.AL proposed
the Stock market forecast has enhanced a Forecasting stock return is a
an engaging research topic because of significant budgetary subject that has
its vital role in the market and profitable pulled in analysts' idea for a long time.
offers. An order survey is utilized to It includes a suspicion that central data
estimate securities exchange conduct. openly accessible in the past has some
They use NB and K-NN estimations to prescient connections later on stock
build up a model. The underlying returns.C4.5 as proposed technique ID3
advance is to examine news past calculation And it creates choice
presumptions to get the substance limit tree standard TDIDT. What's more,
using the Naïve Bayesian figuring. This C4.5result proposed [12].
development accomplished want Sahaj ET.AL proposed the
accuracy results going 72.73% - protections trade gauge has been a
86.21%. The ensuing advancement locale of energy for money related
joins news and recorded stocks cost experts similarly as researchers for quite
together envision future stock expenses. a while in light of its temperamental,
This is perfect exactness of up to complex and constantly changing in
89.80%. Dataset has stock expenses nature, making it difficult to make solid
from 3 affiliations is used [10]. needs. The Random Forest model using
R. Gnanavel proposed Stock market a 1-gram model for content assessment
exchanging is an important financial made a precision of 84.3% and on using
action of a global society that supports a 2-gram model passed on the exactness
people to earn cash. Adapted GARCH of 86.2%. The straight Support Vector
conditioned on the decision tree Machine using a 1-gram model and 2-
calculation. The Auto-Regressive gram model for content appraisal made
Conditional Heteroskedasticity (GARCH) needs with a precision of 82.2% or
Algorithm to help with the estimating of 84.6%, while the nonlinear Support
the stock cost. The model improves the Vector Machine passed on measures
precision of the structure by 13% when with an exactness of 85.1% for both 1-
compared and the current model. The gram and 2-gram models. We have seen
forecast of the offers in the financial that the Random Forest Model
exchange includes anticipating the thrashings the Support Vector Machine
future estimations of an organization or while using the given dataset [13].
association's stock by preparing the data
utilizing information mining. In light of

School of Systems and Technology


31
Volume 1 Issue 1, Summer 2021
Stock Exchange Prediction through Regression...

Dinesh Bhuriya ET.AL proposed superior, and relapse is utilized to


straight relapse for estimating conduct anticipate the stock cost of an
of TCS informational collection, we organization for a specific date [8].
demonstrate that our proposed strategy Rohan ET.AL Proposed Stock
is ideal to analyze the other relapse market forecast is the model of deciding
procedure technique and the investors future estimations of an organization's
can contribute privately dependent on stock costs. It helps individuals who
that. Based on this pressure we have an extraordinary degree in putting
investigated that the straight relapse their cash in stocks and to accomplish
model gives the best outcome higher benefits. Utilized relapse as an
contrasted with polynomial and RBF ML method. The utilization of
regression [14]. Prediction and relapse encourages us to
Ayman ET.AL proposed Stock discover blunders and improve the
market expectation has become an precision of the framework. It tends to
alluring examination subject because of be exceptionally valuable for financial
its significant job in the economy and specialists to utilize this to increase the
helpful offers. A dataset of stock costs most extreme benefit [16].
contain three affiliations are utilized. Dev Shah ET.AL proposed Stock
Hidden development is take a gander at market want has dependably grabbed
news tendency to get the substance the eye of different operators and
farthest point utilizing the navïe Bayes specialists. Taking everything into
check. This development accomplished account, acknowledged speculations
want precision results running from recommend that insurances exchanges
72.73%-86.21%. The subsequent are essentially an inconsistent and it is
development consolidates news and bonehead's down for attempt to imagine
stock costs together to Futher stock them Forecasting stock costs is
costs. This improves measure exactness problematic issue itself in light. The
to 89.80% [15]. amount of factors that is consolidated.
Janki ET. AL proposed that the They first give a short diagram of
prediction of the securities exchange securities exchanges and coherent
has been an alluring point to the grouping of financial exchange want
stockbrokers. In the financial exchange, techniques. They rotate around a touch
the choice of when purchasing or selling of the appraisal accomplishments in
stock is significant so as to accomplish stock assessment and want [17].
benefit. A grouping calculation and loss Priyanka ET.AL proposed the
are utilized. A grouping calculation is expectation of offer costs is the capacity
accustomed to parceling the of choosing the future cost of an
information and it additionally gives the

Innovative Computing Review


32
Volume 1 Issue 1, Summer 2021
Kamran, Malik and Mehmood

organization stock or other business structure has strikingly been improved


machine exchanged. Expectations of [20].
certain developments permitted from AyuKurnia Sari portrays the
certain examples can be found. explanation behind this assessment is
Guileless Bayes, direct model, K-NN, the differentiation in cash related extents
and profound learning. Also, result in between associations experiencing
92.86%, Naive Bayes 60%, GLM budgetary torment with associations that
86.67%, and K-NN 80% [18]. don't experience fiscal hopelessness.
Shila Jawale ET.AL Stock market is The built-up model can anticipate the
an exceptionally unpredictable space. state of money related pain and non-
Precisely foreseeing the adjustments in monetary misery in two years and one
the stock costs may demonstrate year before the episode every one of
exceedingly beneficial to the financial 96.1% and 93.4%. The built-up model
specialists and help them in settling on had the option to anticipate the state of
more intelligent choices. This monetary trouble and non-money
examination subject uses Twitter's related misery in two years and one year
conclusion investigation to get the before the occurrence [21].
general supposition of the clients Aditya Bhardwaj and Yogendra
towards the organization being referred Narayanb do supposition investigation
to which preferably prompts the for securities exchange expectations, for
adjustments in the financial exchange example, Sensex or Nifty have been
costs. Arbitrary Forest The calculation done to foresee cost of stock. Sensex
utilized and results give a superior and Nifty are utilized to foresee the
connection of positive, unbiased market minutes. In the event that Sensex
measurements, negative [19]. and Nifty go up, at that point stocks
Minh Dang ET.AL stock exchange went up during the given time frame.
desire using cash related news has Creator utilized the Sensex and Nifty
improved the relationship between's the Algorithm to fabricate the model which
financial news and the stock expenses. we use for Sentiment Analysis for Stock
To achieve that, the financial news and Market Prediction. As per creator
the stock expenses were collected for expectation, the exactness of the created
the cautious tests. We have achieved a framework was 64.4 %, and this
gigantic high precision at 73%. superior to traditional framework.
Moreover, and clear the delicate stock Creator assembling the information
tickers in the VN30 record by the from Sensex and Nifty live information
specific markers and the results for estimation investigation [22].
exhibited that the grandstand of the

School of Systems and Technology


33
Volume 1 Issue 1, Summer 2021
Stock Exchange Prediction through Regression...

III. DESCRIPTION OF EXISTING WORK


Table 1
DESCRIPTION OF EXISTING WORK

Performance

Consistence
Availability

Acceptance

Capability
Accuracy

Response

Usability
Security
Title Method

time
Prediction stock price using data DT ✓ ✓ ✓ X X ✓ X ✓ X
mining technique
Financial Stock Market Forecast CMI ✓ ✓ X X X ✓ ✓ ✓ X
using Data Mining Techniques RSI
SMI
Boilinger Bands
Applying Data Mining Techniques DT ✓ ✓ ✓ X ✓ X ✓ ✓ ✓
to Stock Market Analysis
Stock Trend Prediction Using Regression X X ✓ X X ✓ X ✓ X
Regression Analysis – A Data
Mining Approach
Forecasting the direction of stock DT,RF, ✓ ✓ ✓ ✓ ✓ X ✓ ✓ ✓
market index Tehran Stock and
Exchange
Naïve

Innovative Computing Review


34
Volume 1 Issue 1, Summer 2021
Kamran, Malik and Mehmood

Performance

Consistence
Availability

Acceptance

Capability
Accuracy

Response

Usability
Security
Title Method

time
Stock Price Prediction using Linear Regression ✓ ✓ X X X X X X X
Regression based on Sentiment RF, Naive
Analysis
Analyzing and Predicting Stock SMA, EMA, MACD, ✓ ✓ X X X ✓ X X X
Market Using Data Mining RSI, MFI, PVT.
Techniques
Prediction Models for Indian Stock DT ,Regression ✓ ✓ X X ✓ X X ✓ ✓
Market
Predicting Stock Market Behavior Navïe Bayes algorithm ✓ ✓ X ✓ X X X ✓ ✓
using Data Mining Technique and
News Sentiment Analysis
Improvement Methods for Stock SVM ✓ ✓ X ✓ ✓ X X X X
Market Prediction using Financial
News Articles
Predicting Stock Market Behavior Traditional forecast ✓ ✓ ✓ ✓ ✓ ✓ X X X
using Data Mining Technique and
News Sentiment Analysis
Stock Market Forecasting using GARCH Method ✓ ✓ X X ✓ X X X X
Decision Tree and GARCH Method And Decision tree
Method

School of Systems and Technology


35
Volume 1 Issue 1, Summer 2021
Stock Exchange Prediction through Regression...

Performance

Consistence
Availability

Acceptance

Capability
Accuracy

Response

Usability
Security
Title Method

time
Prediction of Stock Market Using Decision tree ✓ X X X X X X X X
Data Mining Algorithm Based on
Historical Prices
Stock Market Prediction using Random Forest model ✓ ✓ X X X X X X X
Data Mining Techniques and Support Vector
Machine
Stock Market Analysis: A Review ARIMA,ESN K-mean, ✓ ✓ X X ✓ X X X X
and Taxonomy of Prediction Clustering and RNN
Techniques models
An Efficient Prediction of Share Naive Bayes, linear ✓ ✓ X ✓ ✓ X X X X
Price using Data Mining model, K-NN and deep
Techniques learning
PREDICTION ON STOCKS Random Forest ✓ X X X X X X X X
USING DATA MINING Algorithm used
Financial Distress Analysis on - ✓ ✓ X ✓ ✓ X X X X
Indonesia Stock Exchange
Companies
Sentiment Analysis for Indian Stock Sensex and Nifty ✓ ✓ X ✓ X X X X X
Market Prediction Using Sensex Algorithm
and Nifty

Innovative Computing Review


36
Volume 1 Issue 1, Summer 2021
Kamran, Malik and Mehmood

IV. WORK OR IMPLEMENTATION attributes like <First>, <Last>, <close>,


<open>,<att1>,<DTYYYMMDD>,VA
A. Linear Regression
LUES>,<PRE><LOW><TICKER><V
It can predict the numerical values. OL><OPENINT>.The important factor for
Regression performs on that dataset the prediction above in figure. Dataset
where all target is defined and result can contain total 2807 rows and 13 columns.
be expended by adding new
information. The regression established B. Table and Figures
the target and forecast value and make We have taken <High>, <Low> for our
pattern. The pattern can be used on analysis. Blow in the 2d Graph between
dataset. The dataset used is Tehran <High>, <Low>.
stock exchange prediction with

Fig. 1. Important factors for prediction

Fig. 2. <Low> and <High> graph plot

School of Systems and Technology


37
Volume 1 Issue 1, Summer 2021
Stock Exchange Prediction through Regression...

Fig. 3. Average HIGH value between 2000 and 5000

Fig.4. Compare actual vs predictive value


Next will check the average HIGH Now we visualized data in bar graph
value and ones we plot it we observed we have huge no of records for
the average value between the 2000 to representation we take 40 records.
5000. Now the predicted and actual data is
We use our test data and see how presented in histogram chart in Figure 5
test data predict and compare the actual to provide a comparative view between
value to predicted value below in the them. Showing the accuracy of
table predicted trends.

Innovative Computing Review


38
Volume 1 Issue 1, Summer 2021
Kamran, Malik and Mehmood

Fig. 5. Test data histogram

Fig. 6. Prediction vs data set


The straight line in graph shown that that’s mean algorithm still give
our algorithm is correct. We have see reasonable good forecast. Its accuracy is
the value of prediction is 0.95547813 better than some other technique.

School of Systems and Technology


39
Volume 1 Issue 1, Summer 2021
Stock Exchange Prediction through Regression...

V. CONCLUSION Cybernetics, vol. 11, no. 6, pp.


1307-1317, 2020. https://doi.org/
I have referred stock exchange
10.1007/s13042-019-01041-1
forecast related paper, it gives some of
Data mining methods or Machines [4] M. Mike-Hana Fongang and N.
learning technique like Decision tree Ahmadi, "The Impact of a
and regression for the Prediciton of Pandemic (COVID-19) on the
stock cost. We can suppose that the Stock Markets: A Study on the
historical information shows worth Stock Markets of China, US and
relies upon various components that can UK,", 2020.
help anybody by predicting the [5] D. Bhuriya, G. Kaushal, A.
evaluation of the stock. The applying Sharma, and U. Singh, "Stock
algorithm will improve more accurate market predication using a linear
values. I have assumed the data from the regression," in 2017 International
Tehran stock exchange prediction. After
Conference of Electronics,
applying the regression technique it
Communication and Aerospace
gives accuracy 0.95547813 that’s mean Technology (ICECA), 2017, vol. 2,
algorithms still gives a reasonably good pp. 510-513: IEEE. https://doi.org/
prediction. 10.1109/ICECA.2017.8212716
REFERENCES [6] Q. A. Al-Radaideh, A. A. Assaf,
[1] A. Nayak, M. M. Pai, and R. M. J. and E. Alnagi, "Predicting stock
P. C. S. Pai, "Prediction models for prices using data mining
Indian stock market," vol. 89, pp. techniques," in The International
441-449, 2016. https://doi.org/ Arab Conference on Information
10.1016/j.procs. 2016.06.096 Technology (ACIT’2013), 2013,
pp. 1-8.
[2] B. W. Wanjawa and L. J.
Muchemi, "Ann model to predict [7] K. H. Sadia, A. Sharma, A. Paul, S.
stock prices at stock exchange Padhi, and S. Sanyal, "Stock
markets," arXiv Preprint arXiv, market prediction using machine
2014. https://arxiv.org/abs/ 1502. learning algorithms," International
06434 Journal of Advances in
Technology, vol. 8, no. 4, pp. 25-
[3] G. Ding, L. J. I. Qin, and
31, 2019.
Cybernetics, "Study on the
prediction of stock price based on [8] J. Patel, M. Patel, and M. Darji,
the associated network model of "Stock Price Prediction Using
LSTM," International Journal of Clustering and Regression: A
Machine Learning and review," International Journal of

Innovative Computing Review


40
Volume 1 Issue 1, Summer 2021
Kamran, Malik and Mehmood

Scientific Research in Computer pp. 1543-1549: IEEE. https://doi.org/


Science, Engineering and Information 10.1109/ICCMC51019.2021.941830
Technology, vol. 3, no. 1, pp. 1967- 2
1971, 2018. [13] S. S. Maini and K. Govinda, "Stock
[9] S. B. Imandoust, M. J. market prediction using data
Bolandraftar, and Applications, mining techniques," in 2017
"Forecasting the direction of stock International Conference on
market index movement using Intelligent Sustainable Systems
three data mining techniques: the (ICISS), 2017, pp. 654-661: IEEE.
case of Tehran Stock Exchange," https://doi.org/10.1109/ISS1.
International Journal of Engineering 2017.8389253
Research and Applications, vol. 4, no. [14] D. Bhuriya, G. Kaushal, A.
6, pp. 106-117, 2014. Sharma, and U. Singh, "Stock
[10] I. S. Abuhaiba, H. M. Dawoud, and market predication using a linear
Applications, "Combining different regression," in 2017 international
approaches to improve Arabic text conference of electronics,
documents classification," International communication and aerospace
Journal of Intelligent Systems and technology (ICECA), 2017, vol. 2,
Applications, vol. 9, no. 4, p. 39- pp. 510-513: IEEE. https://doi.org/
52, 2017. 10.1109/ICECA.2017.8212716
[11] M. R. Naqvi, M. A. Jaffar, M. [15] A. E. Khedr, N. J. Yaseen, and
Aslam, S. K. Shahzad, M. W. Applications, "Predicting stock
Iqbal, and A. Farooq, "Importance market behavior using data mining
of Big Data in Precision and technique and news sentiment
Personalized Medicine," in 2020 analysis," International Journal of
International Congress on Human- Intelligent Systems and Applications,
Computer Interaction, Optimization vol. 9, no. 7, p. 22-30, 2017.
and Robotic Applications (HORA), [16] M. R. Naqvi et al., "A Concurrence
2020, pp. 1-6: IEEE.
Study on Interoperability Issues in
https://doi.org/10.1109/HORA49412. IoT and Decision Making Based
2020.9152842 Model on Data and Services being
[12] A. A. Rasheed, "Cognitive used during Inter-Operability,"
Analytics of Apple Products from LGURJCSIT, vol. 4, no. 4, pp. 73-
Crowdsourced Tweets," in 2021 85, 2020.
5th International Conference on [17] D. Shah, H. Isah, and F. J.
Computing Methodologies and Zulkernine, "Stock market
Communication (ICCMC), 2021,

School of Systems and Technology


41
Volume 1 Issue 1, Summer 2021
Stock Exchange Prediction through Regression...

analysis: A review and taxonomy news articles," in 2016 3rd


of prediction techniques," National Foundation for Science
International Journal of Financial and Technology Development
Studies, vol. 7, no. 2, p. 26, 2019. Conference on Information and
https://doi.org/10.3390/ijfs702002 Computer Science (NICS), 2016,
6 pp. 125-129: IEEE. https://doi.org/
10.1109/ NICS.2016.7725636
[18] P. Garg, S. J. Vishwakarma, and A.
Technology, "An Efficient [21] A. Sari, H. Saputra, and A. J.
Prediction of Share Price using Siahaan, "Financial distress
Data Mining Techniques," Journal analysis on Indonesia stock
of Engineering and Advanced exchange companies," International
Technology (IJEAT), vol. 8, no. 6, Journal for Innovative Research in
pp. 3110-3115, 2019. Multidisciplinary Field, vol. 4, no. 3,
pp. 73-74, 2018.
[19] S. Nimje, R. Mayya, M. N. A.
Baig, and S. J. Jawale, "Prediction [22] A. Bhardwaj, Y. Narayan, and M.
on Stocks Using Data Mining," J. P. C. S. Dutta, "Sentiment
2020. https://papers.ssrn.com/sol3/ analysis for Indian stock market
papers.cfm?abstract_ id=3565311 prediction using Sensex and nifty,"
Procedia Computer Science, vol.
[20] M. Dang and D. Duong,
70, pp. 85-91, 2015. https://doi.org/
"Improvement methods for stock
10.1016/j.procs.2015.10.043
market prediction using financial

Innovative Computing Review


42
Volume 1 Issue 1, Summer 2021

You might also like