correlation-analysis

Compute cross-asset correlation matrices and diversification metrics from crypto return series with Python.

1|Updated May 15, 2026
One-click install
npx skills add https://github.com/dnkrow/skill --skill correlation-analysis-dnkrow
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: correlation-analysis
Source: https://github.com/dnkrow/skill/tree/main/claude-global/correlation-analysis
Command: npx skills add https://github.com/dnkrow/skill --skill correlation-analysis-dnkrow

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires httpx, pandas, numpy, scipy, and includes scripts (resource) and references (resource) components.

What problem does it solve?

It helps you quantify how crypto assets move together so you can assess diversification quality, detect correlation breakdowns, and build more reliable portfolio and pairs-trading decisions.

Core Features & Use Cases

  • Cross-asset correlation methods: computes Pearson, Spearman, and Kendall correlations from return series to characterize co-movement without relying on price levels.
  • Diversification and structure discovery: derives correlation matrices, clusters assets via hierarchical clustering, and estimates effective diversification (including market-factor dominance).
  • Stress-aware correlation: supports regime-dependent correlation analysis using rolling/z-score logic and tail dependence to understand crash co-movement.

Quick Start

Run correlation-analysis on your crypto set by executing the demo correlation matrix script to see diversification metrics and clustering results first, then switch to real assets using CoinGecko.

Frequently Asked Questions about correlation-analysis

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I analyze crypto asset correlations for portfolio risk assessment?

Crypto correlation analysis computes cross-asset correlation matrices from return series using Pearson, Spearman, and Kendall methods, quantifying diversification quality and market-factor dominance to support portfolio risk assessment.

How do I calculate rolling correlation to detect regime shifts in crypto pairs trading?

Calculate rolling correlation using z-score logic on two-asset return series to detect regime shifts and correlation breakdowns. This identifies structural changes in co-movement critical for reliable pairs trading decisions.

What is tail dependence and how does it measure crypto crash co-movement?

Tail dependence estimates how crypto assets move together during extreme market downturns. By analyzing crash co-movement from return series, it reveals stress-aware correlation structure that standard Pearson correlation often misses.

Can I use hierarchical clustering to group crypto assets by correlation structure?

Yes, hierarchical clustering groups crypto assets by deriving clusters from correlation matrices. This structure discovery process identifies effective diversification levels and reveals market-factor dominance across your portfolio.

Do I need Python and pandas to run cross-asset correlation analysis on crypto data?

Yes, running cross-asset correlation analysis requires Python execution with pandas, numpy, and scipy for matrix computations and clustering. It optionally uses httpx to fetch real crypto price data via CoinGecko.

Why use return series instead of price levels for crypto correlation matrices?

Using return series instead of price levels prevents spurious correlation from non-stationary price trends. Computing Pearson, Spearman, and Kendall correlations on returns accurately characterizes true co-movement for diversification metrics.