Individual skill
cointegration-analysis
Cointegration testing for pairs trading using Engle-Granger, Johansen, and rolling stability analysis
skills/cointegration-analysis/SKILL.md
Source commit 981e1d736cdc02bdc1c55c74ec9224e956414706
What was checked
- Matches the observed repository HEAD
- Yes
- Scanner rules are current
- Yes
- Repository scan complete
- No
- Skill scan complete
- No
- Observed behavior
- Local scripts
- Last checked
- Nov 10, 2026
These are observations at the recorded commit, not a guarantee of safety. Review the source before running it.
Install this skill
Choose an agent in your Stack or copy a command below. Commands fetch the pinned commit and copy only this skill directory. Existing destinations are refused. Copying a command does not install anything.
An install command is unavailable: current rules, complete repository and skill scans, an eligible behavior level and a permitted license are required.
Repository context
- Repository stars (not skill ratings)
- 521
- Repository last updated
- Sep 3, 2026
- License
- MIT
Observed agent integration: No specific integration evidence. Standard SKILL.md installation does not imply verified compatibility.
- testing Derived category
Files and excerpt
File metadata and permitted, redacted excerpts come from the recorded scan. Source links are pinned to that commit.
Browse files
SKILL.mdcore · 8,573 bytesSKILL.mdcore · 8,573 bytesSKILL.mdcore · 8,573 bytesSKILL.mdcore · 8,573 bytesSKILL.mdcore · 8,573 bytesSKILL.mdcore · 8,573 bytesreferences/methodology.mddoc · 6,779 bytesreferences/pairs_trading.mddoc · 7,943 bytesscripts/pairs_backtest.pyruns · 20,818 bytesscripts/test_cointegration.pyruns · 23,162 bytes
Read excerpt
# Cointegration Analysis
Cointegration testing identifies pairs of assets that share a long-run equilibrium
relationship, enabling statistical arbitrage and pairs trading strategies.
## What Is Cointegration?
Two price series are **cointegrated** when they are individually non-stationary
(random walks) but a linear combination of them is stationary (mean-reverting).
Intuitively, the prices may wander apart temporarily but are pulled back to an
equilibrium spread over time.
### Cointegration vs Correlation