Lead-Lag Relationships in Financial Markets: A Comparison of Multiple Clustering Algorithms
Ruichen Deng, Yichi Zhang
Abstract
Lead-lag relationships are widely used in financial time series, and many clustering algorithms based on them have been developed. The traditional DTW-KMedoids algorithm performs well both on the synthetic dataset and the real financial dataset. However, there are still several limitations to these algorithms: low efficiency caused by high time complexity, poor mathematical properties from DTW distance, the clustering effect is sensitive to the number of clusters. To solve the problems above and improve the performance, this paper introduces three clustering algorithms: MiniRocket-KMeans, KShape, Ensemble algorithm (a combination of KShape and DTW-KMedoids) and compares their performance on synthetic and real stock datasets with DTW-KMedoids algorithm under the same trade strategy. In addition, this paper also finds the best number of clusters by maximizing the silhouette coefficient in each clustering algorithm to improve the stability of the experiment results. Our main conclusions are as follows: MiniRocket-KMeans performs best under the lead strategy, achieving a Sharpe ratio of 0.866 with a maximum drawdown controlled at -63.9\%; the ensemble algorithm exhibits excellent stability; the robustness is significantly improved after finding the best number of clusters; the p-values of the hypothesis test on the Sharpe ratio of all strategies are 0.0, verifying the statistical validity of the lead-lag trading strategy. Finally, future improvement directions such as customized lead-lag matrices and optimized ensemble voting mechanisms are proposed.
Create a lesson
Related papers
Modeling Trade Durations under Temporal Granularity Effects in Forex Markets
Vladimír Holý
Portfolio Risk Bounds without Cross-Asset Return Covariances: Distributional Fields from Language-Model Representations
Marcus Gawronsky, Chun-Sung Huang
Wasserstein-Barycentric Interaction Fields for Spatial Factor Models: Evidence from Language-Model Representations
Marcus Gawronsky, Chun-Sung Huang
Deep Hedging Under Realistic Market Frictions: A Regime-Conditional Empirical Study of Dynamic Option Hedging on Bitcoin Options
Sheryan Kumar
What survives honest evaluation? Leakage-safe, search-aware assessment of LLM-driven trading strategy discovery
Eray Gençay
Equity Strategy Backtesting: Luck or Edge? The MinervaScore as a Statistical Robustness Grade
Maria Laura Santoni, Vincent Jouanne, Matthew L. Scullin