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. 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).
    2. 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.
    3. 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).
    4. 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.
    5. 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.
    6. 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.
    7. Barbara Rossi, 2013. "Exchange Rate Predictability," Journal of Economic Literature, American Economic Association, vol. 51(4), pages 1063-1119, December.
    8. 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.
    9. 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.
    10. 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.
    11. 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.
    12. Chen, Yong & Kelly, Bryan & Wu, Wei, 2020. "Sophisticated investors and market efficiency: Evidence from a natural experiment," Journal of Financial Economics, Elsevier, vol. 138(2), pages 316-341.
    13. Yi‐Chiuan Wang & Jyh‐Lin Wu, 2015. "Fundamentals and Exchange Rate Prediction Revisited," Journal of Money, Credit and Banking, Blackwell Publishing, vol. 47(8), pages 1651-1671, December.
    14. Contreras, Harold & Marcet, Francisco, 2021. "Arbitrageurs and overreaction to earnings surprises," Finance Research Letters, Elsevier, vol. 43(C).
    15. Liu, Keshi & Weng, Tongfeng & Gu, Changgui & Yang, Huijie, 2020. "Visibility graph analysis of Bitcoin price series," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 538(C).
    16. Imad Moosa & Kelly Burns, 2014. "Error correction modelling and dynamic specifications as a conduit to outperforming the random walk in exchange rate forecasting," Applied Economics, Taylor & Francis Journals, vol. 46(25), pages 3107-3118, September.
    17. Vygodina, Anna V. & Zorn, Thomas S. & DeFusco, Richard, 2008. "Asymmetry in the effects of economic fundamentals on rising and falling exchange rates," International Review of Financial Analysis, Elsevier, vol. 17(4), pages 728-746, September.
    18. Philippe Bacchetta & Eric van Wincoop & Toni Beutler, 2010. "Can Parameter Instability Explain the Meese-Rogoff Puzzle?," NBER International Seminar on Macroeconomics, University of Chicago Press, vol. 6(1), pages 125-173.
    19. Chen, Yong & Da, Zhi & Huang, Dayong, 2022. "Short selling efficiency," Journal of Financial Economics, Elsevier, vol. 145(2), pages 387-408.
    20. Wright, Jonathan H., 2008. "Bayesian Model Averaging and exchange rate forecasts," Journal of Econometrics, Elsevier, vol. 146(2), pages 329-341, October.

    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.