Exploring and measuring non-linear correlations: Copulas, Lightspeed Transportation and Clustering

Gautier Marti, Sébastien Andler, Frank Nielsen, Philippe Donnat

In the world of data science, we often rely on Pearson’s correlation coefficient to tell us how variables relate. But as any seasoned practitioner knows, Pearson is a blunt instrument: it only sees linear relationships, it is highly sensitive to outliers, and it fails to capture the complex "shape" of how two variables actually move together.

A team of researchers from Hellebore Capital and Ecole Polytechnique has proposed a more sophisticated way to navigate this landscape. Their paper, Exploring and measuring non-linear correlations: Copulas, Lightspeed Transportation and Clustering, introduces a framework that doesn't just measure if variables are related, but how they are related.

The Problem with Standard Correlation

Standard correlation measures have significant gaps. Pearson only detects linear trends. "Equitable" measures like Mutual Information or the Maximal Information Coefficient (MIC) are better because they detect any deviation from independence, but they suffer from a different flaw: they treat all dependencies as equally interesting.

In the real world, some dependencies are spurious artifacts of how data was collected, while others are highly specific and valuable (e.g., "these two stocks only crash together, but move independently when prices are rising"). The authors argue we need a way to parameterize our search for correlation—targeting the patterns that matter for our specific problem and "forgetting" the ones that represent known noise.

A New Methodology: Copulas and Optimal Transport

The researchers' methodology relies on three mathematical pillars to isolate and measure these relationships:

  1. Copulas: A copula is a mathematical function that describes the dependence between variables independently of their individual marginal distributions. Think of it as the "glue" that holds variables together, stripped of the noise of their individual scales.
Fundamental Copulas
  1. Optimal Transport (OT): To compare two different dependence patterns (copulas), you need a distance metric. The authors use Optimal Transport (specifically the Earth Mover’s Distance), which treats distributions like piles of dirt and measures the minimum work needed to reshape one into the other.
  2. Lightspeed Transportation (Sinkhorn Distances): Standard OT is computationally expensive ($O(n^3 \log n)$). The authors leverage the Sinkhorn algorithm, which uses entropic regularization to compute these distances orders of magnitude faster, making the approach practical for large datasets.

The centerpiece of their framework is the Target/Forget Dependence Coefficient (TFDC). By defining a set of "target" copulas (patterns we want to find) and "forget" copulas (patterns we want to ignore), the TFDC provides a score between 0 and 1 based on which set the data's empirical copula is closer to.

Key Insights and Results

The authors validated their approach using a mix of real-world datasets (UCI Machine Learning Repository, financial time series) and synthetic scenarios.

The Geometry of Dependence

Using Wasserstein (OT) barycenters to find the "average" dependence in a cluster is far superior to standard Euclidean averages. Optimal Transport preserves the functional "shape" of the relationship, whereas standard averages just blur the data into an uninformative cloud.

Asset Class "Personalities"

When applied to a decade of financial data covering French stocks, Credit Default Swaps (CDS), and Foreign Exchange rates, the research revealed that different financial assets have distinct "dependence signatures." Stocks exhibit lower tail dependence (they tend to crash together), while Credit Default Swaps exhibit upper tail dependence (insurance costs soar together during crises). The framework successfully distinguished between pairs of assets that are positively correlated during small variations versus those that only synchronize during extreme market events.

Intentional Bias and Higher Statistical Power

Unlike "equitable" measures that try to be unbiased, the TFDC embraces intentional bias. If a researcher knows that a certain "V-shape" relationship is a known sensor error, they can add it to the "forget" set to prevent it from skewing their feature selection. In targeted scenarios, the TFDC showed significantly higher statistical power than general-purpose measures like MIC or distance correlation (dCor), especially as noise levels increased.

Limitations and Future Work

While powerful, the framework has limitations. The paper focuses primarily on bivariate (two-variable) copulas. Extending this to multivariate settings is currently "unrealistic" due to the high computational burden of high-dimensional optimal transport.

Furthermore, "handcrafting" target copulas is currently an art. The authors suggest the need for a "rich language" that allows users to describe a dependence pattern in plain English and have it automatically translated into a target copula. Finally, while the paper suggests this approach could vastly improve feature selection in machine learning, a full empirical study comparing TFDC-based selection to standard methods remains an exciting avenue for future work.

Summary updated

BibTeX
@inproceedings{marti2016exploring,
  author = {Gautier Marti and Sébastien Andler and Frank Nielsen and Philippe Donnat},
  title = {{Exploring and measuring non-linear correlations: Copulas, Lightspeed Transportation and Clustering}},
  booktitle = {Workshops @ NeurIPS},
  year = {2016},
}
Figure