Skip to main content

Comparing Market Phase Features for Cryptocurrency and Benchmark Stock Index Using HMM and HSMM Filtering

  • Conference paper
  • First Online:
Business Information Systems Workshops (BIS 2019)

Abstract

A desirable aspect of financial time series analysis is that of successfully detecting (in real time) market phases. In this paper we implement HMMs and HSMMs with normal state-dependent distributions to Bitcoin/USD price dynamics, and also compare this with S&P 500 price dynamics, the latter being a benchmark in traditional stock market behaviour which most literature resorts to. Furthermore, we test our models’ adequacy at detecting bullish and bearish regimes by devising mock investment strategies on our models and assessing how profitable they are with unseen data in comparison to a buy-and-hold approach. We ultimately show that while our modelling approach yields positive results in both Bitcoin/USD and S&P 500, and both are best modelled by four-state HSMMs, Bitcoin/USD so far shows different regime volatility and persistence patterns to the one we are used to seeing in traditional stock markets.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 79.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 99.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

References

  1. Ardia, D., Bluteau, K., Reude, M.: Regime changes in Bitcoin GARCH volatility dynamics. Finan. Res. Lett. (2018, in press)

    Google Scholar 

  2. Baur, D.G., Dimpfl, T., Kuck, K.: Bitcoin, gold and the dollar - a replication and extension. Finan. Res. Lett. 25, 103–110 (2018)

    Article  Google Scholar 

  3. Bonello, A., Suda, D.: Volatility regime analysis of bitcoin price dynamics using Markov switching GARCH models. In: Proceedings of the European Simulation and Modelling Conference, pp. 213–218 (2018)

    Google Scholar 

  4. Bouri, E., Azzi, G., Dyhrberg, A.H.: On the return-volatility relationship in the Bitcoin market around the price crash of 2013. Econstor Economics Discussion Papers, 2016-41 (2018)

    Google Scholar 

  5. Bulla, J., Bulla, I.: hsmm: Hidden Semi-Markov Models. R package version 0.4. http://CRAN.R-project.org/package=hsmm. Accessed 12 Mar 2019 (2013)

  6. Chappell, D.-R.: Regime heteroskedasticity in Bitcoin: A comparison of Markov switching models. MPRA paper 90682, University Library of Munich, Germany (2018)

    Google Scholar 

  7. Chan, S., Chu, J., Nadarajah, S., Osterrieder, J.: A statistical analysis of cryptocurrencies. J. Risk Finan. Manage. 10(12), 1–23 (2017)

    Google Scholar 

  8. Chu, J., Chan, S., Nadarajah, S., Osterrieder, J.: GARCH modelling of cyprtocurrencies. J. Risk Finan. Manage. 10(17), 1–15 (2017)

    Google Scholar 

  9. Granger, C.-W., Ding, Z.: Some properties of absolute return: an alternative measure of risk. Annales d’Economic et de Statistique 40, 67–91 (1995a)

    Article  MathSciNet  Google Scholar 

  10. Granger, C.-W., Ding, Z.: Stylized facts on the temporal and distributional properties of daily data from speculative markets. San Diego, unpublished paper, Department of Economics, University of California (1995b)

    Google Scholar 

  11. Guédon, Y.: Estimating hidden semi-Markov chains from discrete sequences. J. Comp. Graph. Statist. 12, 604–639 (2003)

    Article  MathSciNet  Google Scholar 

  12. Harte, D.: R package ‘HiddenMarkov’, version 1.8-1. http://homepages.maxnet.co.nz/davidharte/SSLIB/. Accessed 12 Mar 2019 (2014)

  13. Katsiampa, P.: Volatility estimation for Bitcoin, a comparison of GARCH models. Econ. Lett. 158, 3–6 (2017)

    Article  MathSciNet  Google Scholar 

  14. Kodama, O., Pichl, L. and Kaizoji, T.: Regime change and trend prediction for Bitcoin time series data. In: Proceedings of the CBU International Conference on Innovations in Science and Education vol. 5, pp. 384–388 (2017)

    Google Scholar 

  15. Liu, Z., Wang, S.: Decoding Chinese stock market returns: tThree-state hidden semi-Markov model. Pac. Basic Finan. J. 44, 127–149 (2017)

    Article  Google Scholar 

  16. Nguyen, N.: Hidden Markov model for stock trading. Int. J. Finan. Stud. 6, 1–17 (2018)

    MathSciNet  Google Scholar 

  17. Rydén, T., Teräsvirta, T., Åsbrink, S.: Stylized facts of daily return series and the hidden Markov model. J. Appl. Econ. 13, 217–244 (1998)

    Article  Google Scholar 

  18. Stavroyiannis, S.: Value-at-risk and related measures for the Bitcoin. J. Risk Finan. 19(2), 127–136 (2018)

    Article  Google Scholar 

  19. Viterbi, A.J.: Error bounds for convolutional codes and an asymptotically optimal decoding algorithm. IEEE Trans. Inf. Theor. 13, 260–269 (1967)

    Article  Google Scholar 

  20. Zucchini, W., MacDonald, I.L., Langrock, R.: Hidden Markov Models for Time Series: An Introduction Using R, 2nd edn. Chapman & Hall/CRC, Boca Raton (2016)

    MATH  Google Scholar 

Download references

Acknowledgements

The research work carried out, was partially funded by the European Social Fund/ENDEAVOUR Scholarships Scheme.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to David Suda .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2019 Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Suda, D., Spiteri, L. (2019). Comparing Market Phase Features for Cryptocurrency and Benchmark Stock Index Using HMM and HSMM Filtering. In: Abramowicz, W., Corchuelo, R. (eds) Business Information Systems Workshops. BIS 2019. Lecture Notes in Business Information Processing, vol 373. Springer, Cham. https://doi.org/10.1007/978-3-030-36691-9_17

Download citation

  • DOI: https://doi.org/10.1007/978-3-030-36691-9_17

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-030-36690-2

  • Online ISBN: 978-3-030-36691-9

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics