correlation-analysis

Analyze cross-asset correlations using Pearson, Spearman, and Kendall methods.

266|54|Updated Mar 11, 2026
One-click install
npx skills add https://github.com/agiprolabs/claude-trading-skills --skill correlation-analysis
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: correlation-analysis
Source: https://github.com/agiprolabs/claude-trading-skills/tree/main/skills/correlation-analysis
Command: npx skills add https://github.com/agiprolabs/claude-trading-skills --skill correlation-analysis

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill helps you understand how different financial assets move in relation to each other, which is crucial for managing risk and building diversified portfolios.

Core Features & Use Cases

  • Correlation Measurement: Calculate various types of correlation (Pearson, Spearman, Kendall) between assets.
  • Regime Analysis: Track how correlations change over time and identify shifts in market behavior.
  • Tail Dependence: Assess how assets move together during extreme market events (crashes).
  • Clustering: Group similar assets to identify diversification opportunities or concentrated risks.
  • Use Case: Analyze the correlation between Bitcoin and Ethereum over the past year to see if they are still moving in lockstep, and check if their relationship changes during market downturns.

Quick Start

Analyze the correlation between bitcoin and ethereum using daily price data.

Frequently Asked Questions about correlation-analysis

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

FAQPage Schema
How do I calculate rolling correlation between financial assets for risk management?

You can calculate rolling correlation between financial assets to track how relationships change over time for risk management. This Skill computes Pearson, Spearman, and Kendall correlations alongside EWMA to quantify inter-asset dynamics across various timeframes.

What is the best way to group similar assets for portfolio diversification?

Hierarchical clustering groups similar assets to identify portfolio diversification opportunities. By analyzing cross-asset correlation matrices, you can uncover hidden asset relationships and avoid concentrated risks within your financial portfolios.

Does tail dependence estimation work for identifying crash risks in a portfolio?

Tail dependence estimation assesses how assets move together during extreme market events like crashes. By quantifying these tail dependencies, you can identify hidden systemic risks in your portfolio that standard correlation metrics might miss during financial downturns.

Why use eigenvalue decomposition for financial time series correlation?

Eigenvalue decomposition provides robust financial market analysis by extracting principal drivers from asset correlation matrices. This statistical method reduces noise in time series data, yielding more reliable regime-dependent correlation assessments for portfolio construction.