DOI QR코드

DOI QR Code

A Two-Phase Hybrid Stock Price Forecasting Model : Cointegration Tests and Artificial Neural Networks

2단계 하이브리드 주가 예측 모델 : 공적분 검정과 인공 신경망

  • 오유진 (고려대학교 경영전문대학원) ;
  • 김유섭 (한림대학교 정보통신공학)
  • Published : 2007.12.31

Abstract

In this research, we proposed a two-phase hybrid stock price forecasting model with cointegration tests and artificial neural networks. Using not only the related stocks to the target stock but also the past information as input features in neural networks, the new model showed an improved performance in forecasting than that of the usual neural networks. Firstly in order to extract stocks which have long run relationships with the target stock, we made use of Johansen's cointegration test. In stock market, some stocks are apt to vary similarly and these phenomenon can be very informative to forecast the target stock. Johansen's cointegration test provides whether variables are related and whether the relationship is statistically significant. Secondly, we learned the model which includes lagged variables of the target and related stocks in addition to other characteristics of them. Although former research usually did not incorporate those variables, it is well known that most economic time series data are depend on its past value. Also, it is common in econometric literatures to consider lagged values as dependent variables. We implemented a price direction forecasting system for KOSPI index to examine the performance of the proposed model. As the result, our model had 11.29% higher forecasting accuracy on average than the model learned without cointegration test and also showed 10.59% higher on average than the model which randomly selected stocks to make the size of the feature set same as that of the proposed model.

본 논문에서는 주가예측의 정확도를 향상시키기 위하여 공적분 검정(Cointegration Tests)과 인공 신경망(Artificial Neural Networks)을 사용한 2단계 하이브리드 예측 모델을 제시한다. 기존의 연구에서는 예측을 시도하고자 하는 종목의 일자별 개별 레코드를 인공 신경망과 같은 방법으로 학습함으로써 주식 데이터가 가지는 시계열적 특성을 충분히 반영하지 못하였는데, 새로 제안한 모형에서는 주식자료의 과거시차들의 값들도 인공 신경망의 속성(feature)으로 사용하여 기존 연구의 한계를 보완하였다. 또한, 예측대상종목의 정보들 외에도 장기적으로 높은 시계열 유사성을 보유한 종목들을 선발한 후 속성으로 사용하여 모형의 예측성능을 향상 시켰다. 구체적으로 1단계는 Johansen의 공적분 검정을 통하여 예측대상종목과 장기적 관계(long-term relationship)에 있는 종목을 추출하고, 2단계는 이 선발된 종목들과 예측대상종목의 시계열 정보 특성을 속성으로 구축한 인공 신경망으로 학습하여 관심 종목을 예측한다. 제안된 모델의 성능을 확인하기 위하여 KOSPI 지수의 방향성을 예측하는 시스템을 구현하였으며, 시가총액 상위 종목군을 대상으로 지수와의 공적분 검정을 하였다. 성능을 살펴보기 위하여 본 연구에서는 시계열 정보가 속성으로 반영된 단순 인공 신경망 모델, 공적분 검정을 통과한 종목들의 시계열 속성이 포함된 모델, 그리고 그 모델과 속성의 개수를 동일하게 하기 위하여 임의로 종목을 선택하여 이들의 시계열 속성이 포함된 모델을 구축하였다. 실험 결과 공적분 검정을 통과한 종목군의 속성이 결합된 모델은 단순 인공 신경망만으로 학습된 기존 모델에 비하여 평균적으로는 11.29% (최대 29.98%) 정확도가 향상되었고, 임의로 선택된 종목군의 속성이 결합된 모델에 비해서는 평균적으로는 10.59% (최대 25.78%) 가 향상된 예측 정확도를 보여주었다.

Keywords

References

  1. Ghosn, J. and Bengio, Y., 'Multi-Task Learning for Stock Selection,' Advances in Neural Information Processing Systems, 9, M. C. Mozer, M. I. Jordan and T. Petsche editor, The MIT Press, 1997
  2. Kendall, S. M. and Ord, K. Time Series. Oxford, 1997
  3. Fama, E. F., 'Multiperiod Consumption Investment Decisions,' American Economic Review, Vol.60, pp.163-174, 1988
  4. Malkiel, B. G., A Random Walk Down Wall Street, Norton, 1996
  5. Dempster, M. A. H., Payne, T. W., Romahi, Y., and Thompson, G. W. P., 'Computational Learning Techniques for Intraday FX Trading Using Popular Technical Indicators,' IEEE Transactions on Neural Networks, Vol.12, No.4, pp.744-754, 2001 https://doi.org/10.1109/72.935088
  6. Fan, A. and Palaniswami, M., 'Stock Selection Using Support Vector Machines,' In Proceedings of International Joint Conference on Neural Networks, pp.1973-1983, 2001 https://doi.org/10.1109/IJCNN.2001.938434
  7. Kim, S. D, Lee, J. W., Lee, J. and Chae, J.-S., 'A Two-Phase Stock Trading System Using Distributional Differences,' Proceedings of International Conference on Database and Expert Systems Applications, pp.143-152, 2002
  8. Saad, E. W., Prokhorov, D. V. and Wunsch II, D. C., 'Comparative Study of Stock Trend Prediction Using Time Delay, Recurrent and Probabilistic Neural Networks,' IEEE Transactions on Neural Networks, Vol.9, No,6, pp.1456, 1998 https://doi.org/10.1109/72.728395
  9. 김유섭, 이재원, 이종우, '다증 에이전트 Q-학습 구조에 기반한 주식 매매 시스템의 최적화, 정보처리학회논문지 B, 제11-B권 제2호, pp.207-212, 2004
  10. Armano, G., Marchesi, M., and Murru, A., 'A Hybrid Genetic-Neural Architecture for Stock Indexes Forecasting,' Information Sciences, Vol.170, Issue 1, pp.3-33, 2005 https://doi.org/10.1016/j.ins.2003.03.023
  11. 이상원, '주가 예측을 위한 최적 인공신경망 모형 선택에 관한 연구,' 인제대학교 석사학위논문, 2002
  12. Johansen, S., 'Statistical Analysis of Cointegration Vectors,' Journal of Economic Dynamics and Control Vol.12, pp.231-254, 1988 https://doi.org/10.1016/0165-1889(88)90041-3
  13. Granger, C.W.J. and Newbold, P., 'Spurious regressions in econometrics,' Journal of Econometrics, 2, pp.111-120, 1974 https://doi.org/10.1016/0304-4076(74)90034-7
  14. Phillips, P.C.B., 'Understanding spurious regressions in Econometrics,' Journal of Econometrics, 33, pp.311-340, 1986 https://doi.org/10.1016/0304-4076(86)90001-1
  15. Engle, R.F. and Granger, C.W.J., 'Co-integration and error-correction: representation, estimation and testing,' Econometrica, 55, pp.251-276, 1987 https://doi.org/10.2307/1913236
  16. Koscom, http://www.koscom.co.kr, 2007
  17. 한국투자증권, http://www.truefruend.com, 2007
  18. Mitchell, T., Machine Learning, McGraw Hill, 1997