correlation-analysis

Identify and quantify co-movement and long-run equilibrium between asset pairs.

Updated Apr 19, 2026
One-click install
npx skills add https://github.com/ajithkumar31082004-bit/Vibe-Trading --skill correlation-analysis-ajithkumar31082004-bit
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: correlation-analysis
Source: https://github.com/ajithkumar31082004-bit/Vibe-Trading/tree/main/Vibe-Trading-main/agent/src/skills/correlation-analysis
Command: npx skills add https://github.com/ajithkumar31082004-bit/Vibe-Trading --skill correlation-analysis-ajithkumar31082004-bit

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Correlation and cointegration analysis provide a structured framework to identify co-movement opportunities and long-run equilibrium relationships across assets, supporting robust pairs trading and risk management.

Core Features & Use Cases

  • Co-movement discovery to build candidate pools of highly correlated assets for potential pairs trading.
  • Deep return-correlation analysis with multiple coefficients, rolling metrics, and spread-based signals.
  • Sector clustering to reveal sector structure and diversification opportunities.
  • Realized correlation and cross-market linkage analysis to study dynamic relationships across markets.
  • Engle-Granger and Johansen cointegration tests, half-life estimation, and Kalman dynamic hedge ratio for robust hedging.
  • End-to-end workflow from analytics to pair-trading signal generation and monitoring.

Quick Start

Run correlation and cointegration analysis on a target asset and a candidate universe to identify co-moving pairs and generate initial trading signals.

Frequently Asked Questions about correlation-analysis

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

FAQPage Schema
How do I find cointegrated pairs for pairs trading across a broad asset universe?

To find cointegrated pairs for pairs trading, you can run Engle-Granger and Johansen cointegration tests across a broad asset universe. This identifies candidate pairs with long-run equilibrium relationships, enabling end-to-end pair-trading signal generation.

What correlation methods are available for return correlation analysis?

Return correlation analysis supports Pearson, Spearman, and Kendall correlation coefficients. It also provides rolling metrics and spread-based signals to quantify co-movement and discover highly correlated candidate assets for pairs trading strategies.

How do I calculate a dynamic hedge ratio using a Kalman filter?

You can calculate a dynamic hedge ratio using the Kalman filter method to support robust hedging in pairs trading. This approach estimates half-life and adjusts the hedge ratio dynamically, complementing standard cointegration tests for Z-score signal generation.

Does this analysis support sector clustering and cross-market linkage discovery?

Yes, the analysis supports sector clustering to reveal sector structure and diversification opportunities. It also performs realized correlation and cross-market linkage analysis to study dynamic relationships across different markets.

What is the difference between correlation and cointegration in pairs trading?

Correlation measures short-term co-movement between asset returns, while cointegration identifies a long-run equilibrium relationship between price series. Pairs trading requires cointegration tests like Engle-Granger and Johansen to ensure the spread is mean-reverting.

When should I avoid using correlation for pairs trading signal generation?

You should avoid relying solely on correlation for pairs trading when assets lack a long-run equilibrium, as high correlation does not guarantee mean-reverting spreads. Use cointegration tests and half-life estimation to validate robust hedging opportunities instead.