Repository navigation
fix(notebook,#18124): research_macro_factor_rotation -- real FRED factors + measured per-asset trees replace placeholder - #18165
Conversation
…tors + measured per-asset trees replace placeholder SOTA repair (non-executed-cells family of the #18124 audit). Was: QuantBook-only, analysis cells un-executed, fake "BACKTEST RESULTS" placeholder. - Local research path: SPY/GLD/BND via yfinance + the REAL FRED macro series (T10Y3M, DFF via public fredgraph.csv) + real ^VIX -- the exact inputs the strategy names. - Factor <-> 21d forward return correlations measured (VIX +0.247, yield curve -0.057, fed funds +0.021). - The promised per-asset DecisionTreeRegressor (depth=12, temporal 70/30) trained and measured: OOS R2 = -0.669 (SPY), -0.620 (GLD), -3.875 (BND) -- all three WORSE than the mean-prediction baseline. Honest verdict written in: the 3 macro factors alone do not predict 21-day returns at daily granularity; the strategy's edge, if any, lives in the full engine. - Rotation mechanics (1.5x leverage, BTC cap, monthly retraining) explicitly routed to QC Cloud. Executed 8/8 cells, 0 errors, all execution_count set (C.1/C.2). Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Notebook outputs-required (H.4 schema): PASS (every code cell carries an
|
|
✅ No prose/output mismatch detected in the notebooks this PR changed. Scope = notebooks CHANGED in this PR, not the whole corpus. Explicit |
Golden-Set Execution (H.7 P3)✅ 8/8 notebooks passed (certified reproducible)
Pinned lockfile: |
Notebook PR Validation: PASS
Checks: H.1 (no errors), H.3 (execution_count), C.1 (no banned patterns) |
…, 3.11 -> 3.13 to match series env)
… python3 (3.11) kernel to match base stamp
|
[ADJOINT PREFLIGHT] |
Grain: MED/notebook-python -- lane myia-po-2026:CoursIA -- prev: #18164
Summary
SOTA repair of
Research-Executor/research_macro_factor_rotation.ipynb(non-executed-cells family of the #18124 audit). Was: QuantBook-only,
analysis cells un-executed, fake "BACKTEST RESULTS" placeholder.
(no API key) + real ^VIX via yfinance -- the exact series the strategy
names (latest measured: yield_curve 0.93, fed_funds 3.88, VIX 14.87).
yield curve -0.057, fed funds +0.021.
(depth=12 as per strategy spec, temporal 70/30 split): OOS R2 = -0.669
(SPY), -0.620 (GLD), -3.875 (BND) -- all three WORSE than the
mean-prediction baseline. The honest verdict is written into the notebook:
3 macro factors alone do not predict 21-day returns at daily granularity.
monthly retraining) explicitly routed to the QC Cloud engine.
Validation
execution_countset (C.2)raise NotImplementedError/assert False/1/0(verified)correlations, trained trees with honest negative-R2 reporting
See #18124 (7 of the 10 audited notebooks now repaired by this lane;
remaining: re-audit the last 3 against current state next cycle).
🤖 Generated with Claude Code