correlation-analysis

Identify and quantify co-movement and long-run relationships between assets.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Correlation-analysis helps traders identify robust co-movement patterns and long-run relationships between assets to inform market-neutral strategies and risk management.

Core Features & Use Cases

  • Co-movement discovery across a target and universe to surface candidate pairs for further testing
  • Deep return-correlation analysis featuring Pearson, Spearman, and Kendall coefficients plus regression-based beta
  • Cointegration testing (Engle-Granger and Johansen) to validate long-run equilibria and hedge ratios
  • Sector clustering and cross-market linkage analysis to support diversification and hedging decisions
  • Realized correlation workflows with rolling diagnostics, half-life estimates, and Kalman dynamic hedge ratio for adaptive spreads

Quick Start

Run correlation-analysis on your asset price series to generate a running set of correlation metrics and cointegration signals.

Frequently Asked Questions about correlation-analysis

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

FAQPage Schema
How do I test for cointegration between two assets to validate pairs trading signals?

You can validate long-run equilibria and hedge ratios using Engle-Granger and Johansen cointegration tests, which confirm whether two assets share a stable statistical relationship for pairs trading.

What is the difference between correlation and cointegration in time-series analysis?

Correlation measures co-movement using Pearson, Spearman, or Kendall coefficients, while cointegration identifies long-run equilibria and hedge ratios to validate market-neutral trading relationships.

How do I calculate rolling correlation and dynamic hedge ratios for risk management?

Rolling correlation diagnostics compute realized correlation over time, while Kalman filters estimate dynamic hedge ratios and half-life estimates to adapt spreads for risk management.

Can I use scipy and statsmodels for sector clustering and cross-market linkage analysis?

Yes, sector clustering and cross-market linkage analysis rely on scipy and statsmodels statistical libraries to process multi-asset universes, supporting diversification and hedging decisions across equities and sectors.

What's the best way to discover candidate pairs for market-neutral strategies across equities?

Co-movement discovery scans a target asset against a multi-asset universe to surface candidate pairs, followed by deep return-correlation analysis and regression-based beta to inform market-neutral strategies.

When should I not rely on correlation analysis for pairs trading?

Correlation analysis alone is insufficient when assets lack cointegration; without long-run equilibria validated by Engle-Granger or Johansen tests, high return-correlation may produce unstable hedge ratios and trading signals.