On Stock Market Movement Prediction Via Stacking Ensemble Learning Method

S. Gyamerah, P. Ngare, Dennis Ikpe
{"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
基于叠加集成学习方法的股票市场运动预测
资本市场是资本提供者(投资者)和资本寻求者之间的中介。投资者可以通过这个市场将资金分配到需求点。为了使市场平稳运行,市场必须高效且具有流动性。这意味着投资者可以以合理的价格买入或卖出股票。购买或出售股票是投资者/市场参与者在资本市场上做出的重大投资决策。在本文中,不同的机器学习技术被用来预测股票市场上的股票走势。股票根据其当前和前一天的收盘价被分类。也就是说,如果前一天的收盘价大于或等于当前的收盘价,投资者/市场参与者卖出该股票的股票,否则投资者/市场参与者购买该股票的额外股票。使用四个特征(最低价和最高价之间的差异,收盘价和开盘价之间的差异,市值和交易量)来预测标签。训练了两个机器学习分类器(自适应增强和k近邻)和堆叠集成分类器,并将其用于分类问题。利用从内罗毕证券交易所获得的数据集,验证了方法在测试数据集上的鲁棒性和有效性。结果表明:1)两个基学习器(自适应增强和k近邻)和梯度增强机作为元分类器的叠加集成学习方法优于两个独立分类器,准确率为0.7810,曲线下面积为0.8238,kappa为0.5516,出袋误差(OOB)率为21.89%;2)在内罗毕证券交易所资本市场买卖股票时,特定日期的股票交易量不太重要;3)机器学习分类器可以应用于股票市场进行最优投资决策。泛非大学,基础科学、技术和创新研究所,非洲联盟
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信