NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

On Clustering Financial Time Series: A Need for Distances Between Dependent Random Variables

Gautier Marti, Frank Nielsen, Philippe Donnat, Sébastien AndlerSignals 2016 · OpenAlex

Abstract

The following working document summarizes our work on the clustering of financial time series. It was written for a workshop on information geometry and its application for image and signal processing. This workshop brought several experts in pure and applied mathematics together with applied researchers from medical imaging, radar signal processing and finance. The authors belong to the latter group. This document was written as a long introduction to further development of geometric tools in financial applications such as risk or portfolio analysis. Indeed, risk and portfolio analysis essentially rely on covariance matrices. Besides that the Gaussian assumption is known to be inaccurate, covariance matrices are difficult to estimate from empirical data. To filter noise from the empirical estimate, Mantegna proposed using hierarchical clustering. In this work, we first show that this procedure is statistically consistent. Then, we propose to use clustering with a much broader application than the filtering of empirical covariance matrices from the estimate correlation coefficients. To be able to do that, we need to obtain distances between the financial time series that incorporate all the available information in these cross-dependent random processes.

The Challenge: Noise and the Gaussian Trap

In financial risk management, the variance-covariance matrix is the foundational tool for assessing portfolio risk. However, practitioners face two significant hurdles when applying this tool to real-world markets. First, the Gaussian Trap: standard models assume asset returns follow a multivariate Gaussian distribution. In reality, financial data is "heavy-tailed," meaning extreme events occur more frequently than a bell curve predicts. Consequently, linear correlation (Pearson) often fails to capture the true underlying dependence structure.

Second, the Curse of Dimensionality complicates estimation. Estimating a covariance matrix for $N$ assets requires $N(N-1)/2$ coefficients. When the observation time $T$ is small relative to $N$, the resulting matrix is dominated by noise rather than signal.

Empirical eigenvalue distribution vs. the theoretical Marchenko-Pastur law, highlighting the noise bulk in financial correlation matrices.

As shown in the spectral density analysis, the bulk of empirical eigenvalues often aligns with theoretical noise distributions, making it difficult to extract meaningful relationships without sophisticated filtering techniques.

Theoretical Framework: The Hierarchical Correlation Block Model (HCBM)

To address these issues, the authors provide a theoretical foundation for using hierarchical clustering as a noise filter. They introduce the Hierarchical Correlation Block Model (HCBM), where assets are organized into nested clusters with varying correlation strengths.

Visualization of the Hierarchical Correlation Block Model (HCBM) compared to empirical correlation data.

The paper proves that "space-conserving" hierarchical algorithms (such as Single, Complete, and Average Linkage) are statistically consistent under this model. This means that as the length of the time series $T$ increases, the probability of accurately recovering the true cluster structure approaches 1. This proof validates the earlier heuristic suggestions by researchers like Mantegna, who proposed clustering as a way to "clean" empirical covariance matrices.

A Geometric Framework: Copulas and Margins

Beyond simple filtering, the authors propose a novel geometric framework to handle non-Gaussian dependencies. By leveraging Sklar’s Theorem, they decompose a random variable into its marginal distribution (individual asset behavior, like volatility) and its copula (the structure of its dependence on other assets).

They introduce a hybrid distance metric, $d_\theta$, which allows practitioners to tune the similarity measure based on their specific needs:

  • Distribution Similarity: Measured using Hellinger distance.
  • Dependence Similarity: Measured using Spearman’s rho or Kendall’s tau.

This approach is more robust than standard Euclidean ($L_2$) distance. The authors demonstrate that $L_2$ distance is fundamentally unsuited for comparing distributions; for instance, as the variance of two distributions grows, their probability masses overlap more, yet $L_2$ distance may remain constant or even increase, failing to reflect their increasing similarity.

Key Results and Practical Implications

Validation using S&P 500 data, Credit Default Swap (CDS) markets, and synthetic simulations yielded several critical insights for practitioners:

  1. Data Requirements ($T$ vs. $N$): Consistency in financial clustering is driven primarily by the length of the historical data ($T$). For a typical universe of 400 assets, the authors found a "transition zone" of reliability. Specifically, at least $T \geq 250$ observations (roughly one year of daily trading data) are required to reach a 95-100% success rate in cluster recovery.
  2. Metric Selection: The authors recommend Kendall’s tau over Pearson or Spearman correlation. It is more generic, unbiased, and converges faster, making it ideal for the "noise" and outliers typical of financial regimes.
  3. Information Geometry vs. Optimal Transport: While Fisher-Rao distance (from Information Geometry) is powerful, it can be hyper-sensitive to very high correlations. In contrast, Wasserstein distance ($W_2$ from Optimal Transport) often yields more balanced and intuitive clusters in multivariate settings.

Limitations and Future Directions

While the HCBM provides a robust framework, it assumes the underlying model is stationary. In real markets, correlations often shift abruptly during crises. Future work will focus on extending these geometric tools to non-stationary environments and exploring Kernel Embeddings to better handle assets described by multiple curves, such as yield curves or term structures.

Summary updated

BibTeX
@inproceedings{marti2016clustering,
  author = {Gautier Marti and Frank Nielsen and Philippe Donnat and Sébastien Andler},
  title = {{On Clustering Financial Time Series: A Need for Distances Between Dependent Random Variables}},
  booktitle = {Signals},
  year = {2016},
  doi = {10.1007/978-3-319-47058-0\_8},
}

Loading related content...

Figure