Clustering and hierarchy of financial markets data: advantages of the DBHT

Nicolò Musmeci, Tomaso Aste, Tiziana di MatteoarXiv 2014

Introduction

Identifying the underlying structure of financial markets is a cornerstone of risk management and portfolio diversification. Ideally, stock clusters should reflect the "real economy"—grouping companies by industrial sectors like technology or utilities. However, traditional clustering methods often struggle with the "Market Mode," a phenomenon where global events cause all stocks to move in unison, obscuring sector-specific relationships. This paper introduces the Directed Bubble Hierarchical Tree (DBHT), a graph-theory-based approach that leverages the complex topology of planar graphs to filter out market noise and reveal the true economic structure.

Methodology

The researchers evaluated five clustering approaches using daily log-returns for 342 US stocks on the NYSE from 1997 to 2012. This period encompasses significant market shifts, including the Dot-com bubble and the 2008 financial crisis. The methods compared include:

  • Single Linkage (SL): A standard "closest neighbor" approach.
  • Average Linkage (AL) & Complete Linkage (CL): Variants using average or maximum distances.
  • k-medoids: A partitioning method using actual data points as centers.
  • Directed Bubble Hierarchical Tree (DBHT): This method exploits the topology of a Planar Maximally Filtered Graph (PMFG), identifying clusters based on "three-cliques" (triangles of related stocks) and planarity constraints.

The Industrial Classification Benchmark (ICB), with its 19 supersectors, served as the ground truth for evaluating algorithm performance.

Network visualizations of stock clusters identifying industrial sectors.

Key Insights: The Challenge of the Market Mode

A significant finding is the increasing influence of the "global market trend" over the last 15 years. As shown in the figure below, the average correlation between stocks has generally trended upward, peaking sharply during the 2008 financial crisis. This "Market Mode" acts as a blinding glare for traditional algorithms. Single Linkage, for instance, often collapses into a "giant cluster" containing 90% of stocks, providing little insight into industrial structure.

Evolution of average correlation over time (2000-2012), showing peaks during market crises.

Results and Discussion

The DBHT method demonstrated several key advantages:

  1. Superior Sector Retrieval: DBHT achieved the highest similarity to ICB sectors (measured by the Adjusted Rand Index) while identifying a "natural" number of clusters (13-20). Other methods required much higher cluster counts to achieve comparable accuracy.
  2. Robustness to Volatility: Unlike Single Linkage, which is highly sensitive to market shocks, DBHT maintained a clear view of industrial sectors even during periods of high volatility.
  3. Balanced Clusters: DBHT produced the most homogeneous clusters, avoiding the extreme disparity seen in traditional methods. This balance is critical for effective risk hedging.

While the study focused on linear correlations, future research could explore non-linear dependencies like Mutual Information. The ultimate goal is to apply DBHT to portfolio optimization, potentially leading to more stable and diversified investment strategies better protected against systemic risk.

Summary updated

BibTeX
@misc{musmeci2014clustering,
  author = {Nicolò Musmeci and Tomaso Aste and Tiziana di Matteo},
  title = {{Clustering and hierarchy of financial markets data: advantages of the DBHT}},
  year = {2014},
  eprint = {1406.0496},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1406.0496},
}
Figure