Skip to content
aj-geddes avatar

Correlation Analysis

Measures variable relationships with Pearson, Spearman, Kendall, Cramér's V, and mutual information, plus VIF checks.

CCM score
40 of 100
skills.sh installs
452
GitHub stars
396
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers correlation matrices, significance testing, scatter plots with regression lines, and rolling correlations over time
  • Includes Pearson and Spearman matrices, a p-value table, partial correlation, and distance correlation for non-linear links
  • Flags multicollinearity with VIF thresholds, treating VIF above 10 as a high-multicollinearity problem
  • Designed for exploratory analysis and regression preprocessing, such as feature selection before modeling

Install

$ npx -y skills add aj-geddes/useful-ai-prompts --skill 'Correlation Analysis' -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Correlation Analysis

Overview

Correlation analysis measures the strength and direction of relationships between variables, helping identify which features are related and detect multicollinearity.

When to Use

  • Identifying relationships between numerical variables
  • Detecting multicollinearity before regression modeling
  • Exploratory data analysis to understand feature dependencies
  • Feature selection and dimensionality reduction
  • Validating assumptions about variable relationships
  • Comparing linear and non-linear associations

Correlation Types

  • Pearson: Linear correlation (continuous variables)
  • Spearman: Rank-based correlation (ordinal/non-linear)
  • Kendall: Rank correlation (robust alternative)
  • Cramér's V: Association for categorical variables
  • Mutual Information: Non-linear dependencies

Key Concepts

  • Correlation Coefficient: Ranges from -1 to +1
  • Positive Correlation: Variables move together
  • Negative Correlation: Variables move oppositely
  • Multicollinearity: High correlations between predictors

Implementation with Python

Details

Repository
github.com/aj-geddes/useful-ai-prompts
Category
Data Science & Analytics
First seen
Jun 3, 2026

Questions

What does the Correlation Analysis skill do?

Correlation Analysis measures how strongly and in which direction variables relate, using Pearson, Spearman and Kendall coefficients, correlation matrices and association tests. The skill also covers multicollinearity detection with variance inflation factors before regression modeling.

How do I install the Correlation Analysis skill?

Run npx -y skills add aj-geddes/useful-ai-prompts --skill 'Correlation Analysis' -y in a project to install it. Once installed, the agent can compute correlation matrices, heatmaps and significance tables for your data.

Who is the Correlation Analysis skill for?

It suits data scientists and analysts doing exploratory data analysis, feature selection or checks on assumptions about variable relationships. The skill is written around Python workflows using pandas, scipy and statsmodels.

Where does Correlation Analysis stand in its category?

Correlation Analysis sits in the Data Science & Analytics category, alongside azure-kusto, analyze-project, run-train, explore-run and add-analytics-instrumentation. It differs from those by focusing on relationships between variables, including partial correlation and rolling correlation over time.

More from aj-geddes/useful-ai-prompts

All 258

Similar to Correlation Analysis

More Data Science & Analytics