Skip to main content
Top

2018 | OriginalPaper | Chapter

Stock Price Prediction with Fluctuation Patterns Using Indexing Dynamic Time Warping and \(k^*\)-Nearest Neighbors

Authors : Kei Nakagawa, Mitsuyoshi Imamura, Kenichi Yoshida

Published in: New Frontiers in Artificial Intelligence

Publisher: Springer International Publishing

Activate our intelligent search to find suitable subject content or patents.

search-config
loading …

Abstract

Various methods to predict stock prices have been studied. A typical method is based on time-series analysis; other methods are based on machine-learning techniques using cross-sectional data as feature values. In the field of empirical finance, feature values for prediction include “momentum”. The momentum strategy is simply based on past prices. Following the nearest trend, we buy current performers. From the different viewpoint from momentum, We’d like to challenge EMH. Our proposed method is following the similar trend. In other word, we look for past pattern similar to the current and predict from that. When predicting stock prices, investors sometimes refer to past markets that are similar to the current market. In this research, we propose a method to predict future stock prices with the past fluctuations similar to the current. As the levels of stock prices differ depending on the measured period, we develop a scaling method to compensate for the difference of price levels and the proposed new method; specifically, we propose indexing dynamic time warping (IDTW) to evaluate the similarities between time-series data. We apply the \(k^*\)-nearest neighbor algorithm with IDTW to predict stock prices for major stock indices and to assist users in making informed investment decisions. To demonstrate the advantages of the proposed method, we analyze its performance using major world indices. Experimental results show that the proposed method is more effective for predicting monthly stock price changes than other methods proposed by previous studies (Based on the comments received in Ai-Biz 2017, we clarified the differences from previous studies. And we added economic discussions about our proposed method such as differences from “momentum”, a challenge to Efficient Market Hypothesis and meanings as investment behavior).

Dont have a licence yet? Then find out more about our products and how to get one now:

Springer Professional "Wirtschaft+Technik"

Online-Abonnement

Mit Springer Professional "Wirtschaft+Technik" erhalten Sie Zugriff auf:

  • über 102.000 Bücher
  • über 537 Zeitschriften

aus folgenden Fachgebieten:

  • Automobil + Motoren
  • Bauwesen + Immobilien
  • Business IT + Informatik
  • Elektrotechnik + Elektronik
  • Energie + Nachhaltigkeit
  • Finance + Banking
  • Management + Führung
  • Marketing + Vertrieb
  • Maschinenbau + Werkstoffe
  • Versicherung + Risiko

Jetzt Wissensvorsprung sichern!

Springer Professional "Technik"

Online-Abonnement

Mit Springer Professional "Technik" erhalten Sie Zugriff auf:

  • über 67.000 Bücher
  • über 390 Zeitschriften

aus folgenden Fachgebieten:

  • Automobil + Motoren
  • Bauwesen + Immobilien
  • Business IT + Informatik
  • Elektrotechnik + Elektronik
  • Energie + Nachhaltigkeit
  • Maschinenbau + Werkstoffe




 

Jetzt Wissensvorsprung sichern!

Springer Professional "Wirtschaft"

Online-Abonnement

Mit Springer Professional "Wirtschaft" erhalten Sie Zugriff auf:

  • über 67.000 Bücher
  • über 340 Zeitschriften

aus folgenden Fachgebieten:

  • Bauwesen + Immobilien
  • Business IT + Informatik
  • Finance + Banking
  • Management + Führung
  • Marketing + Vertrieb
  • Versicherung + Risiko




Jetzt Wissensvorsprung sichern!

Footnotes
1
Volatility clustering is a phenomenon by which a period of high (low) volatility continues for some time after the volatility rises (decreases) [19].
 
2
The ticker codes are TPX Index, SPX Index, UKX Index, DAX Index, and CAC Index, respectively.
 
3
The parameter k ranged from 1 to 10 and parameter \(L/C\in \{0.001,0.005,0.01,0.05,0.1,0.5,1,5,10 \}\). These are the same setting as Anava and Levy [1].
 
Literature
1.
go back to reference Anava, O., Levy, K.: \(k^*\)-nearest neighbors: from global to local. In: Advances in Neural Information Processing Systems, pp. 4916–4924 (2016) Anava, O., Levy, K.: \(k^*\)-nearest neighbors: from global to local. In: Advances in Neural Information Processing Systems, pp. 4916–4924 (2016)
2.
go back to reference Andrade, S.C., Chhaochharia, V., Fuerst, M.E.: “Sell in may and go away” just won’t go away. Finan. Anal. J. 69(4), 94 (2013)CrossRef Andrade, S.C., Chhaochharia, V., Fuerst, M.E.: “Sell in may and go away” just won’t go away. Finan. Anal. J. 69(4), 94 (2013)CrossRef
3.
go back to reference Asness, C.S., Moskowitz, T.J., Pedersen, L.H.: Value and momentum everywhere. J. Finan. 68(3), 929–985 (2013)CrossRef Asness, C.S., Moskowitz, T.J., Pedersen, L.H.: Value and momentum everywhere. J. Finan. 68(3), 929–985 (2013)CrossRef
4.
go back to reference Bergmeir, C., Benítez, J.M.: On the use of cross-validation for time series predictor evaluation. Inf. Sci. 191, 192–213 (2012)CrossRef Bergmeir, C., Benítez, J.M.: On the use of cross-validation for time series predictor evaluation. Inf. Sci. 191, 192–213 (2012)CrossRef
5.
6.
go back to reference Bouman, S., Jacobsen, B.: The halloween indicator, “sell in may and go away”: another puzzle. Am. Econ. Rev. 92(5), 1618–1635 (2002)CrossRef Bouman, S., Jacobsen, B.: The halloween indicator, “sell in may and go away”: another puzzle. Am. Econ. Rev. 92(5), 1618–1635 (2002)CrossRef
7.
go back to reference Box, G.E., Jenkins, G.M., Reinsel, G.C., Ljung, G.M.: Time Series Analysis: Forecasting and Control. Wiley, Hoboken (2015)MATH Box, G.E., Jenkins, G.M., Reinsel, G.C., Ljung, G.M.: Time Series Analysis: Forecasting and Control. Wiley, Hoboken (2015)MATH
8.
go back to reference Cavalcante, R.C., Brasileiro, R.C., Souza, V.L., Nobrega, J.P., Oliveira, A.L.: Computational intelligence and financial markets: a survey and future directions. Expert Syst. Appl. 55, 194–211 (2016)CrossRef Cavalcante, R.C., Brasileiro, R.C., Souza, V.L., Nobrega, J.P., Oliveira, A.L.: Computational intelligence and financial markets: a survey and future directions. Expert Syst. Appl. 55, 194–211 (2016)CrossRef
9.
go back to reference Coelho, M.S.: Patterns in financial markets: dynamic time warping. Ph.D. thesis, NSBE-UNL (2012) Coelho, M.S.: Patterns in financial markets: dynamic time warping. Ph.D. thesis, NSBE-UNL (2012)
10.
go back to reference Fama, E.F.: Efficient capital markets: a review of theory and empirical work. J. Finan. 25(2), 383–417 (1970)CrossRef Fama, E.F.: Efficient capital markets: a review of theory and empirical work. J. Finan. 25(2), 383–417 (1970)CrossRef
11.
go back to reference Fama, E.F., French, K.R.: The cross-section of expected stock returns. J. Finan. 47(2), 427–465 (1992)CrossRef Fama, E.F., French, K.R.: The cross-section of expected stock returns. J. Finan. 47(2), 427–465 (1992)CrossRef
12.
go back to reference Fama, E.F., French, K.R.: Common risk factors in the returns on stocks and bonds. J. Financ. Econ. 33(1), 3–56 (1993)CrossRef Fama, E.F., French, K.R.: Common risk factors in the returns on stocks and bonds. J. Financ. Econ. 33(1), 3–56 (1993)CrossRef
13.
go back to reference Hamilton, J.D.: Time Series Analysis, vol. 2. Princeton University Press, Princeton (1994)CrossRef Hamilton, J.D.: Time Series Analysis, vol. 2. Princeton University Press, Princeton (1994)CrossRef
14.
go back to reference Imamura, M., Nakagawa, K., Yoshida, K.: Evaluation of financial market forecasting with using similarity of asset price fluctuation patterns (in Japanese). In: The 31st Annual Conference of the Japanese Society for Artificial Intelligence, p. 2D1-2 (2017) Imamura, M., Nakagawa, K., Yoshida, K.: Evaluation of financial market forecasting with using similarity of asset price fluctuation patterns (in Japanese). In: The 31st Annual Conference of the Japanese Society for Artificial Intelligence, p. 2D1-2 (2017)
15.
go back to reference Itakura, F.: Minimum prediction residual principle applied to speech recognition. IEEE Trans. Acoust. Speech Sig. Process. 23(1), 67–72 (1975)CrossRef Itakura, F.: Minimum prediction residual principle applied to speech recognition. IEEE Trans. Acoust. Speech Sig. Process. 23(1), 67–72 (1975)CrossRef
16.
go back to reference Jegadeesh, N., Titman, S.: Returns to buying winners and selling losers: implications for stock market efficiency. J. Finan. 48(1), 65–91 (1993)CrossRef Jegadeesh, N., Titman, S.: Returns to buying winners and selling losers: implications for stock market efficiency. J. Finan. 48(1), 65–91 (1993)CrossRef
17.
go back to reference Keogh, E.J., Pazzani, M.J.: Scaling up dynamic time warping for datamining applications. In: Proceedings of the Sixth ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, pp. 285–289. ACM (2000) Keogh, E.J., Pazzani, M.J.: Scaling up dynamic time warping for datamining applications. In: Proceedings of the Sixth ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, pp. 285–289. ACM (2000)
18.
go back to reference Kuramoto, T., Izumi, K., Yoshimura, S., Ishida, T., Nakashima, A., Matsui, T., Yoshida, M., Nakagawa, H.: Analysis of long-term market trend by text-mining of news articles (in Janapnese). Trans. Jpn. Soc. Artif. Intell. 28(3), 291–296 (2013)CrossRef Kuramoto, T., Izumi, K., Yoshimura, S., Ishida, T., Nakashima, A., Matsui, T., Yoshida, M., Nakagawa, H.: Analysis of long-term market trend by text-mining of news articles (in Janapnese). Trans. Jpn. Soc. Artif. Intell. 28(3), 291–296 (2013)CrossRef
19.
go back to reference Mandelbrot, B.: The variation of certain speculative prices. J. Bus. 36(4), 394–419 (1963)CrossRef Mandelbrot, B.: The variation of certain speculative prices. J. Bus. 36(4), 394–419 (1963)CrossRef
20.
go back to reference Nakagawa, K., Imamura, M., Yoshida, K.: Stock price prediction using similarity of stock price fluctuation patterns (in Japanese). In: The 31st Annual Conference of the Japanese Society for Artificial Intelligence, p. 2D1-1 (2017) Nakagawa, K., Imamura, M., Yoshida, K.: Stock price prediction using similarity of stock price fluctuation patterns (in Japanese). In: The 31st Annual Conference of the Japanese Society for Artificial Intelligence, p. 2D1-1 (2017)
21.
go back to reference Stone, M.: Cross-validatory choice and assessment of statistical predictions. J. R. Stat. Soc. Ser. B (Methodol.) 36, 111–147 (1974)MathSciNetMATH Stone, M.: Cross-validatory choice and assessment of statistical predictions. J. R. Stat. Soc. Ser. B (Methodol.) 36, 111–147 (1974)MathSciNetMATH
Metadata
Title
Stock Price Prediction with Fluctuation Patterns Using Indexing Dynamic Time Warping and -Nearest Neighbors
Authors
Kei Nakagawa
Mitsuyoshi Imamura
Kenichi Yoshida
Copyright Year
2018
DOI
https://doi.org/10.1007/978-3-319-93794-6_7

Premium Partner