Journal of Computational Finance

Risk.net

Clustering market regimes using the Wasserstein distance

Blanka Horvath, Zacharia Issa and Aitor Muguruza

  • We develop and apply a modification of the k-means clustering algorithm to financial data using the Wasserstein distance and Wasserstein barycenter.
  • We qualitatively compare our model to two classical approaches and show that it outperforms them, especially when returns are non-Gaussian.
  • We quantitatively validate our approach using a wide variety of methods, including some classical, and a maximum mean discrepancy approach, validating qualitative results.

The problem of rapid and automated detection of distinct market regimes is a topic of great interest to financial mathematicians and practitioners alike. In this paper, we outline an unsupervised learning algorithm for clustering financial time series into a suitable number of temporal segments (market regimes). As a special case of the above, we develop a robust algorithm that automates the process of classifying market regimes. The method is robust in the sense that it does not depend on modeling assumptions of the underlying time series, as our experiments with real data sets show. This method – dubbed the Wasserstein k-means algorithm – frames such a problem as one on the space of probability measures with finite pth moment, in terms of the p-Wasserstein distance between (empirical) distributions. We compare our Wasserstein k-means approach with more traditional clustering algorithms by studying the so-called maximum mean discrepancy scores between, and within, clusters. In both cases it is shown that the Wasserstein k-means algorithm greatly outperforms all considered alternative approaches. We demonstrate the performance of all approaches both on synthetic data in a controlled environment and on real data.

Sorry, our subscription options are not loading right now

Please try again later. Get in touch with our customer services team if this issue persists.

New to Risk.net? View our subscription options

You need to sign in to use this feature. If you don’t have a Risk.net account, please register for a trial.

Sign in
You are currently on corporate access.

To use this feature you will need an individual account. If you have one already please sign in.

Sign in.

Alternatively you can request an individual account here