Skip to main navigation menu Skip to main content Skip to site footer

Articles

Vol. 53 No. 3 (2019)

An Improved Stacking Framework for Predicting Stock Price Index Direction

DOI:
https://doi.org/10.24818/18423264/53.3.19.11
Submitted
October 24, 2026

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. [1] Ballings, M., Van den Poel, D., Hespeels, N. & Gryp, R. (2015) ,Evaluating
  2. Multiple Classifiers for Stock Price Direction P rediction. Expert Systems with
  3. Applications, 42(20), 7046-7056;
  4. [2] Basak, S., Kar, S., Saha, S., Khaidem, L. & Dey, S. R. (2018) ,Predicting the
  5. Direction of Stock Market Prices Using Tree -based C lassifiers. The North
  6. American Journal of Economics and Finance;
  7. [3] Breiman, L. (1996),Bagging Predictors. Machine Learning, 24(2), 123-140;
  8. [4] Breiman, L. (2001),Random Forests. Machine Learning, 45(1), 5-32;
  9. [5] Chen, T.& Guestrin, C. (2016),XGBoost: A Scalable Tree Boosting System. In:
  10. ACM SIGKDD International Conference on Knowledge Discovery and Data Mining
  11. (pp. 785-794);
  12. [6] Cheung, Y. W., Chinn, M. D. & Pascual, A. G. (2005) ,Empirical Exchange
  13. Rate Models of the Nineties: Are any Fit to S urvive?Journal of International
  14. Money & Finance, 24(7), 1150-1175;
  15. [7] Dreiseitl, S.& Ohno-Machado, L. (2002) ,Logistic Regression and Artificial
  16. Neural Network C lassification Models: A Methodology R eview. Journal of
  17. Min-Qi Jiang, Jia-Peng Liu, Lu Zhang
  18. _________________________________________________________________
  19. 202
  20. DOI: 10.24818/18423264/53.3.19.11
  21. Biomedical Informatics, 35(5), 352-359;
  22. [8] Enke, D.& Thawornwong, S. (2005) ,The Use of Data Mining and Neural
  23. Networks for Forecasting Stock Market Returns.Expert Systems with Applications,
  24. 29(4), 927-940;
  25. [9] Freund, Y. & Schapire, R. E. (1996), Experiments with a New Boosting
  26. Algorithm. In: International Conference on Machine Learning (pp. 148-156);
  27. [10] Haykin, S. (2002),Adaptive Filter Theory, 5e.
  28. [11] Krauss, C., Do, X. A. & Huck, N. (2017) ,Deep Neural Networks, Gradient-
  29. Boosted Trees, Random Forests: Statistical Arbitrage on the S&P 500. European
  30. Journal of Operational Research, 259(2), 689-702;
  31. [12] Kumar, M. & M, T. (2006 ),Forecasting Stock Index Movement: A
  32. Comparison of Support V ector Machines and Random Forest . Social Science
  33. Electronic Publishing;
  34. [13] Lantz, B. (2015),Machine Learning with R: Second edition;
  35. [14] Leung, M. T., Daouk, H.& Chen, A.-S. (2000),Forecasting Stock Indices: A
  36. Comparison of Classification and Level Estimation Models. International Journal
  37. of Forecasting, 16(2), 173-190;
  38. [15] Moein Aldin, M., Dehghan Dehnavi, H.& Entezari, S. (2012),Evaluating the
  39. Employment of Technical Indicators in Predicting Stock Price Index V ariations
  40. Using Artificial Neural Networks (Case Study: Tehran Stock Exchange) .
  41. International Journal of Business and Management, 7(15);
  42. [16] Pesaran, M. H.& Timmermann, A. (1995),Predictability of Stock Returns:
  43. Robustness and Economic Significance. Journal of Finance, 50(4), 1201-1228;
  44. [17] Takeuchi, L. & Lee, Y. -Y. (2013) ,Applying Deep Learning to Enhance
  45. Momentum Trading Strategies in Stocks. Working Paper;
  46. [18] Tsai, C. -F., Lin, Y.-C., Yen, D. C. & Chen, Y. -M. (2011),Predicting Stock
  47. Returns by Classifier Ensembles. Applied Soft Computing, 11(2), 2452-2459;
  48. [19] Vapnik, V . N. (1999),An Overview of Statistical Learning Theory. IEEE Trans
  49. Neural Netw, 10(5), 988-999;
  50. [20] Weng, B., Martinez, W., Tsai, Y.-T., Li, C., Lu, L., Barth, J. R.& Megahed,
  51. F. M. (2018),Macroeconomic Indicators Alone Can Predict the Monthly Closing
  52. Price o f Major U.S. Indices: Insights from Artificial Inte lligence, Time-Series
  53. Analysis and Hybrid Models. Applied Soft Computing, 71, 685-697;
  54. [21] Wolpert, D. H. (1992),Stacked Generalization. Neural Networks(5), 241-259;
  55. [22] Zou, H.& Hastie, T. (2005) ,Regularization and V ariable Selection via the
  56. Elastic Net . Journal of the Royal Statistical Society. Series B (Statistical
  57. Methodology), 67(2), 301-320.

Similar Articles

1-10 of 942

You may also start an advanced similarity search for this article.