Dianzi Jishu Yingyong (May 2019)

Stock price predication based on KNN and its ensemble model

  • Zhang Weinan,
  • Lu Tongyu,
  • Sun Jianming

DOI
https://doi.org/10.16157/j.issn.0258-7998.190140
Journal volume & issue
Vol. 45, no. 5
pp. 9 – 13

Abstract

Read online

In order to verify the assume that stock price movement is similar to the past,pricing movement is simply dividend into up and down by K-Nearest Neighbor algorithm for forecasting. Sliding window method is used for comparing which historical period is more similar to the current in data feature. Multiple KNN models construct ensemble models for the strategy generalization and return adjustment. The CSI500 price is used for verification. With the predication, single KNN model wins 76.72% return with fee return from 2017 to Sep. 2018,remote historical period is more similar to the current in data feature,and ensemble models are better in risk control. This model verifies the stock price is similar with K-Nearest Neighbor character, which could be used as an investment timing strategy.

Keywords