correlation-analysis

Analyze return time series to expose high-correlation and cointegration signals for pairs trading planning.

Updated Apr 9, 2026
One-click install
npx skills add https://github.com/JacobHsu/vibe-trading-agent --skill correlation-analysis-jacobhsu
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: correlation-analysis
Source: https://github.com/JacobHsu/vibe-trading-agent/tree/main/agent/src/skills/correlation-analysis
Command: npx skills add https://github.com/JacobHsu/vibe-trading-agent --skill correlation-analysis-jacobhsu

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill replaces manual correlation and cointegration investigation with a structured workflow that finds robust pair-trading or hedging candidates and describes how linkages evolve across markets and regimes.

Core Features & Use Cases

  • Multi-mode analytics: perform co-movement discovery, deep return-correlation dives, sector clustering, and realized correlation monitoring within one unified workflow.
  • Cointegration and mean-reversion validation: run Engle-Granger and Johansen tests, compute half-life, and derive Kalman hedge ratios so you can trust the long-run equilibrium before committing capital.
  • Signal generation and regime awareness: produce Z-score thresholds for entry/exit, track conditional correlations for bull/bear/high-volatility periods, and adjust for FX impacts on cross-market spreads.

Quick Start

Ask for the strongest correlated and cointegrated pairs from your universe and summarize spread quality plus signal thresholds.

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?

To find cointegrated pairs for pairs trading, analyze return time series to expose high-correlation and cointegration signals, running Engle-Granger and Johansen rank tests to validate long-run equilibrium before committing capital.

What is a Kalman filter hedge ratio and how is it calculated?

A Kalman hedge ratio is a dynamic measure of the relative weighting between two assets in a spread, calculated by applying a Kalman filter to return time series to derive adaptive hedging parameters for robust pair-trading execution.

Can I use correlation analysis for sector clustering across a multi-asset universe?

Yes, you can use correlation analysis for sector clustering across a multi-asset universe, applying co-movement discovery and realized correlation monitoring to group assets and track cross-market linkage dynamics.

What is the best way to generate Z-score entry and exit thresholds for a mean-reversion strategy?

The best way to generate Z-score thresholds for a mean-reversion strategy is to compute the half-life of mean reversion and derive signal thresholds from the spread's historical distribution, ensuring quantitative validation before execution.

How do conditional correlations adjust for bull, bear, and high-volatility regimes?

Conditional correlations adjust for bull, bear, and high-volatility regimes by tracking realized correlation studies across different market environments, allowing you to monitor how asset linkages evolve and adapt to shifting volatility.

When should I adjust for FX impacts on cross-market correlation spreads?

You should adjust for FX impacts on cross-market correlation spreads when analyzing international asset universes, ensuring that realized correlation studies reflect true underlying co-movements rather than currency-driven distortions.