IDEAS home Printed from https://ideas.repec.org/p/arx/papers/2210.00883.html

Forecasting Cryptocurrencies Log-Returns: a LASSO-VAR and Sentiment Approach

Author

Listed:
  • Federico D'Amario
  • Milos Ciganovic

Abstract

Cryptocurrencies have become a trendy topic recently, primarily due to their disruptive potential and reports of unprecedented returns. In addition, academics increasingly acknowledge the predictive power of Social Media in many fields and, more specifically, for financial markets and economics. In this paper, we leverage the predictive power of Twitter and Reddit sentiment together with Google Trends indexes and volume to forecast the log returns of ten cryptocurrencies. Specifically, we consider $Bitcoin$, $Ethereum$, $Tether$, $Binance Coin$, $Litecoin$, $Enjin Coin$, $Horizen$, $Namecoin$, $Peercoin$, and $Feathercoin$. We evaluate the performance of LASSO-VAR using daily data from January 2018 to January 2022. In a 30 days recursive forecast, we can retrieve the correct direction of the actual series more than 50% of the time. We compare this result with the main benchmarks, and we see a 10% improvement in Mean Directional Accuracy (MDA). The use of sentiment and attention variables as predictors increase significantly the forecast accuracy in terms of MDA but not in terms of Root Mean Squared Errors. We perform a Granger causality test using a post-double LASSO selection for high-dimensional VARs. Results show no "causality" from Social Media sentiment to cryptocurrencies returns

Suggested Citation

  • Federico D'Amario & Milos Ciganovic, 2022. "Forecasting Cryptocurrencies Log-Returns: a LASSO-VAR and Sentiment Approach," Papers 2210.00883, arXiv.org.
  • Handle: RePEc:arx:papers:2210.00883
    as

    Download full text from publisher

    File URL: http://arxiv.org/pdf/2210.00883
    File Function: Latest version
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. Hanna Halaburda & Guillaume Haeringer & Joshua Gans & Neil Gandal, 2022. "The Microeconomics of Cryptocurrencies," Journal of Economic Literature, American Economic Association, vol. 60(3), pages 971-1013, September.
    2. Muhammad Ali Nasir & Toan Luu Duc Huynh & Sang Phu Nguyen & Duy Duong, 2019. "Forecasting cryptocurrency returns and volume using search engines," Financial Innovation, Springer;Southwestern University of Finance and Economics, vol. 5(1), pages 1-13, December.
    3. Wei Zhang & Pengfei Wang & Xiao Li & Dehua Shen, 2018. "Multifractal Detrended Cross-Correlation Analysis of the Return-Volume Relationship of Bitcoin Market," Complexity, Hindawi, vol. 2018, pages 1-20, July.
    4. West, Kenneth D, 1996. "Asymptotic Inference about Predictive Ability," Econometrica, Econometric Society, vol. 64(5), pages 1067-1084, September.
    5. Muhammad Naeem & Kashif Saleem & Sheraz Ahmed & Naeem Muhammad & Faisal Mustafa & Papavassiliou Vassilios, 2020. "Extreme return-volume relationship in cryptocurrencies: Tail dependence analysis," Cogent Economics & Finance, Taylor & Francis Journals, vol. 8(1), pages 1834175-183, January.
    6. Catania, Leopoldo & Grassi, Stefano & Ravazzolo, Francesco, 2019. "Forecasting cryptocurrencies under model and parameter instability," International Journal of Forecasting, Elsevier, vol. 35(2), pages 485-501.
    7. Neil Gandal & Hanna Halaburda, 2016. "Can We Predict the Winner in a Market with Network Effects? Competition in Cryptocurrency Market," Games, MDPI, vol. 7(3), pages 1-21, July.
    8. Sun, Xiaolei & Liu, Mingxi & Sima, Zeqian, 2020. "A novel cryptocurrency price trend forecasting model based on LightGBM," Finance Research Letters, Elsevier, vol. 32(C).
    9. Chan, Stephen & Chu, Jeffrey & Zhang, Yuanyuan & Nadarajah, Saralees, 2022. "An extreme value analysis of the tail relationships between returns and volumes for high frequency cryptocurrencies," Research in International Business and Finance, Elsevier, vol. 59(C).
    10. Marta Banbura & Domenico Giannone & Lucrezia Reichlin, 2010. "Large Bayesian vector auto regressions," Journal of Applied Econometrics, John Wiley & Sons, Ltd., vol. 25(1), pages 71-92.
    11. Friedman, Jerome H. & Hastie, Trevor & Tibshirani, Rob, 2010. "Regularization Paths for Generalized Linear Models via Coordinate Descent," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 33(i01).
    12. Balcilar, Mehmet & Bouri, Elie & Gupta, Rangan & Roubaud, David, 2017. "Can volume predict Bitcoin returns and volatility? A quantiles-based approach," Economic Modelling, Elsevier, vol. 64(C), pages 74-81.
    13. Alexandre Belloni & Victor Chernozhukov & Christian Hansen, 2014. "High-Dimensional Methods and Inference on Structural and Treatment Effects," Journal of Economic Perspectives, American Economic Association, vol. 28(2), pages 29-50, Spring.
    14. Granger, C. W. J., 1980. "Testing for causality : A personal viewpoint," Journal of Economic Dynamics and Control, Elsevier, vol. 2(1), pages 329-352, May.
    15. Aslanidis, Nektarios & Bariviera, Aurelio F. & López, Óscar G., 2022. "The link between cryptocurrencies and Google Trends attention," Finance Research Letters, Elsevier, vol. 47(PA).
    16. Fama, Eugene F, 1970. "Efficient Capital Markets: A Review of Theory and Empirical Work," Journal of Finance, American Finance Association, vol. 25(2), pages 383-417, May.
    17. Guillermo Llorente & Roni Michaely & Gideon Saar & Jiang Wang, 2002. "Dynamic Volume-Return Relation of Individual Stocks," The Review of Financial Studies, Society for Financial Studies, vol. 15(4), pages 1005-1047.
    18. Harvey, David & Leybourne, Stephen & Newbold, Paul, 1997. "Testing the equality of prediction mean squared errors," International Journal of Forecasting, Elsevier, vol. 13(2), pages 281-291, June.
    19. Granger, C W J, 1969. "Investigating Causal Relations by Econometric Models and Cross-Spectral Methods," Econometrica, Econometric Society, vol. 37(3), pages 424-438, July.
    20. Daniel, Kent & Hirshleifer, David & Teoh, Siew Hong, 2002. "Investor psychology in capital markets: evidence and policy implications," Journal of Monetary Economics, Elsevier, vol. 49(1), pages 139-209, January.
    21. Diebold, Francis X & Mariano, Roberto S, 2002. "Comparing Predictive Accuracy," Journal of Business & Economic Statistics, American Statistical Association, vol. 20(1), pages 134-144, January.
    22. Dante Miller & Jong-Min Kim, 2021. "Univariate and Multivariate Machine Learning Forecasting Models on the Price Returns of Cryptocurrencies," JRFM, MDPI, vol. 14(10), pages 1-10, October.
    23. Kraaijeveld, Olivier & De Smedt, Johannes, 2020. "The predictive power of public Twitter sentiment for forecasting cryptocurrency prices," Journal of International Financial Markets, Institutions and Money, Elsevier, vol. 65(C).
    24. Maria Glenski & Tim Weninger & Svitlana Volkova, 2019. "Improved Forecasting of Cryptocurrency Price using Social Signals," Papers 1907.00558, arXiv.org.
    25. Clark, Todd & McCracken, Michael, 2013. "Advances in Forecast Evaluation," Handbook of Economic Forecasting, in: G. Elliott & C. Granger & A. Timmermann (ed.), Handbook of Economic Forecasting, edition 1, volume 2, chapter 0, pages 1107-1201, Elsevier.
    26. Ben S. Bernanke & Jean Boivin & Piotr Eliasz, 2005. "Measuring the Effects of Monetary Policy: A Factor-Augmented Vector Autoregressive (FAVAR) Approach," The Quarterly Journal of Economics, President and Fellows of Harvard College, vol. 120(1), pages 387-422.
    27. repec:ulb:ulbeco:2013/13388 is not listed on IDEAS
    28. Corbet, Shaen & Lucey, Brian & Urquhart, Andrew & Yarovaya, Larisa, 2019. "Cryptocurrencies as a financial asset: A systematic analysis," International Review of Financial Analysis, Elsevier, vol. 62(C), pages 182-199.
    Full references (including those not matched with items on IDEAS)

    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. Petropoulos, Fotios & Apiletti, Daniele & Assimakopoulos, Vassilios & Babai, Mohamed Zied & Barrow, Devon K. & Ben Taieb, Souhaib & Bergmeir, Christoph & Bessa, Ricardo J. & Bijak, Jakub & Boylan, Joh, 2022. "Forecasting: theory and practice," International Journal of Forecasting, Elsevier, vol. 38(3), pages 705-871.
      • Fotios Petropoulos & Daniele Apiletti & Vassilios Assimakopoulos & Mohamed Zied Babai & Devon K. Barrow & Souhaib Ben Taieb & Christoph Bergmeir & Ricardo J. Bessa & Jakub Bijak & John E. Boylan & Jet, 2020. "Forecasting: theory and practice," Papers 2012.03854, arXiv.org, revised Jan 2022.
    2. Korobilis, Dimitris & Pettenuzzo, Davide, 2019. "Adaptive hierarchical priors for high-dimensional vector autoregressions," Journal of Econometrics, Elsevier, vol. 212(1), pages 241-271.
    3. Cynthia Weiyi Cai & Rui Xue & Bi Zhou, 2023. "Cryptocurrency puzzles: a comprehensive review and re-introduction," Journal of Accounting Literature, Emerald Group Publishing Limited, vol. 46(1), pages 26-50, June.
    4. 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).
    5. Muhammad Anas & Syed Jawad Hussain Shahzad & Larisa Yarovaya, 2024. "The use of high-frequency data in cryptocurrency research: a meta-review of literature with bibliometric analysis," Financial Innovation, Springer;Southwestern University of Finance and Economics, vol. 10(1), pages 1-31, December.
    6. Alain Hecq & Luca Margaritella & Stephan Smeekes, 2023. "Granger Causality Testing in High-Dimensional VARs: A Post-Double-Selection Procedure," Journal of Financial Econometrics, Oxford University Press, vol. 21(3), pages 915-958.
    7. Koop, Gary & Korobilis, Dimitris & Pettenuzzo, Davide, 2019. "Bayesian compressed vector autoregressions," Journal of Econometrics, Elsevier, vol. 210(1), pages 135-154.
    8. Tallman, Ellis W. & Zaman, Saeed, 2020. "Combining survey long-run forecasts and nowcasts with BVAR forecasts using relative entropy," International Journal of Forecasting, Elsevier, vol. 36(2), pages 373-398.
    9. Nuray Tosunoğlu & Hilal Abacı & Gizem Ateş & Neslihan Saygılı Akkaya, 2023. "Artificial neural network analysis of the day of the week anomaly in cryptocurrencies," Financial Innovation, Springer;Southwestern University of Finance and Economics, vol. 9(1), pages 1-24, December.
    10. Andrea Carriero & Todd E. Clark & Massimiliano Marcellino, 2015. "Realtime nowcasting with a Bayesian mixed frequency model with stochastic volatility," Journal of the Royal Statistical Society Series A, Royal Statistical Society, vol. 178(4), pages 837-862, October.
    11. Chuliá, Helena & Garrón, Ignacio & Uribe, Jorge M., 2024. "Daily growth at risk: Financial or real drivers? The answer is not always the same," International Journal of Forecasting, Elsevier, vol. 40(2), pages 762-776.
    12. Johanna Posch & Fabio Rumler, 2015. "Semi‐Structural Forecasting of UK Inflation Based on the Hybrid New Keynesian Phillips Curve," Journal of Forecasting, John Wiley & Sons, Ltd., vol. 34(2), pages 145-162, March.
    13. Corradi, Valentina & Swanson, Norman R., 2004. "Some recent developments in predictive accuracy testing with nested models and (generic) nonlinear alternatives," International Journal of Forecasting, Elsevier, vol. 20(2), pages 185-199.
    14. Aurelio F. Bariviera & Ignasi Merediz‐Solà, 2021. "Where Do We Stand In Cryptocurrencies Economic Research? A Survey Based On Hybrid Analysis," Journal of Economic Surveys, Wiley Blackwell, vol. 35(2), pages 377-407, April.
    15. Harvey, David I. & Leybourne, Stephen J. & Whitehouse, Emily J., 2017. "Forecast evaluation tests and negative long-run variance estimates in small samples," International Journal of Forecasting, Elsevier, vol. 33(4), pages 833-847.
    16. Skripnikov, A. & Michailidis, G., 2019. "Joint estimation of multiple network Granger causal models," Econometrics and Statistics, Elsevier, vol. 10(C), pages 120-133.
    17. Ahmed Ali & Granberg Mark & Troster Victor & Uddin Gazi Salah, 2022. "Asymmetric dynamics between uncertainty and unemployment flows in the United States," Studies in Nonlinear Dynamics & Econometrics, De Gruyter, vol. 26(1), pages 155-172, February.
    18. Balcilar, Mehmet & Katzke, Nico & Gupta, Rangan, 2017. "Do precious metal prices help in forecasting South African inflation?," The North American Journal of Economics and Finance, Elsevier, vol. 40(C), pages 63-72.
    19. Flori, Andrea, 2019. "News and subjective beliefs: A Bayesian approach to Bitcoin investments," Research in International Business and Finance, Elsevier, vol. 50(C), pages 336-356.
    20. Dimitrios P. Louzis, 2017. "Macroeconomic and credit forecasts during the Greek crisis using Bayesian VARs," Empirical Economics, Springer, vol. 53(2), pages 569-598, September.

    More about this item

    NEP fields

    This paper has been announced in the following NEP Reports:

    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:arx:papers:2210.00883. 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: arXiv administrators (email available below). General contact details of provider: http://arxiv.org/ .

    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.