Definition

The correlated features test checks if there are features that are strongly correlated with one another.

Taxonomy

  • Category: Integrity.
  • Task types: Tabular classification, tabular regression.
  • Availability: and .

Why it matters

  • Removing highly correlated features improves model interpretability and can improve generalization performance.
  • For some models, multicollinearity can be an issue, and the coefficients learned are unreliable.
  • Sometimes, correlated features can indicate data quality issues — such as duplicate or near-duplicate columns.

Test configuration examples

If you are writing a tests.json, here are a few valid configurations for the character length test:

[
  {
    "name": "No highly correlated features",
    "description": "Asserts that there are no highly correlated feature pairs",
    "type": "integrity",
    "subtype": "correlatedFeatureCount",
    "thresholds": [
      {
        "insightName": "correlatedFeatures",
        "insightParameters": null,
        "measurement": "correlatedFeatureCount",
        "operator": "<=",
        "value": 0
      }
    ],
    "subpopulationFilters": null,
    "mode": "development",
    "usesValidationDataset": true, // Apply test to the validation set
    "usesTrainingDataset": false,
    "usesMlModel": false,
    "syncId": "b4dee7dc-4f15-48ca-a282-63e2c04e0689" // Some unique id
  }
]