應用資料探勘技術於股票投資 -以 TOPIX ETF 為例
Applications of Data Mining Techniques for Stock Investment-A case study of TOPIX ETF
摘要
最近Wu, Chung, and Hung (2019)提出一個資料探勘於股票投資的研究架構,本論文是此架構的應用案例研究,研究的股票標的是日本股市的TOPIX ETF。我們使用資料探勘技術開發兩種二元分類器,買點信號分類器輸出“買點信號”或“持有信號”,賣點信號分類器輸出“賣點信號”或“持有信號”,只有在兩個分類器達成共識時才做出“買入”、“持有”或“賣出”的交易決策。在12種資料探勘演算法中,選擇具有最高預測準確度的分類器,實驗數據從2008年1月4日到2018年12月31日,2008年至2013年的數據是訓練資料集,2014年至2015年是驗證資料集,2016年至2018年是測試資料集。本研究採用五種技術指標和買入持有策略作為比較基準,分別比較長短期的投資績效表現,結果顯示,在短期季度72個基準中,本研究提出之方法優於39個,長期三年而言,6個基準中勝過5個,由此可知,機器學習的股票投資是有用的。
The purpose of this research is to apply data mining technology to stock investment. The investment target is Japan's TOPIX ETF. This study is an application of a research framework of data mining on stock investment proposed by a recent study (Wu, Chung, and Hung 2019). We use machine learning to create two types of classifiers and perform trade simulation using the consensus of the signals of the two classifiers. The Buy-signal classifier outputs a "Buy" or "Hold" signal, and the Sell-signal classifier outputs a "Hold" or "Sell" signal. We decide the "Buy-in", "Hold" or "Sell-out" from the consensus of the two signals. Among the 12 machine learning algorithms, the classifier with the highest accuracy was selected. Data are from 4 January 2008 to 31 December 2018. Data from 2008 to 2013 is training data, and 2014 to 2015 is validation dataset, and 2016 to 2018 is test dataset. As benchmarks, five technical analysis results and a Buy & Hold strategy were adopted. We compared the benchmark and quarterly ROI. As a result, machine learning transactions outperform 39 benchmarks out of 72 benchmarks. Also, analysis of the three-year trade resulted in five wins out of six. This results show that stock investment by machine learning is useful.