Skip to content

Introduce Chatterjeexi as standard correlation for feature selection #42

Description

@thomasATbayer

Why Chatterjee's Xi for Feature Selection

Chatterjee's Xi is superior for feature selection in heterogeneous feature sets because:

1. Non-linear Relationship Detection

  • Pearson only captures linear relationships (correlation = slope of best-fit line)
  • Chatterjee's Xi detects any monotonic or functional relationship, including:
    • Quadratic: y = x²
    • Exponential: y = e^x
    • Logarithmic: y = log(x)
    • Step functions and V-shapes

2. Scale Invariance

  • Works equally well across features with different scales and distributions
  • No assumption about normality or specific distributions
  • Handles mixed feature types (continuous, discrete, bounded)

3. Robustness to Outliers

  • Based on rank statistics rather than raw values
  • Less sensitive to extreme values than Pearson
  • Better for chemical/molecular features with occasional extreme values

4. Asymmetric Dependencies

  • Measures "can Y be explained by X?" (not just association)
  • Perfect for feature selection: "can this feature explain the target?"
  • Detects one-directional predictive relationships

5. Heterogeneous Feature Sets

In molecular/chemical datasets, you typically have:

  • Continuous: molecular weight, logP
  • Discrete: ring counts, atom counts
  • Binary: presence/absence of functional groups
  • Bounded: TPSA (0-200), Lipinski descriptors

Chatterjee's xi handles all these uniformly without requiring feature-specific preprocessing.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requesthelp wantedExtra attention is needed

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions