Phase 8: add 2022-2026/11/20 rolling forecast simulation exam (F09)
This commit is contained in:
@@ -28,9 +28,11 @@
|
||||
- `src/phase5_core_models_and_falsification.py`(Phase 5 圖論 MST/TE、老子四時與常道、LHS-MC 檢定、Purged 消融與三層反證引擎)
|
||||
- `src/phase6_visual_report_generator.py`(Phase 6 六大圖表生成引擎與分章報告/出處完整性稽核器)
|
||||
- `src/phase7_live_202611_update_and_reanalysis.py`(Phase 7 TWSE/TAIFEX 官方源頭即時補齊至 `2026/11/20` 與重算管線)
|
||||
- `src/test_bdd_scenarios.py`(AST 9 欄位 Docstring Linter 與 F01–F08 BDD 測試套件)
|
||||
- `src/phase8_rolling_forecast_simulation_exam.py`(Phase 8 2022–2026/11/20 滾動迴歸與多期預測模擬試題引擎與圖表生成)
|
||||
- `src/test_bdd_scenarios.py`(AST 9 欄位 Docstring Linter 與 F01–F09 BDD 測試套件)
|
||||
- `docs/00_master_research_plan.md`、`docs/01`~`docs/05_illustrated_research_compendium_and_references.md`、`docs/chapters/CH01`~`CH05`、`docs/chapters/APPENDIX_sources_theories_formulas_and_methods.md`、`docs/figures/fig01`~`fig06.png`
|
||||
- `README_exe_commend/README.md`、`README_exe_commend/features/F01~F08.feature`
|
||||
- `report/forcecast/00_rolling_forecast_simulation_exam_report.md`、`report/forcecast/*.csv`、`report/forcecast/*.json`、`report/forcecast/figures/exam_fig01`~`exam_fig03.png`
|
||||
- `README_exe_commend/README.md`、`README_exe_commend/features/F01~F09.feature`
|
||||
- `README_exe_commend/report/DBB/DBB_Pre_Moreem_20261120.md`、`README_exe_commend/report/work_record/work_record_20261120.md`
|
||||
- `data/cleaned/*`、`data/market_data/*`、`data/corpus/*`、`data/features_aligned/*`
|
||||
- **修改檔案**:
|
||||
@@ -49,6 +51,7 @@
|
||||
- `F06_graph_laozi_lhs_and_falsification.feature`:`[正例]` 圖論 MST/TE、老子四時馬可夫、LHS-MC 檢定;`[Pre-mortem]` 晚期上市節點防崩潰、Purged 防洩漏、反證遲滯恢復。
|
||||
- `F07_visual_compendium_and_citations.feature`:`[正例]` 繪製 6 張實證圖表與分章附錄五大出處檢驗;`[Pre-mortem]` 損毀假圖魔數攔截與斷鏈出處警報。
|
||||
- `F08_taifex_futures_live_update_202611.feature`:`[正例]` 官方補抓至 `2026/11/20` 與重算;`[Pre-mortem]` 契約金額單位標準化與 `2025-03-03` 零 OI 覆蓋修復。
|
||||
- `F09_rolling_forecast_simulation_exam.feature`:`[正例]` 2022–2026/11/20 跨尺度滾動迴歸模擬試題與 `report/forcecast` 報表圖表產出;`[Pre-mortem]` Multi-horizon Purge `s + h < t0` 防未來洩漏與動態校準 Popper `C1_cal/C2_cal` 防線。
|
||||
|
||||
---
|
||||
|
||||
@@ -118,11 +121,12 @@
|
||||
- `README_exe_commend/features/F06_graph_laozi_lhs_and_falsification.feature`
|
||||
- `README_exe_commend/features/F07_visual_compendium_and_citations.feature`
|
||||
- `README_exe_commend/features/F08_taifex_futures_live_update_202611.feature`
|
||||
- `README_exe_commend/features/F09_rolling_forecast_simulation_exam.feature`
|
||||
- 自動化單元與 AST Linter 測試程式碼:
|
||||
- `src/test_bdd_scenarios.py`
|
||||
- **測試執行項目與結果摘要**(已於 2026-11-20 實測完成):
|
||||
1. `TestDocstringCompliance`(AST Linter):自動掃描 `src/*.py` 內全部 8 支程式所有類別、方法與函式,9 大標籤與 `[修改概要]`(10–40 字)檢查 **PASSED**。
|
||||
2. `TestF01DataAudit` ~ `TestF08TaifexFuturesLiveUpdate202611`:全套 **17 項 BDD 正例與 Pre-mortem 測試**(含 `F08` 單位轉換與 `2025-03-03` 零未平倉覆蓋修復)全數 **PASSED**(Ran 17 tests, OK)。
|
||||
1. `TestDocstringCompliance`(AST Linter):自動掃描 `src/*.py` 內全部 9 支程式所有類別、方法與函式,9 大標籤與 `[修改概要]`(10–40 字)檢查 **PASSED**。
|
||||
2. `TestF01DataAudit` ~ `TestF09RollingForecastSimulationExam`:全套 **19 項 BDD 正例與 Pre-mortem 測試**(含 `F09` 多期滾動預測模擬試題與 Purge/校準反證防線)全數 **PASSED**(Ran 19 tests, OK)。
|
||||
3. Phase 2 `--fetch-live` 實網補抓結果(Exit code 0):
|
||||
- **TWSE 真實現貨日線(`2023/06–2025/03`)**:補齊 `443` 日合併為 `3,485` 日(`2011-01-03 ~ 2025-03-31`)完整檔 [taiex_spot_full_2011_202503.csv](file:///Users/ancel/Desktop/project/eco_analyse/data/cleaned/taiex_spot_full_2011_202503.csv),與大台隱含價重疊 `422` 日相關係數 **`0.999762`**(MAE `43.04` 點)。
|
||||
- **TAIFEX 臺指選擇權 Put/Call Ratio(`2021/09/27–2025/03/03`)**:補齊 **`830`** 日 [taifex_pc_ratio_202109_202503.csv](file:///Users/ancel/Desktop/project/eco_analyse/data/cleaned/taifex_pc_ratio_202109_202503.csv) 並合併至 [merged_daily_market_features_enriched_202109_202503.csv](file:///Users/ancel/Desktop/project/eco_analyse/data/cleaned/merged_daily_market_features_enriched_202109_202503.csv)。
|
||||
@@ -146,3 +150,6 @@
|
||||
8. Phase 7 TWSE / TAIFEX 官方即時更新至 `2026/11/20` 與重算成果(`F08` 完整通過):
|
||||
- **官方源頭補齊與品質驗證**:TWSE 現貨延展至 **`2026-11-20`**(共 `3,886` 日,收盤 `36,033.29`);TAIFEX `futContractsDateDown` 與 `pcRatioDown` 補齊至 **`2026-11-19`**(共 `1,250` 日,完整修復 `2025-03-03` 零 OI 殘留列),`2025-03 ~ 2026-11` 重疊相關係數 **`0.99988`**(MAE `135.51` 點)。
|
||||
- **延伸期與全期重算發現**:納入 `2025/03–2026/11`(合計 `1,045` 日 OOS)後,`M1` 推進至 **`+25.90%` (`SR +0.427`)**,`M2`(圖論)於未見高波動延伸期創 **`+23.22%` (`SR +0.710`)** 並拉動全期轉正為 `+8.39%`;老子 `season_phase_sin` 與 `tx_foreign_doi_z`、`true_tx_basis_z` 共三項通過 LHS-MC 檢定(前兩者更過 10% BH-FDR `q=0.06972`),完整記錄載於 [CH05_202503_202611_latest_market_and_model_update.md](file:///Users/ancel/Desktop/project/eco_analyse/docs/chapters/CH05_202503_202611_latest_market_and_model_update.md)。
|
||||
9. Phase 8 `2022–2026/11/20` 滾動迴歸與多期預測模擬試題(`F09` 完整通過):
|
||||
- **多期與多架構實證**:完成 Spot 2022 全年基準與 2022–2026/11 `Model A~D` (`1d/5d/15d`) 滾動試題;證實 `Model D` 於 `1d`(`MAE 264.17 點`, `IC +0.0294`)與 `15d`(`IC +0.0332`, `Hit 54.45%`, 2026 年 `Hit 68.18% / R2 +4.113%`)顯著優於未分流 `Model B`(`R2 -35.33% / -41.58%`)。
|
||||
- **校準 Popper 與實戰策略**:`Calibrated Popper` 於 1,045 日 OOS 觸發 `193` 日(捕捉 `2023-06-15` 與 `2024-08-05`),使 `Eco_Regime_Long_Defense` 達成年化 **`+21.58%`**、Sharpe **`1.459`**、MaxDD 壓低至 **`16.99%`**(vs 買進持有 Sharpe `1.021`、MaxDD `28.69%`),完整成果載於 [00_rolling_forecast_simulation_exam_report.md](file:///Users/ancel/Desktop/project/eco_analyse/report/forcecast/00_rolling_forecast_simulation_exam_report.md)。
|
||||
|
||||
Reference in New Issue
Block a user