IDEAS home Printed from https://ideas.repec.org/a/hin/complx/4132485.html
   My bibliography  Save this article

Stock Price Pattern Prediction Based on Complex Network and Machine Learning

Author

Listed:
  • Hongduo Cao
  • Tiantian Lin
  • Ying Li
  • Hanyu Zhang

Abstract

Complex networks in stock market and stock price volatility pattern prediction are the important issues in stock price research. Previous studies have used historical information regarding a single stock to predict the future trend of the stock’s price, seldom considering comovement among stocks in the same market. In this study, in order to extract the information about relation stocks for prediction, we try to combine the complex network method with machine learning to predict stock price patterns. Firstly, we propose a new pattern network construction method for multivariate stock time series. The price volatility combination patterns of the Standard & Poor’s 500 Index (S&P 500), the NASDAQ Composite Index (NASDAQ), and the Dow Jones Industrial Average (DJIA) are transformed into directed weighted networks. It is found that network topology characteristics, such as average degree centrality, average strength, average shortest path length, and closeness centrality, can identify periods of sharp fluctuations in the stock market. Next, the topology characteristic variables for each combination symbolic pattern are used as the input variables for K-nearest neighbors (KNN) and support vector machine (SVM) algorithms to predict the next-day volatility patterns of a single stock. The results show that the optimal models corresponding to the two algorithms can be found through cross-validation and search methods, respectively. The prediction accuracy rates for the three indexes in relation to the testing data set are greater than 70%. In general, the prediction ability of SVM algorithms is better than that of KNN algorithms.

Suggested Citation

  • Hongduo Cao & Tiantian Lin & Ying Li & Hanyu Zhang, 2019. "Stock Price Pattern Prediction Based on Complex Network and Machine Learning," Complexity, Hindawi, vol. 2019, pages 1-12, May.
  • Handle: RePEc:hin:complx:4132485
    DOI: 10.1155/2019/4132485
    as

    Download full text from publisher

    File URL: http://downloads.hindawi.com/journals/8503/2019/4132485.pdf
    Download Restriction: no

    File URL: http://downloads.hindawi.com/journals/8503/2019/4132485.xml
    Download Restriction: no

    File URL: https://libkey.io/10.1155/2019/4132485?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    References listed on IDEAS

    as
    1. Karl B. Diether & Kuan-Hui Lee & Ingrid M. Werner, 2009. "Short-Sale Strategies and Return Predictability," The Review of Financial Studies, Society for Financial Studies, vol. 22(2), pages 575-607, February.
    2. Cheung, Yin-Wong & Chinn, Menzie D. & Pascual, Antonio Garcia, 2005. "Empirical exchange rate models of the nineties: Are any fit to survive?," Journal of International Money and Finance, Elsevier, vol. 24(7), pages 1150-1175, November.
    3. Wang, Minggang & Chen, Ying & Tian, Lixin & Jiang, Shumin & Tian, Zihao & Du, Ruijin, 2016. "Fluctuation behavior analysis of international crude oil and gasoline price based on complex network perspective," Applied Energy, Elsevier, vol. 175(C), pages 109-127.
    4. Yang, Yue & Yang, Huijie, 2008. "Complex network-based time series analysis," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 387(5), pages 1381-1386.
    5. Tabak, Benjamin M. & Serra, Thiago R. & Cajueiro, Daniel O., 2010. "Topological properties of stock market networks: The case of Brazil," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 389(16), pages 3240-3249.
    Full references (including those not matched with items on IDEAS)

    Citations

    Citations are extracted by the CitEc Project, subscribe to its RSS feed for this item.
    as


    Cited by:

    1. Zhou, Yang & Xie, Chi & Wang, Gang-Jin & Zhu, You & Uddin, Gazi Salah, 2023. "Analysing and forecasting co-movement between innovative and traditional financial assets based on complex network and machine learning," Research in International Business and Finance, Elsevier, vol. 64(C).
    2. Lixia Liu & Xueli Zhan, 2019. "Analysis of Financing Efficiency of Chinese Agricultural Listed Companies Based on Machine Learning," Complexity, Hindawi, vol. 2019, pages 1-11, July.
    3. An, Sufang & An, Feng & Gao, Xiangyun & Wang, Anjian, 2023. "Early warning of critical transitions in crude oil price," Energy, Elsevier, vol. 280(C).

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Kelly Burns & Imad Moosa, 2017. "Demystifying the Meese–Rogoff puzzle: structural breaks or measures of forecasting accuracy?," Applied Economics, Taylor & Francis Journals, vol. 49(48), pages 4897-4910, October.
    2. Gürkaynak, Refet S. & Kısacıkoğlu, Burçin & Lee, Sang Seok, 2022. "Exchange rate and inflation under weak monetary policy: Turkey verifies theory," CFS Working Paper Series 679, Center for Financial Studies (CFS).
    3. Agnès Bénassy‐Quéré & Lionel Fontagné & Horst Raff, 2011. "Exchange‐rate Misalignments in Duopoly: The Case of Airbus and Boeing," The World Economy, Wiley Blackwell, vol. 34(4), pages 623-641, April.
    4. Rime, Dagfinn & Sarno, Lucio & Sojli, Elvira, 2010. "Exchange rate forecasting, order flow and macroeconomic information," Journal of International Economics, Elsevier, vol. 80(1), pages 72-88, January.
    5. Carlo Altavilla & Paul De Grauwe, 2010. "Forecasting and combining competing models of exchange rate determination," Applied Economics, Taylor & Francis Journals, vol. 42(27), pages 3455-3480.
    6. Sudhamayee, K. & Krishna, M. Gopal & Manimaran, P., 2023. "Simplicial network analysis on EEG signals," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 630(C).
    7. Alberto Fuertes & Simón Sosvilla-Rivero, 2019. "“Forecasting emerging market currencies: Are inflation expectations useful?”," IREA Working Papers 201918, University of Barcelona, Research Institute of Applied Economics, revised Oct 2019.
    8. David Hirshleifer & Siew Hong Teoh & Jeff Jiewei Yu, 2011. "Short Arbitrage, Return Asymmetry, and the Accrual Anomaly," The Review of Financial Studies, Society for Financial Studies, vol. 24(7), pages 2429-2461.
    9. Dal Bianco, Marcos & Camacho, Maximo & Perez Quiros, Gabriel, 2012. "Short-run forecasting of the euro-dollar exchange rate with economic fundamentals," Journal of International Money and Finance, Elsevier, vol. 31(2), pages 377-396.
    10. de Truchis, Gilles & Dell’Eva, Cyril & Keddad, Benjamin, 2017. "On exchange rate comovements: New evidence from a Taylor rule fundamentals model with adaptive learning," Journal of International Financial Markets, Institutions and Money, Elsevier, vol. 48(C), pages 82-98.
    11. Cheung, Yin-Wong & Rime, Dagfinn, 2014. "The offshore renminbi exchange rate: Microstructure and links to the onshore market," Journal of International Money and Finance, Elsevier, vol. 49(PA), pages 170-189.
    12. Rabanal, Pau & Rubio-Ramírez, Juan F., 2015. "Can international macroeconomic models explain low-frequency movements of real exchange rates?," Journal of International Economics, Elsevier, vol. 96(1), pages 199-211.
    13. Barbara Rossi, 2013. "Exchange Rate Predictability," Journal of Economic Literature, American Economic Association, vol. 51(4), pages 1063-1119, December.
    14. de Jong, Abe & Dutordoir, Marie & Verwijmeren, Patrick, 2011. "Why do convertible issuers simultaneously repurchase stock? An arbitrage-based explanation," Journal of Financial Economics, Elsevier, vol. 100(1), pages 113-129, April.
    15. Tse-Chun Lin & Qi Liu & Bo Sun, 2015. "Contracting with Feedback," International Finance Discussion Papers 1143, Board of Governors of the Federal Reserve System (U.S.).
    16. Tse‐Chun Lin, 2012. "Dynamic short‐sale constraints, price limits, and price dynamics," International Journal of Managerial Finance, Emerald Group Publishing Limited, vol. 8(3), pages 256-279, June.
    17. Gokcen Ogruk, 2014. "Is Implied Taylor Rule Interest Rate Applicable as a Carry Trade Strategy?," International Journal of Economics and Financial Issues, Econjournals, vol. 4(4), pages 909-919.
    18. Jacob Gyntelberg & Mico Loretan & Tientip Subhanij & Eric Chan, 2010. "Private information, stock markets, and exchange rates," BIS Papers chapters, in: Bank for International Settlements (ed.), The international financial crisis and policy challenges in Asia and the Pacific, volume 52, pages 186-210, Bank for International Settlements.
    19. Zhang, Zhibai, 2015. "Convergence of absolute purchasing power parity," MPRA Paper 64486, University Library of Munich, Germany.
    20. Müller-Plantenberg, Nikolas A., 2010. "Balance of payments accounting and exchange rate dynamics," International Review of Economics & Finance, Elsevier, vol. 19(1), pages 46-63, January.

    More about this item

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:hin:complx:4132485. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Mohamed Abdelhakeem (email available below). General contact details of provider: https://www.hindawi.com .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.