IDEAS home Printed from https://ideas.repec.org/a/gam/jmathe/v9y2020i1p56-d470101.html
   My bibliography  Save this article

Exchange Market Liquidity Prediction with the K-Nearest Neighbor Approach: Crypto vs. Fiat Currencies

Author

Listed:
  • Klender Cortez

    (Universidad Autonoma de Nuevo Leon, Facultad de Contaduria Publica y Administracion, San Nicolás de los Garza 66451, Mexico)

  • Martha del Pilar Rodríguez-García

    (Universidad Autonoma de Nuevo Leon, Facultad de Contaduria Publica y Administracion, San Nicolás de los Garza 66451, Mexico)

  • Samuel Mongrut

    (Tecnologico de Monterrey, EGADE Business School, San Pedro Garza García 66269, Mexico
    Universidad del Pacífico, Departamento de Finanzas, Jesús María 15072, Peru)

Abstract

In this paper, we compare the predictions on the market liquidity in crypto and fiat currencies between two traditional time series methods, the autoregressive moving average (ARMA) and the generalized autoregressive conditional heteroskedasticity (GARCH), and the machine learning algorithm called the k-nearest neighbor (KNN) approach. We measure market liquidity as the log rates of bid-ask spreads in a sample of three cryptocurrencies (Bitcoin, Ethereum, and Ripple) and 16 major fiat currencies from 9 February 2018 to 8 February 2019. We find that the KNN approach is better suited for capturing the market liquidity in a cryptocurrency in the short-term than the ARMA and GARCH models maybe due to the complexity of the microstructure of the market. Considering traditional time series models, we find that ARMA models perform well when estimating the liquidity of fiat currencies in developed markets, whereas GARCH models do the same for fiat currencies in emerging markets. Nevertheless, our results show that the KNN approach can better predict the log rates of the bid-ask spreads of crypto and fiat currencies than ARMA and GARCH models.

Suggested Citation

  • Klender Cortez & Martha del Pilar Rodríguez-García & Samuel Mongrut, 2020. "Exchange Market Liquidity Prediction with the K-Nearest Neighbor Approach: Crypto vs. Fiat Currencies," Mathematics, MDPI, vol. 9(1), pages 1-15, December.
  • Handle: RePEc:gam:jmathe:v:9:y:2020:i:1:p:56-:d:470101
    as

    Download full text from publisher

    File URL: https://www.mdpi.com/2227-7390/9/1/56/pdf
    Download Restriction: no

    File URL: https://www.mdpi.com/2227-7390/9/1/56/
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. Stenfors, Alexis, 2018. "Bid-ask spread determination in the FX swap market: Competition, collusion or a convention?," Journal of International Financial Markets, Institutions and Money, Elsevier, vol. 54(C), pages 78-97.
    2. Jamal Bouoiyour & Refk Selmi & Aviral Kumar Tiwari & Olaolu Richard Olayeni, 2016. "What drives Bitcoin price?," Economics Bulletin, AccessEcon, vol. 36(2), pages 843-850.
    3. Barbara Będowska-Sójka & Tomasz Hinc & Agata Kliber, 2020. "Volatility and Liquidity in Cryptocurrency Markets—The Causality Approach," Springer Proceedings in Business and Economics, in: Krzysztof Jajuga & Hermann Locarek-Junge & Lucjan T. Orlowski & Karsten Staehr (ed.), Contemporary Trends and Challenges in Finance, pages 31-43, Springer.
    4. KiHoon Hong, 2017. "Bitcoin as an alternative investment vehicle," Information Technology and Management, Springer, vol. 18(4), pages 265-275, December.
    5. Khuntia, Sashikanta & Pattanayak, J.K., 2020. "Adaptive long memory in volatility of intra-day bitcoin returns and the impact of trading volume," Finance Research Letters, Elsevier, vol. 32(C).
    6. Lahmiri, Salim & Bekiros, Stelios & Salvi, Antonio, 2018. "Long-range memory, distributional variation and randomness of bitcoin volatility," Chaos, Solitons & Fractals, Elsevier, vol. 107(C), pages 43-48.
    7. Bollerslev, Tim, 1986. "Generalized autoregressive conditional heteroskedasticity," Journal of Econometrics, Elsevier, vol. 31(3), pages 307-327, April.
    8. Anne B. Koehler & Emily S. Murphree, 1988. "A Comparison of the Akaike and Schwarz Criteria for Selecting Model Order," Journal of the Royal Statistical Society Series C, Royal Statistical Society, vol. 37(2), pages 187-195, June.
    9. KiHoon Hong, 0. "Bitcoin as an alternative investment vehicle," Information Technology and Management, Springer, vol. 0, pages 1-11.
    10. 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.
    11. Fernandez-Rodriguez, Fernando & Sosvilla-Rivero, Simon & Andrada-Felix, Julian, 1999. "Exchange-rate forecasts with simultaneous nearest-neighbour methods: evidence from the EMS," International Journal of Forecasting, Elsevier, vol. 15(4), pages 383-392, October.
    12. Sejung Park & Han Woo Park, 2020. "Diffusion of cryptocurrencies: web traffic and social network attributes as indicators of cryptocurrency performance," Quality & Quantity: International Journal of Methodology, Springer, vol. 54(1), pages 297-314, February.
    13. Lidija Lovreta & Joaquín López Pascual, 2020. "Structural breaks in the interaction between bank and sovereign default risk," SERIEs: Journal of the Spanish Economic Association, Springer;Spanish Economic Association, vol. 11(4), pages 531-559, December.
    14. Heather Mitchell & Michael Mckenzie, 2003. "GARCH model selection criteria," Quantitative Finance, Taylor & Francis Journals, vol. 3(4), pages 262-284.
    15. Phillip, Andrew & Chan, Jennifer & Peiris, Shelton, 2019. "On long memory effects in the volatility measure of Cryptocurrencies," Finance Research Letters, Elsevier, vol. 28(C), pages 95-100.
    16. Köchling, Gerrit & Schmidtke, Philipp & Posch, Peter N., 2020. "Volatility forecasting accuracy for Bitcoin," Economics Letters, Elsevier, vol. 191(C).
    17. Adam Hayes, 2015. "A Cost of Production Model for Bitcoin," Working Papers 1505, New School for Social Research, Department of Economics.
    18. Wei, Wang Chun, 2018. "Liquidity and market efficiency in cryptocurrencies," Economics Letters, Elsevier, vol. 168(C), pages 21-24.
    19. Nelson, Daniel B, 1991. "Conditional Heteroskedasticity in Asset Returns: A New Approach," Econometrica, Econometric Society, vol. 59(2), pages 347-370, March.
    20. Krzysztof Jajuga & Hermann Locarek-Junge & Lucjan T. Orlowski & Karsten Staehr (ed.), 2020. "Contemporary Trends and Challenges in Finance," Springer Proceedings in Business and Economics, Springer, number 978-3-030-43078-8, February.
    21. 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.
    22. Acereda, Beatriz & Leon, Angel & Mora, Juan, 2020. "Estimating the expected shortfall of cryptocurrencies: An evaluation based on backtesting," Finance Research Letters, Elsevier, vol. 33(C).
    23. Roy Cerqueti & Massimiliano Giacalone & Raffaele Mattera, 2020. "Skewed non-Gaussian GARCH models for cryptocurrencies volatility modelling," Papers 2004.11674, arXiv.org.
    24. Kim, Thomas, 2017. "On the transaction cost of Bitcoin," Finance Research Letters, Elsevier, vol. 23(C), pages 300-305.
    25. Katsiampa, Paraskevi, 2017. "Volatility estimation for Bitcoin: A comparison of GARCH models," Economics Letters, Elsevier, vol. 158(C), pages 3-6.
    26. Finkenstadt, Barbel & Kuhbier, Peter, 1995. "Forecasting Nonlinear Economic Time Series: A Simple Test to Accompany the Nearest Neighbor Approach," Empirical Economics, Springer, vol. 20(2), pages 243-263.
    27. Dwyer, Gerald P., 2015. "The economics of Bitcoin and similar private digital currencies," Journal of Financial Stability, Elsevier, vol. 17(C), pages 81-91.
    28. Arroyo, Javier & Maté, Carlos, 2009. "Forecasting histogram time series with k-nearest neighbours methods," International Journal of Forecasting, Elsevier, vol. 25(1), pages 192-207.
    29. Pierre J. Venter & Eben Maré, 2020. "GARCH Generated Volatility Indices of Bitcoin and CRIX," JRFM, MDPI, vol. 13(6), pages 1-15, June.
    30. Walther, Thomas & Klein, Tony & Bouri, Elie, 2019. "Exogenous drivers of Bitcoin and Cryptocurrency volatility – A mixed data sampling approach to forecasting," Journal of International Financial Markets, Institutions and Money, Elsevier, vol. 63(C).
    31. Dyhrberg, Anne H. & Foley, Sean & Svec, Jiri, 2018. "How investible is Bitcoin? Analyzing the liquidity and transaction costs of Bitcoin markets," Economics Letters, Elsevier, vol. 171(C), pages 140-143.
    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. Andrea Flori, 2019. "Cryptocurrencies In Finance: Review And Applications," International Journal of Theoretical and Applied Finance (IJTAF), World Scientific Publishing Co. Pte. Ltd., vol. 22(05), pages 1-22, August.
    2. 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.
    3. 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.
    4. Yin, Libo & Nie, Jing & Han, Liyan, 2021. "Understanding cryptocurrency volatility: The role of oil market shocks," International Review of Economics & Finance, Elsevier, vol. 72(C), pages 233-253.
    5. Nikolaos A. Kyriazis, 2019. "A Survey on Efficiency and Profitable Trading Opportunities in Cryptocurrency Markets," JRFM, MDPI, vol. 12(2), pages 1-17, April.
    6. Jiménez, Inés & Mora-Valencia, Andrés & Perote, Javier, 2022. "Semi-nonparametric risk assessment with cryptocurrencies," Research in International Business and Finance, Elsevier, vol. 59(C).
    7. Leandro Maciel, 2021. "Cryptocurrencies value‐at‐risk and expected shortfall: Do regime‐switching volatility models improve forecasting?," International Journal of Finance & Economics, John Wiley & Sons, Ltd., vol. 26(3), pages 4840-4855, July.
    8. Stefano Martinazzi & Daniele Regoli & Andrea Flori, 2020. "A Tale of Two Layers: The Mutual Relationship between Bitcoin and Lightning Network," Risks, MDPI, vol. 8(4), pages 1-18, December.
    9. Lennart Ante, 2020. "A place next to Satoshi: foundations of blockchain and cryptocurrency research in business and economics," Scientometrics, Springer;Akadémiai Kiadó, vol. 124(2), pages 1305-1333, August.
    10. Νikolaos A. Kyriazis & Paraskevi Prassa, 2019. "Which Cryptocurrencies Are Mostly Traded in Distressed Times?," JRFM, MDPI, vol. 12(3), pages 1-12, August.
    11. Frode Kjærland & Aras Khazal & Erlend A. Krogstad & Frans B. G. Nordstrøm & Are Oust, 2018. "An Analysis of Bitcoin’s Price Dynamics," JRFM, MDPI, vol. 11(4), pages 1-18, October.
    12. Siwen Zhou, 2021. "Exploring the driving forces of the Bitcoin currency exchange rate dynamics: an EGARCH approach," Empirical Economics, Springer, vol. 60(2), pages 557-606, February.
    13. Cristina Chinazzo & Vahidin Jeleskovic, 2024. "Forecasting Bitcoin Volatility: A Comparative Analysis of Volatility Approaches," Papers 2401.02049, arXiv.org.
    14. Constandina Koki & Stefanos Leonardos & Georgios Piliouras, 2020. "Do Cryptocurrency Prices Camouflage Latent Economic Effects? A Bayesian Hidden Markov Approach," Future Internet, MDPI, vol. 12(3), pages 1-19, March.
    15. Tetsuya Takaishi, 2021. "Time-varying properties of asymmetric volatility and multifractality in Bitcoin," Papers 2102.07425, arXiv.org.
    16. Tapia, Sebastian & Kristjanpoller, Werner, 2022. "Framework based on multiplicative error and residual analysis to forecast bitcoin intraday-volatility," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 589(C).
    17. Bergsli, Lykke Øverland & Lind, Andrea Falk & Molnár, Peter & Polasik, Michał, 2022. "Forecasting volatility of Bitcoin," Research in International Business and Finance, Elsevier, vol. 59(C).
    18. Ata Assaf & Luis Alberiko Gil-Alana & Khaled Mokni, 2022. "True or spurious long memory in the cryptocurrency markets: evidence from a multivariate test and other Whittle estimation methods," Empirical Economics, Springer, vol. 63(3), pages 1543-1570, September.
    19. Parthajit Kayal & Purnima Rohilla, 2021. "Bitcoin in the economics and finance literature: a survey," SN Business & Economics, Springer, vol. 1(7), pages 1-21, July.
    20. Ishtiaq Ahmad Bajwa & Shafiq Ur Rehman & Abid Iqbal & Zaheer Anwer & Murtaza Ashiq & Muhammad Ajmal Khan, 2022. "Past, Present and Future of FinTech Research: A Bibliometric Analysis," SAGE Open, , vol. 12(4), pages 21582440221, October.

    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:gam:jmathe:v:9:y:2020:i:1:p:56-:d:470101. 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: MDPI Indexing Manager (email available below). General contact details of provider: https://www.mdpi.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.