{"enrichment":{"faq":[{"a":"Cointegration-analysis implements Engle-Granger two-step regression for pairs and Johansen multivariate testing for multiple series. Both methods detect when non-stationary price series move together toward a stable long-run equilibrium, forming the foundation for statistical arbitrage. The skill also includes ADF testing of residuals to confirm stationarity and Phillips-Ouliaris cointegration as an alternative framework for validating relationships.","q":"What cointegration testing methods does cointegration-analysis support?"},{"a":"Cointegration-analysis screens correlated assets by applying Engle-Granger and Johansen tests to identify pairs with stable long-run equilibrium relationships. The skill estimates hedge ratios from cointegrated relationships and validates that spreads exhibit mean reversion. Once a cointegrated pair is identified, you can monitor the spread using z-score signals to trigger entry and exit points for mean-reversion trades.","q":"How do I find cointegrated trading pairs using this skill?"},{"a":"Cointegration-analysis distinguishes cointegration from correlation: correlation measures instantaneous price movement similarity, while cointegration identifies non-stationary series that share a stable equilibrium relationship. Two assets can be highly correlated but not cointegrated, or cointegrated without high correlation. Cointegration is more reliable for pairs trading because it captures mean-reversion dynamics rather than temporary price moves.","q":"What is the difference between cointegration vs correlation?"},{"a":"Cointegration-analysis monitors rolling cointegration stability by recalculating Engle-Granger or Johansen test statistics over sliding time windows. This detects hedge ratio drift and structural breaks when the long-run equilibrium relationship weakens or fails. Walk-forward backtesting with rolling windows reveals when pairs strategies lose statistical validity, helping you avoid trading spurious cointegration or relationships damaged by market regime shifts.","q":"How does rolling cointegration window analysis detect relationship breakdowns?"},{"a":"Cointegration-analysis mitigates spurious cointegration by validating residual stationarity through ADF testing and monitoring rolling window stability. The skill flags structural breaks where the cointegrated relationship deteriorates, preventing false signals from regime changes. Walk-forward validation ensures hedge ratios and spread mean-reversion half-life estimates remain current, reducing the risk of deploying pairs strategies on broken relationships.","q":"How do I avoid spurious cointegration and structural break pitfalls?"},{"a":"Cointegration-analysis applies Engle-Granger and Johansen testing to any asset pair, including crypto pairs like SOL-ETH or stablecoin peg arbitrage relationships. The skill estimates hedge ratios and monitors spread mean reversion for liquid staking derivatives and other correlated crypto assets. Rolling window analysis detects when crypto pairs lose cointegration due to market volatility or protocol changes, helping you time entry and exit of statistical arbitrage positions.","q":"Can cointegration-analysis identify crypto pairs like SOL-ETH for arbitrage?"}],"shadow_tags":["statistical-arbitrage","mean-reversion-trading","pairs-strategy","spread-analysis","regime-stability","hedge-ratios","time-series-testing","market-microstructure","risk-hedging"],"summary_rewrite":"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."},"files":[{"bytes":8573,"path":"skills/cointegration-analysis/SKILL.md","sha256":"b327746b59936473b1e63d639d5b40704e96a96288ab22e3f7e1b8b63823433a","url":"https://skillfed.io/files/agiprolabs/claude-trading-skills/cointegration-analysis/6904c652/SKILL.md"}],"id":"agiprolabs/claude-trading-skills/cointegration-analysis","links":{"html":"https://skillfed.io/agiprolabs/claude-trading-skills/cointegration-analysis","md":"https://skillfed.io/agiprolabs/claude-trading-skills/cointegration-analysis.md","repo":"https://github.com/agiprolabs/claude-trading-skills"},"meta":{"agents_supported":[],"first_seen":"2026-07-28","forks":52,"language":"Python","last_updated":"2026-06-24","license":"MIT","name":"cointegration-analysis","publisher":"agiprolabs","stars":248},"relations":{"similar":[{"id":"HKUDS/Vibe-Trading/correlation-analysis"},{"id":"tradermonty/claude-trading-skills/pair-trade-screener"},{"id":"BaggaT236/AI-Trading-Skills/pair-trade-screener"},{"id":"nicepkg/ai-workflow/pair-trade-screener"},{"id":"agiprolabs/claude-trading-skills/mean-reversion"},{"id":"HKUDS/Vibe-Trading/quant-statistics"},{"id":"longbridge/skills/longbridge-quant"},{"id":"agiprolabs/claude-trading-skills/correlation-analysis"},{"id":"himself65/finance-skills/stock-correlation"},{"id":"wangyendt/wayne-skills/statistics"}]},"slug":{"owner":"agiprolabs","repo":"claude-trading-skills","skill":"cointegration-analysis"},"version":"6904c652"}
