Differential correlation refers to measuring how correlation patterns change across different groups or ranked samples. This is useful in fields like genomics, finance, and signal processing, where relationships between variables may vary across different conditions.

Key Concepts

  1. Ranked Samples:

  2. Compute Correlations in Each Group:

  3. Differential Correlation ( $\Delta$ Corr):

    $$ \Delta \text { Corr }=\text { Corr }{\text {high }}-\text { Corr }{\text {low }} $$

Python Implementation

We'll:

https://gist.github.com/viadean/19418f69686c3febbfa96d4f277b6ed5

How It Works

  1. Generates synthetic ranked samples.
  2. Splits data into high-rank and low-rank groups.
  3. Computes Pearson correlation for each group.
  4. Calculates differential correlation ( $\Delta$Corr).
  5. Visualizes scatter plots with different correlations.

Why Use Differential Correlation?