Stock market prediction using ensemble learning
Abstract
An unpredictable sector of finance market which involves three major roles: investors, buyers and sellers is called a stock market. Also stock prices may not only change the future economy of a country but also have direct effects on the current economic activities of the country. Forecasting stock market is acquiring more attention due to its expected high profit. But the prediction part of stock markets is considered as quite a challenging task. Though there are various techniques available for forecasting stock price but the number of methods for forecasting the stock market accurately is less than usual. Another way of determining future value as in rise or fall of the future stock price is known as data analysis. The purpose of this paper is to discuss how accurately the price of stocks in the US stock market can be predicted, by generating the best possible factors for particular stocks in the US stock market using machine learning algorithms. After conducting our preliminary research and then some, we found that it is quite difficult to predict the price fluctuations of stocks as the market is highly volatile. Furthermore, the number of uncertain variables in the equation which makes it hard to isolate any one or few factors that can be used to accurately predict price fluctuations. Therefore, for our trial runs, we tried to isolate the best factors that can be used to predict the prices of stocks with sufficient accuracy. For our approach, we implemented Gradient Boosting, Random Forest, Naive Bayes, AdaBoost, Logistic Regression and SVM to run on our dataset. Based on the outcome of these algorithms we will take the decision whether to go long or short for a particular stock.