{"title":"On Stock Market Movement Prediction Via Stacking Ensemble Learning Method","authors":"S. Gyamerah, P. Ngare, Dennis Ikpe","doi":"10.1109/CIFEr.2019.8759062","DOIUrl":null,"url":null,"abstract":"The capital market act as an intermediary between capital providers (investors) and capital seekers. Investors are able to distribute their money to demand points through this market. For a smooth running of the market, the market have to be efficient and liquid. This implies that investors can buy or sell a share of a stock at a reasonably fair price. The decision to buy or sell a share of the stock is a major investment decision to be made by investors/market players in the capital market. In this paper, different machine learning techniques are used to predict the movement of stocks on the stock market. Stocks are classified into labels according to their current and day-ahead closing price. That is, if the day-ahead closing price is greater than or equal to the current closing price, the investor/market player sells the shares of the stock, else the investor/market player buys additional shares of the stock. Four features (the difference between the price low and price high, the difference between the closing and opening price, the market capitalization, and the volume traded) are used to predict the labels. Two machine learning classifiers (Adaptive Boosting and K-Nearest Neighbour) and Stacking ensemble classifier are trained and used for the classification problem. Using dataset obtained from the Nairobi Stock Exchange, the robustness and effectiveness of the methods on the testing datasets are validated. The results shows that: 1) the Stacking Ensemble Learning Method with two base learners (Adaptive Boosting and K-Nearest Neighbour) and Gradient Boosting Machine as the meta-classifier outperforms the two individual classifiers with an accuracy of 0.7810, area under curve of 0.8238, a kappa of 0.5516, and an out of bag error (OOB) rate of 21.89%, 2) the Volume of shares traded on a specific day does not have much importance when buying or selling shares on the Nairobi stock exchange capital market, and 3) machine learning classifiers can be applied to the stock market for optimal investment decisions. Pan African University, Institute for Basic Sciences, Technology, and Innovation, African Union","PeriodicalId":368382,"journal":{"name":"2019 IEEE Conference on Computational Intelligence for Financial Engineering & Economics (CIFEr)","volume":"2 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2019-05-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"12","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2019 IEEE Conference on Computational Intelligence for Financial Engineering & Economics (CIFEr)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/CIFEr.2019.8759062","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 12
Abstract
The capital market act as an intermediary between capital providers (investors) and capital seekers. Investors are able to distribute their money to demand points through this market. For a smooth running of the market, the market have to be efficient and liquid. This implies that investors can buy or sell a share of a stock at a reasonably fair price. The decision to buy or sell a share of the stock is a major investment decision to be made by investors/market players in the capital market. In this paper, different machine learning techniques are used to predict the movement of stocks on the stock market. Stocks are classified into labels according to their current and day-ahead closing price. That is, if the day-ahead closing price is greater than or equal to the current closing price, the investor/market player sells the shares of the stock, else the investor/market player buys additional shares of the stock. Four features (the difference between the price low and price high, the difference between the closing and opening price, the market capitalization, and the volume traded) are used to predict the labels. Two machine learning classifiers (Adaptive Boosting and K-Nearest Neighbour) and Stacking ensemble classifier are trained and used for the classification problem. Using dataset obtained from the Nairobi Stock Exchange, the robustness and effectiveness of the methods on the testing datasets are validated. The results shows that: 1) the Stacking Ensemble Learning Method with two base learners (Adaptive Boosting and K-Nearest Neighbour) and Gradient Boosting Machine as the meta-classifier outperforms the two individual classifiers with an accuracy of 0.7810, area under curve of 0.8238, a kappa of 0.5516, and an out of bag error (OOB) rate of 21.89%, 2) the Volume of shares traded on a specific day does not have much importance when buying or selling shares on the Nairobi stock exchange capital market, and 3) machine learning classifiers can be applied to the stock market for optimal investment decisions. Pan African University, Institute for Basic Sciences, Technology, and Innovation, African Union