Stock Market Prediction
Stock Market Prediction
v
TABLE OF CONTENTS
ABSTRACT v
viii
LIST OF FIGURES
ix
LIST OF ABBREVIATIONS
1 INTRODUCTION 1
1.1 OVERVIEW 1
1.4 MOTIVATON 2
3
2 LITERATURE REVIEW
4 SYSTEM IMPLEMENTATION 11
4.1 INTRODUCTION 11
4.2 SYSTEM REQUIREMENTS 11
4.2.1 HARDWARE REQUIREMENTS 11
4.2.2 SOFTWARE REQUIREMENTS 11
4.3 ARCHITECTURE 12
4.4 MODULE DESCRIPTION 12
4.4.1 DATA PREPROCESSING 13
4.4.2 FEATURE SELECTION 13
4.4.3 BUILDING AND TRAINING MODEL 13
4.5 PYTHON TECHNOLOGY 13
4.5.1 PYTHON PLATFORM 23
vi
4.5.2 PYTHON LIBRARY 14
5.1 SUMMARY 29
5.2 FURTHER WORKS 29
5.3 CONCLUSION 30
REFERENCES 31
APPENDIX 33
A SOURCE CODE 33
B PAPER WORK 46
vii
LIST OF FIGURES
viii
LIST OF ABBREVIATIONS
ix
CHAPTER 1
INTRODUCTION
1.1 OVERVIEW
In recent times stock market predictions is gaining more attention, maybe due to the
fact that if the trend of the market is successfully predicted the investors may be
better guided. The profits gained by investing and trading in the stock market greatly
depends on the predictability. If there is a system that can consistently predict the
direction of the dynamic stock market will enable the users of the system to make
informed decisions. More over the predicted trends of the market will help the
regulators of the market in taking corrective measures.
A stock market, equity market or share market is the aggregation of buyers and
sellers (a loose network of economic transactions, not a physical facility or discrete
entity) of stocks (also called shares), which represent ownership claims on
businesses; these may include securities listed on a public stock exchange as well
as those only traded privately. Examples of the latter include shares of private
companies which are sold to investors through equity crowd funding platforms. Stock
exchanges list shares of common equity as well as other security types, e.g.
corporate bonds and convertible bonds.
Stock price prediction is one of the most widely studied problem, attracting
researchers from many fields. The volatile nature of the stock market makes it really
difficult to apply simple time-series or regression techniques. Financial institutions
and active traders have created various proprietary models to beat the market for
1
themselves or their clients, but rarely did anyone achieve consistently higher than
the average returns on investment. The challenge of stock market price forecasting
is so appealing because an improvement of just a few points of percentage can
increase the profit by millions of dollars. This paper discusses the application of
Support Vector Machines and Linear Regression in detail along with the pros and
cons of the given methods. The paper introduces the parameters and variables
which can be used to recognize the patterns in stock prices which can be helpful in
future stock prediction and how boosting can be integrated with various other
machine learning algorithms to improve the accuracy of our prediction systems.
1.4 MOTIVATION
Stock price prediction is a classic and important problem. With a successful model
for stock prediction, we can gain insight about market behavior over time, spotting
trends that would otherwise not have been noticed. With the increasingly
computational power of the computer, machine learning will be an efficient method
to solve this problem.
Thus, our motivation is to design a public service incorporating historical data and
users predictions to make a stronger model that will benefit everyone.
2
CHAPTER 2
LITERATURE SURVEY
Stock market is basically nonlinear in nature and the research on stock market is
one of the most important issues in recent years. People invest in stock market
based on some prediction. For predict, the stock market prices people search such
methods and tools which will increase their profits, while minimize their risks.
Prediction plays a very important role in stock market business which is very
complicated and challenging process. Employing traditional methods like
fundamental and technical analysis may not ensure the reliability of the prediction.
To make predictions regression analysis is used mostly. In this paper we survey of
well-known efficient regression approach to predict the stock market price from stock
market data based. In future the results of multiple regression approach could be
improved using more number of variables.
Stock price is one of intricate non-linear dynamic system. Typically, Elman neural
network is a local recurrent neural network, having one context layer that memorizes
the past states, which is quite fit for resolving time series issues. Given this, this
paper takes Elman network to predict the opening price of stock market. Considering
that Elman network is limited, this paper adopts self-adapting variant PSO algorithm
to optimize the weights and thresholds of network. Afterwards, the optimized data,
regarded as initial weight and threshold value, is given to Elman network for training,
accordingly the prediction model for opening price of stock market based on self-
3
adapting variant PSO-Elman network is formed. Finally, this paper verifies that
model by some stock prices, and compares with BP network and Elman network, so
as to draw the result that shows the precision and stability of this predication model
both are superior to the traditional neural network.
Price prediction in stock market is considered to be one of the most difficult tasks,
because of the price dynamic. Previous study found that stock price volatility in a
short term is closely related to the market sentiment; especially for small-cap stocks.
This paper used the social media mining technology to quantitative evaluation
market segment, and in combination with other factors to predict the stock price
trend in short term. Experiment results show that by using social media mining
combined with other information, the stock prices prediction model can forecast
4
more accurate.
Stock Market trend prediction will always remain a challenging task due to stochastic
nature. The enormous amount of data generated by the news, blogs, reviews,
financial reports and social media are considered a treasure of knowledge for
researchers and investors. The present work focuses to observe fluctuations in stock
prices with respect to the relevant news articles of a company. In this paper, a daily
prediction model is proposed using historical data and news articles to predict the
Indian stock market movements. Classifier Naïve Bayes is used to categorize the
5
news text having negative or positive sentiment. The count of the positive and
negative sentiment of news articles for each day and variance of adjacent days
close price along with historical data is used for prediction purpose and an accuracy
ranging from 65.30 to 91.2 % achieved with various machine learning techniques.
This literature review is aiming to explore the use Artificial Neural Network (ANN)
techniques in the field of stock market prediction. Design: Content analysis research
technique. Data sources: Information retrieved from ProQuest electronic databases.
Review methods: Utilizing key terms and phrases associated with Artificial Neural
Network Stock Market Prediction from 2013-2018. Out of the 129 scholarly journal
reviewed, there are 4 stock market studies met the inclusion criteria. The analysis
and the evaluation includes 6 ANN derivatives techniques used to predict. Results:
Findings from the reviewed studies revealed that all studies shows consistency that
the accuracy rate of ANN stock market prediction is high. 2 Studies shows accuracy
above 90%, 2 studies shows accuracy above 50%. Conclusion: This study reveals
that the ability of ANN shows consistency of an accuracy rate of stock market
prediction. Four method in predicting stock market had an accuracy above 95%. The
highest accuracy achieved by using Signal Processing/Gaussian Zero-Phase Filter
(GZ-Filter) with 98.7% prediction accuracy.
2018 Third International Conference on Informatics and Computing (ICIC)