IDEAS home Printed from https://ideas.repec.org/a/eee/riibaf/v64y2023ics0275531923000314.html
   My bibliography  Save this article

Forecasting cryptocurrency returns with machine learning

Author

Listed:
  • Liu, Yujun
  • Li, Zhongfei
  • Nekhili, Ramzi
  • Sultan, Jahangir

Abstract

This article employs machine learning models to predict returns for 3703 cryptocurrencies for the 2013 – 2021 period. Based on daily data, we build an equal (capital)-weighted portfolio that generates 7.1 % (2.4 %) daily return with a 1.95 (0.27) Sharpe ratio. We obtain an out-of-sample R2 of 4.855 %. Our results suggest that cryptocurrencies behave like conventional assets than fiat currencies since variables, including lagged returns, can predict future returns. As assets, cryptocurrencies are not weakly efficient, and production costs do not determine their prices. Returns for small cryptocurrencies are more predictable than larger ones. The predictive power of the 1-day lagged return is stronger than all other features (predictors) combined. The results offer new insights for crypto investors, traders, and financial analysts.

Suggested Citation

  • Liu, Yujun & Li, Zhongfei & Nekhili, Ramzi & Sultan, Jahangir, 2023. "Forecasting cryptocurrency returns with machine learning," Research in International Business and Finance, Elsevier, vol. 64(C).
  • Handle: RePEc:eee:riibaf:v:64:y:2023:i:c:s0275531923000314
    DOI: 10.1016/j.ribaf.2023.101905
    as

    Download full text from publisher

    File URL: http://www.sciencedirect.com/science/article/pii/S0275531923000314
    Download Restriction: Full text for ScienceDirect subscribers only

    File URL: https://libkey.io/10.1016/j.ribaf.2023.101905?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
    ---><---

    As the access to this document is restricted, you may want to search for a different version of it.

    References listed on IDEAS

    as
    1. Schilling, Linda & Uhlig, Harald, 2019. "Some simple bitcoin economics," Journal of Monetary Economics, Elsevier, vol. 106(C), pages 16-26.
    2. Orte, Francisco & Mira, José & Sánchez, María Jesús & Solana, Pablo, 2023. "A random forest-based model for crypto asset forecasts in futures markets with out-of-sample prediction," Research in International Business and Finance, Elsevier, vol. 64(C).
    3. Michael Sockin & Wei Xiong, 2020. "A Model of Cryptocurrencies," NBER Working Papers 26816, National Bureau of Economic Research, Inc.
    4. Bouri, Elie & Gupta, Rangan & Lahiani, Amine & Shahbaz, Muhammad, 2018. "Testing for asymmetric nonlinear short- and long-run relationships between bitcoin, aggregate commodity and gold prices," Resources Policy, Elsevier, vol. 57(C), pages 224-235.
    5. Yechen Zhu & David Dickinson & Jianjun Li, 2017. "Erratum to: Analysis on the influence factors of Bitcoin’s price based on VEC model," Financial Innovation, Springer;Southwestern University of Finance and Economics, vol. 3(1), pages 1-1, December.
    6. Shihao Gu & Bryan Kelly & Dacheng Xiu, 2020. "Empirical Asset Pricing via Machine Learning," Review of Finance, European Finance Association, vol. 33(5), pages 2223-2273.
    7. Yechen Zhu & David Dickinson & Jianjun Li, 2017. "Analysis on the influence factors of Bitcoin’s price based on VEC model," Financial Innovation, Springer;Southwestern University of Finance and Economics, vol. 3(1), pages 1-13, December.
    8. Shihao Gu & Bryan Kelly & Dacheng Xiu, 2020. "Empirical Asset Pricing via Machine Learning," The Review of Financial Studies, Society for Financial Studies, vol. 33(5), pages 2223-2273.
    9. Wang, Yaqi & Wang, Chunfeng & Sensoy, Ahmet & Yao, Shouyu & Cheng, Feiyang, 2022. "Can investors’ informed trading predict cryptocurrency returns? Evidence from machine learning," Research in International Business and Finance, Elsevier, vol. 62(C).
    10. Zaremba, Adam & Bilgin, Mehmet Huseyin & Long, Huaigang & Mercik, Aleksander & Szczygielski, Jan J., 2021. "Up or down? Short-term reversal, momentum, and liquidity effects in cryptocurrency markets," International Review of Financial Analysis, Elsevier, vol. 78(C).
    11. Sun, Xiaolei & Liu, Mingxi & Sima, Zeqian, 2020. "A novel cryptocurrency price trend forecasting model based on LightGBM," Finance Research Letters, Elsevier, vol. 32(C).
    12. Jamal Bouoiyour & Refk Selmi, 2015. "What Does Bitcoin Look Like?," Annals of Economics and Finance, Society for AEF, vol. 16(2), pages 449-492, November.
    13. Ren, Yi-Shuai & Ma, Chao-Qun & Kong, Xiao-Lin & Baltas, Konstantinos & Zureigat, Qasim, 2022. "Past, present, and future of the application of machine learning in cryptocurrency research," Research in International Business and Finance, Elsevier, vol. 63(C).
    14. Katz, Michael L & Shapiro, Carl, 1985. "Network Externalities, Competition, and Compatibility," American Economic Review, American Economic Association, vol. 75(3), pages 424-440, June.
    15. Jiang, Kunliang & Zeng, Linhui & Song, Jiashan & Liu, Yimeng, 2022. "Forecasting Value-at-Risk of cryptocurrencies using the time-varying mixture-accelerating generalized autoregressive score model," Research in International Business and Finance, Elsevier, vol. 61(C).
    16. Liu, Mingxi & Li, Guowen & Li, Jianping & Zhu, Xiaoqian & Yao, Yinhong, 2021. "Forecasting the price of Bitcoin using deep learning," Finance Research Letters, Elsevier, vol. 40(C).
    17. Lahmiri, Salim & Bekiros, Stelios, 2019. "Cryptocurrency forecasting with deep learning chaotic neural networks," Chaos, Solitons & Fractals, Elsevier, vol. 118(C), pages 35-40.
    18. Erdinc Akyildirim & Ahmet Goncu & Ahmet Sensoy, 2021. "Prediction of cryptocurrency returns using machine learning," Annals of Operations Research, Springer, vol. 297(1), pages 3-36, February.
    19. Chowdhury, Reaz & Rahman, M. Arifur & Rahman, M. Sohel & Mahdy, M.R.C., 2020. "An approach to predict and forecast the price of constituents and index of cryptocurrency using machine learning," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 551(C).
    20. Bouri, Elie & Christou, Christina & Gupta, Rangan, 2022. "Forecasting returns of major cryptocurrencies: Evidence from regime-switching factor models," Finance Research Letters, Elsevier, vol. 49(C).
    21. Yukun Liu & Aleh Tsyvinski, 2021. "Risks and Returns of Cryptocurrency," The Review of Financial Studies, Society for Financial Studies, vol. 34(6), pages 2689-2727.
    22. Yae, James & Tian, George Zhe, 2022. "Out-of-sample forecasting of cryptocurrency returns: A comprehensive comparison of predictors and algorithms," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 598(C).
    23. Yousaf, Imran & Nekhili, Ramzi & Gubareva, Mariya, 2022. "Linkages between DeFi assets and conventional currencies: Evidence from the COVID-19 pandemic," International Review of Financial Analysis, Elsevier, vol. 81(C).
    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. Vecchi, Edoardo & Berra, Gabriele & Albrecht, Steffen & Gagliardini, Patrick & Horenko, Illia, 2023. "Entropic approximate learning for financial decision-making in the small data regime," Research in International Business and Finance, Elsevier, vol. 65(C).
    2. Riahi, Rabeb & Bennajma, Amel & Jahmane, Abderrahmane & Hammami, Helmi, 2024. "Investing in cryptocurrency before and during the COVID-19 crisis: Hedge, diversifier or safe haven?," Research in International Business and Finance, Elsevier, vol. 67(PB).

    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. Ahmed, Walid M.A., 2022. "Robust drivers of Bitcoin price movements: An extreme bounds analysis," The North American Journal of Economics and Finance, Elsevier, vol. 62(C).
    2. Goodell, John W. & Ben Jabeur, Sami & Saâdaoui, Foued & Nasir, Muhammad Ali, 2023. "Explainable artificial intelligence modeling to forecast bitcoin prices," International Review of Financial Analysis, Elsevier, vol. 88(C).
    3. Helder Sebastião & Pedro Godinho, 2021. "Forecasting and trading cryptocurrencies with machine learning under changing market conditions," Financial Innovation, Springer;Southwestern University of Finance and Economics, vol. 7(1), pages 1-30, December.
    4. Yae, James & Tian, George Zhe, 2022. "Out-of-sample forecasting of cryptocurrency returns: A comprehensive comparison of predictors and algorithms," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 598(C).
    5. Bouteska, Ahmed & Abedin, Mohammad Zoynul & Hajek, Petr & Yuan, Kunpeng, 2024. "Cryptocurrency price forecasting – A comparative analysis of ensemble learning and deep learning methods," International Review of Financial Analysis, Elsevier, vol. 92(C).
    6. Burcu Kapar & Jose Olmo, 2021. "Analysis of Bitcoin prices using market and sentiment variables," The World Economy, Wiley Blackwell, vol. 44(1), pages 45-63, January.
    7. Nakagawa, Kei & Sakemoto, Ryuta, 2022. "Cryptocurrency network factors and gold," Finance Research Letters, Elsevier, vol. 46(PB).
    8. Zhang, Dingxuan & Sun, Yuying & Duan, Hongbo & Hong, Yongmiao & Wang, Shouyang, 2023. "Speculation or currency? Multi-scale analysis of cryptocurrencies—The case of Bitcoin," International Review of Financial Analysis, Elsevier, vol. 88(C).
    9. Zhang, Wei & Li, Yi & Xiong, Xiong & Wang, Pengfei, 2021. "Downside risk and the cross-section of cryptocurrency returns," Journal of Banking & Finance, Elsevier, vol. 133(C).
    10. Ren, Yi-Shuai & Ma, Chao-Qun & Kong, Xiao-Lin & Baltas, Konstantinos & Zureigat, Qasim, 2022. "Past, present, and future of the application of machine learning in cryptocurrency research," Research in International Business and Finance, Elsevier, vol. 63(C).
    11. Julián A. Parra & Carlos Arango - Joaquín Bernal & José E. Gómez - Javier Gómez & Carlos León - Clara Machado & Daniel Osorio - Daniel Rojas & Nicolás Suárez - Eduardo Yanquen, 2019. "Criptoactivos: análisis y revisión de literatura," Revista ESPE - Ensayos Sobre Política Económica, Banco de la República, issue 92, pages 1-37, November.
    12. Fieberg, Christian & Liedtke, Gerrit & Zaremba, Adam, 2024. "Cryptocurrency anomalies and economic constraints," International Review of Financial Analysis, Elsevier, vol. 94(C).
    13. Tan, Xilong & Tao, Yubo, 2023. "Trend-based forecast of cryptocurrency returns," Economic Modelling, Elsevier, vol. 124(C).
    14. Nicolás Magner & Nicolás Hardy, 2022. "Cryptocurrency Forecasting: More Evidence of the Meese-Rogoff Puzzle," Mathematics, MDPI, vol. 10(13), pages 1-27, July.
    15. Cakici, Nusret & Shahzad, Syed Jawad Hussain & Będowska-Sójka, Barbara & Zaremba, Adam, 2024. "Machine learning and the cross-section of cryptocurrency returns," International Review of Financial Analysis, Elsevier, vol. 94(C).
    16. Rodrigo Hakim das Neves, 2020. "Bitcoin pricing: impact of attractiveness variables," Financial Innovation, Springer;Southwestern University of Finance and Economics, vol. 6(1), pages 1-18, December.
    17. Xun Zhang & Fengbin Lu & Rui Tao & Shouyang Wang, 2021. "The time-varying causal relationship between the Bitcoin market and internet attention," Financial Innovation, Springer;Southwestern University of Finance and Economics, vol. 7(1), pages 1-19, December.
    18. Guo, Li & Sang, Bo & Tu, Jun & Wang, Yu, 2024. "Cross-cryptocurrency return predictability," Journal of Economic Dynamics and Control, Elsevier, vol. 163(C).
    19. Serdar Neslihanoglu, 2021. "Linearity extensions of the market model: a case of the top 10 cryptocurrency prices during the pre-COVID-19 and COVID-19 periods," Financial Innovation, Springer;Southwestern University of Finance and Economics, vol. 7(1), pages 1-27, December.
    20. Yaya, OlaOluwa S. & Lukman, Adewale F. & Vo, Xuan Vinh, 2022. "Persistence and volatility spillovers of bitcoin price to gold and silver prices," Resources Policy, Elsevier, vol. 79(C).

    More about this item

    Keywords

    Cryptocurrency; Machine learning; eXtreme Gradient Boostine; SHapley Additive exPlanations;
    All these keywords.

    JEL classification:

    • C53 - Mathematical and Quantitative Methods - - Econometric Modeling - - - Forecasting and Prediction Models; Simulation Methods
    • G11 - Financial Economics - - General Financial Markets - - - Portfolio Choice; Investment Decisions
    • G12 - Financial Economics - - General Financial Markets - - - Asset Pricing; Trading Volume; Bond Interest Rates
    • G15 - Financial Economics - - General Financial Markets - - - International Financial Markets
    • G17 - Financial Economics - - General Financial Markets - - - Financial Forecasting and Simulation

    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:eee:riibaf:v:64:y:2023:i:c:s0275531923000314. 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: Catherine Liu (email available below). General contact details of provider: http://www.elsevier.com/locate/ribaf .

    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.