Stock trading is a very crucial activity in the world of Finance and is a supporting structure for many companies. Predicting the future value of a stock is the main goal of stock price prediction project. In this paper, we have used machine learning algorithms to predict future stock prices of a company. Stock prediction by the stock brokers is mainly done using the time series or the technical and fundamental analysis but as these techniques are very unreliable and limited, we propose making use of intelligent techniques such as machine learning. Python is a programming language which can be used to implement machine learning algorithms with its numerous inbuilt libraries. We propose an approach that uses machine learning algorithms and will be trained on the historical stock data that is available and gain intelligence, later it uses the knowledge acquired for predicting the stock prices accurately. Random Forest Regression is one of the machine learning technique that is used for stock price prediction for small and large capitalizations also in different markets employing both up-to-minute and daily frequencies.


Author(s):  
Ping Zhang ◽  
Jia-Yao Yang ◽  
Hao Zhu ◽  
Yue-Jie Hou ◽  
Yi Liu ◽  
...  

In the era of artificial intelligence, machine learning methods are successfully used in various fields. Machine learning has attracted extensive attention from investors in the financial market, especially in stock price prediction. However, one argument for the machine learning methods used in stock price prediction is that they are black-box models which are difficult to interpret. In this paper, we focus on the future stock price prediction with the historical stock price by machine learning and deep learning methods, such as support vector machine (SVM), random forest (RF), Bayesian classifier (BC), decision tree (DT), multilayer perceptron (MLP), convolutional neural network (CNN), bi-directional long-short term memory (BiLSTM), the embedded CNN, and the embedded BiLSTM. Firstly, we manually design several financial time series where the future price correlates with the historical stock prices in pre-designed modes, namely the curve-shape-feature (CSF) and the non-curve-shape-feature (NCSF) modes. In the CSF mode, the future prices can be extracted from the curve shapes of the historical stock prices. Conversely, in the NCSF mode, they can’t. Secondly, we apply various algorithms to those pre-designed and real financial time series. We find that the existing machine learning and deep learning algorithms fail in stock price prediction because in the real financial time series, less information of future prices is contained in the CSF mode, and perhaps more information is contained in the NCSF. Various machine learning and deep learning algorithms are good at handling the CSF in historical data, which are successfully applied in image recognition and natural language processing. However, they are inappropriate for stock price prediction on account of the NCSF. Therefore, accurate stock price prediction is the key to successful investment, and new machine learning algorithms handling the NCSF series are needed.


2021 ◽  
Vol 1916 (1) ◽  
pp. 012042
Author(s):  
Ranjani Dhanapal ◽  
A AjanRaj ◽  
S Balavinayagapragathish ◽  
J Balaji

Sign in / Sign up

Export Citation Format

Share Document