Articles
Vol. 53 No. 3 (2019)
An Improved Stacking Framework for Predicting Stock Price Index Direction
Department of Economics and Management, Jiliang University, China
Department of Economics and Management, Jiliang University, China
Department of Economics and Management, Jiliang University, China
Abstract
Stock price index is an essential component of financial systems and indicates the economic performance in the national level . Even small improvements in its predictive performance can be very profitable and meaningful. This paper p roposes an improved Stacking framework which contains multi ple layers for predicting whether the stock price index will increase or decrease with respect to the price prevailing some time earlier, if necessary, a month . Support Vector Machines (SVM), Neural Networks (NN), ElasticNet -logistic regression (ENLR), Random Forest (RF) and Extreme Gradient Boosting (XGBoost) are stacked as base classifiers in the first layer. Instead of cross-validation, we deploy a more appropriate approach called timeslice grid search method, to select the optimal hyper-parameters and generate the Stacking features simu ltaneously. For the purpose of comparison and transparency, three meta classifiers which fuse the information of base classifiers and original data are implemented in the second layer, based on the algorithms ENLR,RF and XGBoost . In the last layer, majority vote method is used to ensemble these three meta classifiers. The results indicate that our model (namely Meta.MV) provide better and more stable prediction performance compared to the single classifiers or even the state-of-the-art classifiers such as RF and XGBoost in terms of accuracy, kappa statistic and AUC value, and prediction performance improves as the layer rises due to the increased information content of model fusion . Our findings provide a n integrated Stacking framework in the financial area.
References
- [1] Ballings, M., Van den Poel, D., Hespeels, N. & Gryp, R. (2015) ,Evaluating
- Multiple Classifiers for Stock Price Direction P rediction. Expert Systems with
- Applications, 42(20), 7046-7056;
- [2] Basak, S., Kar, S., Saha, S., Khaidem, L. & Dey, S. R. (2018) ,Predicting the
- Direction of Stock Market Prices Using Tree -based C lassifiers. The North
- American Journal of Economics and Finance;
- [3] Breiman, L. (1996),Bagging Predictors. Machine Learning, 24(2), 123-140;
- [4] Breiman, L. (2001),Random Forests. Machine Learning, 45(1), 5-32;
- [5] Chen, T.& Guestrin, C. (2016),XGBoost: A Scalable Tree Boosting System. In:
- ACM SIGKDD International Conference on Knowledge Discovery and Data Mining
- (pp. 785-794);
- [6] Cheung, Y. W., Chinn, M. D. & Pascual, A. G. (2005) ,Empirical Exchange
- Rate Models of the Nineties: Are any Fit to S urvive?Journal of International
- Money & Finance, 24(7), 1150-1175;
- [7] Dreiseitl, S.& Ohno-Machado, L. (2002) ,Logistic Regression and Artificial
- Neural Network C lassification Models: A Methodology R eview. Journal of
- Min-Qi Jiang, Jia-Peng Liu, Lu Zhang
- _________________________________________________________________
- 202
- DOI: 10.24818/18423264/53.3.19.11
- Biomedical Informatics, 35(5), 352-359;
- [8] Enke, D.& Thawornwong, S. (2005) ,The Use of Data Mining and Neural
- Networks for Forecasting Stock Market Returns.Expert Systems with Applications,
- 29(4), 927-940;
- [9] Freund, Y. & Schapire, R. E. (1996), Experiments with a New Boosting
- Algorithm. In: International Conference on Machine Learning (pp. 148-156);
- [10] Haykin, S. (2002),Adaptive Filter Theory, 5e.
- [11] Krauss, C., Do, X. A. & Huck, N. (2017) ,Deep Neural Networks, Gradient-
- Boosted Trees, Random Forests: Statistical Arbitrage on the S&P 500. European
- Journal of Operational Research, 259(2), 689-702;
- [12] Kumar, M. & M, T. (2006 ),Forecasting Stock Index Movement: A
- Comparison of Support V ector Machines and Random Forest . Social Science
- Electronic Publishing;
- [13] Lantz, B. (2015),Machine Learning with R: Second edition;
- [14] Leung, M. T., Daouk, H.& Chen, A.-S. (2000),Forecasting Stock Indices: A
- Comparison of Classification and Level Estimation Models. International Journal
- of Forecasting, 16(2), 173-190;
- [15] Moein Aldin, M., Dehghan Dehnavi, H.& Entezari, S. (2012),Evaluating the
- Employment of Technical Indicators in Predicting Stock Price Index V ariations
- Using Artificial Neural Networks (Case Study: Tehran Stock Exchange) .
- International Journal of Business and Management, 7(15);
- [16] Pesaran, M. H.& Timmermann, A. (1995),Predictability of Stock Returns:
- Robustness and Economic Significance. Journal of Finance, 50(4), 1201-1228;
- [17] Takeuchi, L. & Lee, Y. -Y. (2013) ,Applying Deep Learning to Enhance
- Momentum Trading Strategies in Stocks. Working Paper;
- [18] Tsai, C. -F., Lin, Y.-C., Yen, D. C. & Chen, Y. -M. (2011),Predicting Stock
- Returns by Classifier Ensembles. Applied Soft Computing, 11(2), 2452-2459;
- [19] Vapnik, V . N. (1999),An Overview of Statistical Learning Theory. IEEE Trans
- Neural Netw, 10(5), 988-999;
- [20] Weng, B., Martinez, W., Tsai, Y.-T., Li, C., Lu, L., Barth, J. R.& Megahed,
- F. M. (2018),Macroeconomic Indicators Alone Can Predict the Monthly Closing
- Price o f Major U.S. Indices: Insights from Artificial Inte lligence, Time-Series
- Analysis and Hybrid Models. Applied Soft Computing, 71, 685-697;
- [21] Wolpert, D. H. (1992),Stacked Generalization. Neural Networks(5), 241-259;
- [22] Zou, H.& Hastie, T. (2005) ,Regularization and V ariable Selection via the
- Elastic Net . Journal of the Royal Statistical Society. Series B (Statistical
- Methodology), 67(2), 301-320.