Skills

Correlation Regime

Correlation-regime detection and crisis attribution, edge-density regime states with...

Install

npx skills add HKUDS/Vibe-Trading --skill correlation-regime -g -a claude-code -y
Repository
HKUDS/Vibe-Trading37.4k
Category
Engineering
Updated
3d ago
License
MIT
Context cost
Mediumabout 3,000 tokens
Runs scripts
No, instructions only

What it does

Correlation-regime detection and crisis attribution, edge-density regime states with hysteresis, causal (no look-ahead) smoothing, regime-aware exposure context, first-mover crisis attribution with honest NAME / MACRO / AMBIGUOUS / ABSTAIN verdicts, and a correlation-rewiring leaderboard that catches slow bleed-outs

Correlation-Regime Detection and Crisis Attribution

Overview

The correlation-analysis skill answers "how correlated are these assets?", a snapshot. This skill answers the temporal questions a snapshot cannot:

  1. When did the market fuse into one highly-correlated bloc, and when did it release? (Mode 1, regime detection)
  2. What does a fused regime mean for position sizing? (Mode 2, risk context)
  3. Who moved first when a crisis broke, is there a nameable trigger asset? (Mode 3, first-mover attribution)
  4. Who quietly rewired their relationship to the rest of the market, even without a violent move? (Mode 4, rewiring leaderboard)

The methodology comes from an open-source streaming pipeline (see References) whose public repository pins the regime machinery's math and an eight-event historical replay regression (COVID, May-2021, China ban, Nov-2021 top, LUNA, FTX, SVB, yen-carry, 17 crypto symbols, 1-minute bars) that its CI reproduces bit-for-bit. The finer-grained numbers quoted in this skill, 13 fused/defused regime cycles on the continuous 2020, 2024 tape at a ~0.008/day calm false-alarm rate, and zero wrong culprit names across 10 labeled crises (2 held out-of-sample), including naming FTT roughly two days before the November 2022 collapse, are the author's unpublished internal replays on that same pipeline and are not independently verifiable. All of it is historical replay, never live results, and the method is market-agnostic even though the validation tape is crypto.

What this skill is NOT: a trade-timing signal. The same validation program tested regime-based exits head-to-head against a plain price stop and lost, correlation regimes cannot time tops, and the give-up cost of selling into a crash is a property of the tape, not of any signal. Use these modes for risk context, monitoring, and post-hoc attribution; never present them as buy/sell triggers.


Read the whole SKILL.md on GitHub

More in Engineering