Repository navigation
fix(notebook,#18124): research_commodity_term_structure -- real 21-futures universe replaces np.random roll simulation - #18168
Conversation
…tures universe replaces np.random roll simulation SOTA repair (last degraded research notebook of the #18124 audit apart from the runner). The central cell simulated "roll returns" with np.random.normal(0, 0.15, 21) dressed up as analysis; the ending printed the author's numbers as if they were results. - The universe is now REAL: 19/21 front-month commodity futures fetched via yfinance (2 unavailable, reported), 1-year realized returns measured per commodity (Heating Oil +92.4% ... Orange Juice -36.3%). - The long-short quintile mechanism is computed on those realized returns (long leg mean +66.6%, short leg -31.1%, spread +97.7%), with the substitution stated explicitly: roll returns need the distant expiry, which Yahoo does not expose -- the true term-structure screen runs on QC Cloud with multi-contract data. No fabricated roll numbers. - The author's published numbers (-15.71% 5Y CAGR, 80.8% MaxDD, then +38.85% quarter with 10.5 3M Sharpe) are quoted as a design reference and read critically: regime fragility, not an edge. Executed 7/7 cells, 0 errors, all execution_count set (C.1/C.2). Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
|
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 outputs-required (H.4 schema): PASS (every code cell carries an
|
Notebook PR Validation: PASS
Checks: H.1 (no errors), H.3 (execution_count), C.1 (no banned patterns) |
|
[ADJOINT PREFLIGHT] Dossier READY sur PR #18168 (lane Substance : fix(notebook,#18124): research_commodity_term_structure -- real 21-futures universe replaces np.random roll simulation. Vérif substance : +276/-114 sur 1 fichier Substance (item 11 crible de fond — PASS) :
État actuel : Vérif checks (latest-wins) : tous checks verts (PR gate success).
|
Grain: MED/notebook-python -- lane myia-po-2026:CoursIA -- prev: #18165
Summary
SOTA repair of
Research-Executor/research_commodity_term_structure.ipynb(re-audit of #18124 against current state found it still degraded: the
central cell was np.random.normal(0, 0.15, 21) dressed up as "Simulated
Roll Returns", the ending printed the author's numbers as results).
unavailable on Yahoo, reported), 1-year realized returns measured:
Heating Oil +92.4%, Gasoline +60.7%, Crude +46.7% ... Coffee -25.3%,
Orange Juice -36.3%.
(top quintile) mean +66.6%, short leg -31.1%, spread +97.7%.
returns need the distant-expiry contract, which Yahoo does not expose
reliably -- the true term-structure screen (near/distant ratio) runs on
QC Cloud with multi-contract data. The substitution (realized front-month
returns) is stated in the output, not disguised.
with 3M Sharpe 10.5) are quoted as a design reference and read
critically: that pattern is the signature of a fragile regime-dependent
strategy, not an edge.
Validation
execution_countset (C.2)raise NotImplementedError/assert False/1/0(verified)the roll-return screen itself is explicitly INTRINSIC to multi-contract
data and routed to QC Cloud -- no proxy faked as roll returns
See #18124 (8 of 10 repaired by this lane; remaining: runner.ipynb single
unexecuted harness cell).
🤖 Generated with Claude Code