$npx skillfedfor your agent

correlation-analysis

Correlation-Analysis discovers asset pairs with strong co-movement for pairs trading and hedging through multiple analytical modes: co-movement scanning, deep return correlation studies, sector clustering, and cointegration testing. It computes Pearson, Spearman, and Kendall correlations, rolling dynamics, and spread Z-scores to identify statistically significant relationships.

Correlation-Analysis finds correlated asset pairs suitable for pairs trading and portfolio hedging strategies.

AI-generated summary based on this skill's SKILL.md

28,096 4,557 MITupdated by HKUDS

Decision gist · record as of 2026-07-27

Correlation-Analysis finds correlated asset pairs suitable for pairs trading and portfolio hedging strategies. Correlation-Analysis discovers asset pairs with strong co-movement for pairs trading and hedging through multiple analytical modes: co-movement scanning, deep return correlation studies, sector clustering, and cointegration testing. It computes Pearson, Spearman, and Kendall correlations, rolling dynamics, and spread Z-scores to identify statistically significant relationships.

manual: git clone https://github.com/HKUDS/Vibe-Trading → cp -r Vibe-Trading/agent/src/skills/correlation-analysis ~/.claude/skills/correlation-analysis
agent/src/skills/correlation-analysis/SKILL.md · version b52d815a

Use it when

  • Correlation-Analysis tests both metrics: correlation measures contemporaneous co-movement between asset returns.
  • Yes.

Verify before relying

Read SKILL.md below before installing (1 file). Open directory: indexed for reading, not audited.

Same gist for agents: .md · .json

Install

HKUDS/Vibe-Trading/correlation-analysis · repository language: Python

Open directory. Skills are indexed for reading, not audited. Review a skill's body before installing it.

Frequently asked questions

AI-generated answers based on this skill's SKILL.md and metadata

How does correlation-analysis find correlated assets for pairs trading?

Correlation-Analysis discovers asset pairs with strong co-movement through co-movement scanning and deep return correlation studies. It computes Pearson, Spearman, and Kendall correlations to identify statistically significant relationships suitable for pairs trading strategies. The tool also calculates rolling correlation dynamics to track how relationships evolve over time.

What is the difference between correlation and cointegration in Correlation-Analysis?

Correlation-Analysis tests both metrics: correlation measures contemporaneous co-movement between asset returns, while cointegration testing (via Engle-Granger and Johansen methods) validates long-run equilibrium relationships. Cointegration is stronger for pairs trading because it identifies mean-reverting spreads, whereas correlation alone may not guarantee stationarity for profitable signal generation.

Can Correlation-Analysis generate trading signals from spread mean reversion?

Yes. Correlation-Analysis generates trading signals using Z-scores applied to spreads between cointegrated pairs. It computes mean reversion half-life and spread stationarity via ADF tests to confirm signal validity. These Z-score signals identify overbought/oversold conditions for mean reversion trades, with hedge ratio calculations built into the framework.

How does Correlation-Analysis handle rolling correlation and regime changes?

Correlation-Analysis tracks rolling correlation across time windows to reveal how asset relationships shift. It analyzes correlation breakdown during crises and regime transitions, showing realized correlation changes and cross-market linkage dynamics. This regime analysis helps traders understand when historical correlations fail and diversification benefits disappear.

What portfolio insights does Correlation-Analysis provide through clustering?

Correlation-Analysis discovers sector structure and portfolio diversification patterns via sector clustering and correlation matrix analysis. It reveals co-movement discovery screening across asset universes, helping identify which assets truly diversify portfolios and which move together. This clustering uncovers hidden sector relationships for better portfolio construction.

Is Correlation-Analysis open source and what license does it use?

Correlation-Analysis is released under the MIT license, making it open source and freely usable for commercial and private projects. The permissive MIT license allows modification and redistribution with minimal restrictions.

SKILL.md

Rendered from the published skill. Quoted content, verbatim.

Correlation and Cointegration Analysis

Overview

Correlation analysis is a foundational tool for pairs trading, portfolio construction, and risk management. This skill covers four analysis modes (co-movement discovery / return-correlation deep dive / sector clustering / realized correlation), a full cointegration-testing framework, cross-market linkage analysis, and the complete workflow from analytics to pair-trading signals.


Mode 1: Co-Movement Discovery

Use case: Given a target asset, scan a universe for highly correlated assets and build a candidate pool with similar industry or factor exposure, for use in pairs trading or substitute identification.

Workflow

``` 1. Pull daily return series for the target asset and N candidates 2. Compute Pearson / Spearman correlations between the target and each

(truncated - see the full file via the links below)

File tree — 1 file
agent/src/skills/correlation-analysis/SKILL.md

Let your AI agent find skills like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 56,283 agent skills by what they can do, searchable in plain language.

wish › “Find correlated asset pairs for pairs trading or hedging strategies”

Give your agent the search over MCP, or paste the wish link into any chat. No install? Search from any chat →

Related skills

cointegration-analysis
by agiprolabs · agiprolabs/claude-trading-skills

Cointegration Analysis identifies when two non-stationary price series move together toward a stable equilibrium, enabling statistical arbitrage and mean-reversion trading. The skill implements Engle-Granger two-step regression, Johansen multivariate testing, and rolling window monitoring to detect relationship breakdowns. Use it to screen correlated assets, estimate hedge ratios, and validate spread mean reversion before deploying pairs strategies.

MITupdated Jun 2026
★ 248repo stars
correlation-analysis
by agiprolabs · agiprolabs/claude-trading-skills

Correlation Analysis helps traders and portfolio managers understand how crypto assets move in tandem across different market conditions. It covers Pearson, Spearman, and Kendall correlation methods, rolling correlation windows for regime detection, hierarchical clustering to group similar assets, and tail dependence analysis to reveal crash co-movement that standard metrics miss. Use it to build diversified portfolios, generate pairs trading signals, and protect against concentration risk.

MITupdated Jun 2026
★ 248repo stars
stock-correlation
by himself65 · himself65/finance-skills

Stock Correlation discovers which stocks move in tandem with a target ticker, helping you identify sympathy plays and potential trading pairs. It analyzes historical price relationships across industry peers and related sectors, then ranks matches by correlation strength with explanations of why they're linked.

MITupdated Jul 2026
★ 3,075repo stars
mean-reversion
by agiprolabs · agiprolabs/claude-trading-skills

Mean-reversion identifies when prices, spreads, or other financial metrics deviate from their long-run average and predictably return. This skill provides statistical tests (ADF, Hurst exponent, variance ratio) to confirm mean reversion, half-life estimation to time entries and exits, z-score frameworks for signal generation, and Ornstein-Uhlenbeck process modeling for continuous-time analysis.

MITupdated Jun 2026
★ 248repo stars
quant-statistics
by HKUDS · HKUDS/Vibe-Trading

Quant-statistics provides time-series testing and volatility modeling tools for quantitative investing. It covers stationarity detection via ADF tests, cointegration analysis for pair trading, GARCH volatility forecasting, and regression diagnostics including heteroskedasticity and autocorrelation checks.

MITupdated Jul 2026
★ 28,096repo stars
pair-trade-screener
by tradermonty · tradermonty/claude-trading-skills

Pair Trade Screener detects statistical arbitrage opportunities by identifying cointegrated stock pairs within sectors and analyzing their spread behavior. The skill uses correlation analysis, cointegration testing, and z-score calculations to generate market-neutral trading signals based on mean-reversion patterns. Designed for investors seeking uncorrelated trading strategies that profit regardless of overall market direction.

MITupdated Jul 2026
★ 2,514repo stars

More skills feature-engineering (MIT) · portfolio-analytics (MIT) · correlation-regime (MIT) · longbridge-quant (MIT) · volatility (MIT) · cross-market-strategy (MIT) · Time Series Analysis (MIT) · macro-analysis (MIT)

Tags
statistical-arbitragemean-reversion-tradingportfolio-constructionrisk-managementtime-series-analysismarket-regimesspread-tradingasset-screeningcrisis-dynamics