Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ python tools/fetch_public_indices.py --futures-only --offline
python -m quant_timing compare --config configs/market_comparison.yaml --out studies/market_comparison
```

修正后的十二组公开对照保存在 `studies/market_comparison/model_comparison.csv`,所有模型统一从 2019-03-08 开始。期货序列可由已提交的单合约收盘价和独立交易日历离线重建,上市前及数据覆盖前不会生成价格。公开成交量只用于行业相对权重,不推算人民币容量;表中的容量及参与率保持空值。旧版对照数字已替换,完整数据口径见 `data/public/SOURCE.md`。这些固定参数下的研究结果不构成收益承诺。
账本修复后的十二组公开对照见[2026-10-01回归重放](studies/market_comparison/2026-10-01-regression/README.md),原表保留为历史结果。所有模型统一从2019-03-08开始,使用同一份截至2026-09-28的既有快照;这次重放不是新增样本外证据。期货序列可由已提交的单合约收盘价和独立交易日历离线重建,上市前及数据覆盖前不会生成价格。公开成交量只用于行业相对权重,不推算人民币容量;容量及参与率保持空值。完整数据口径见`data/public/SOURCE.md`。这些固定参数下的研究结果不构成收益承诺。

外部 regime 有两种读法,不能同时用:

Expand Down
11 changes: 11 additions & 0 deletions studies/market_comparison/2026-10-01-regression/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# 账本修复后的历史回归重放

使用已合并的会计修复提交`36ec2309f0beed5773a78a64f1fd1990b6fa3f08`,对既有配置和公开数据快照重新运行全部12组对照。输入、配置和结果的SHA-256见[receipt.json](receipt.json),完整结果见[model_comparison.csv](model_comparison.csv)。旧表保留,没有覆盖原始行情或修改参数选取赢家。

```powershell
python -m quant_timing compare --config configs/market_comparison.yaml --out NEW_OUTPUT
```

12组均完成10个滚动测试折,历史截断泄漏检查通过。11组的平均超额收益为负;唯一为正的沪深300仓位TSMOM平均超额为0.5944%,但其描述性全样本净收益为12.5961%,低于基准18.6785%,最大回撤为22.4995%。这些数值不支持把软件修复解释为策略有效性证明。

本次使用相同的2019-03-08至2026-09-28历史窗口,是修复后的兼容性与会计回归,不能增加未触碰的样本外天数,也不是前向观察。信号、行业权重、上市前IM替代以及成交量口径的限制仍以[来源说明](../../../data/public/SOURCE.md)为准;真实容量和参与率仍不可用。
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
book,model,sample_start,sample_end,status,scored_folds,mean_excess_return,mean_matched_excess_return,mean_turnover,full_sample_drawdown,descriptive_full_sample_net,descriptive_full_sample_benchmark,median_participation,capacity,leakage_passed
position_hs300,rules,2019-03-08,2026-09-28,complete,10,-0.031198428012261338,0.0,0.010531487304949818,-0.42285833466895617,-0.27415568505956367,0.18678470464076957,,,True
position_hs300,vol_target,2019-03-08,2026-09-28,complete,10,-0.03156955365650982,0.0,0.01114083006446135,-0.4185358101074913,-0.29585935961375687,0.18678470464076957,,,True
position_hs300,tsmom,2019-03-08,2026-09-28,complete,10,0.005943945288393382,0.0,0.007069514003718402,-0.2249954453692825,0.1259607125267237,0.18678470464076957,,,True
position_hs300,moving_average,2019-03-08,2026-09-28,complete,10,-0.028239620418835255,0.0,0.010487521166449238,-0.5495922949516868,-0.5300314332087175,0.18678470464076957,,,True
style,rules,2019-03-08,2026-09-28,complete,10,-0.06476402629719144,-0.01426268392620782,0.019587163476617542,-0.5903350102546528,-0.5585668392908967,0.18678470464076957,,,True
style,vol_target,2019-03-08,2026-09-28,complete,10,-0.06954293621051166,-0.012974699251719768,0.01807565187378955,-0.6241295564632773,-0.6228776014799978,0.18678470464076957,,,True
style,tsmom,2019-03-08,2026-09-28,complete,10,-0.0019077826255595176,-0.018893364246552146,0.012748989405903677,-0.2277081365866641,-0.06917435888655887,0.18678470464076957,,,True
style,moving_average,2019-03-08,2026-09-28,complete,10,-0.04141648488993856,-0.008827261819516319,0.013000709981114994,-0.6407998255528331,-0.6305696192028237,0.18678470464076957,,,True
futures_hs300,rules,2019-03-08,2026-09-28,complete,10,-0.027587887231608432,0.0,0.010339354140995408,-0.39251725844638463,-0.3518895781886796,0.18678470464076957,,,True
futures_hs300,vol_target,2019-03-08,2026-09-28,complete,10,-0.02680083931796372,0.0,0.010583435561758626,-0.3877164386871722,-0.3583666017292778,0.18678470464076957,,,True
futures_hs300,tsmom,2019-03-08,2026-09-28,complete,10,-0.11478954999101809,0.0,0.014225279751537954,-0.8671507673067105,-0.8381223622913454,0.18678470464076957,,,True
futures_hs300,moving_average,2019-03-08,2026-09-28,complete,10,-0.10567045565331126,0.0,0.014791914044104713,-0.8907674062285317,-0.8807663128898305,0.18678470464076957,,,True
25 changes: 25 additions & 0 deletions studies/market_comparison/2026-10-01-regression/receipt.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"scope": "fixed-historical-input-regression-replay-not-new-holdout",
"code_commit": "36ec2309f0beed5773a78a64f1fd1990b6fa3f08",
"input_sha256": {
"configs/market_comparison.yaml": "d3386e68c94bfa656496a3cefdab34d11a873f876858d31cbe33e221ae94226d",
"data/public/indices.csv": "2e4dbd54e478c9d62bdc41b3e58e126c5c13dcb0f0c0cb5ae8510239c7876430",
"data/public/amounts.csv": "ed95eb28c1eb54f1efb8c02d4cfdc85f2ddee66e9c92d5b4967543f9a237369c",
"data/public/signals.csv": "6c95c2914908e421beb4f056c26c3fe281641a39d257711c1bcdc9c35bf4d691",
"data/public/futures.csv": "aab4f3918f52d8cc242cab8709c79bec54ad641f69bde69ed382bac8bf9a189f"
},
"result_sha256": "68e8a54490bf2904dba1bd8ad8184886caa201209364610627943961dd176f59",
"row_count": 12,
"all_complete": true,
"all_leakage_passed": true,
"folds_per_row": 10,
"execution_input_sha256": {
"data/public/indices.csv": "dbc38b74cd5d929244a8fc07c32e99da42a208143a3da6d879ec81e3f443c3bd",
"data/public/futures.csv": "7afafec10c77abd38569533ed118dbae634ac186efc8b1b598eca803a1075b8a",
"configs/market_comparison.yaml": "7a7145686b1ae8dfc5005d9fd8cbc2ebafbbc95a50c5c54beacf142a1ad72229",
"data/public/signals.csv": "2162e90e631bcb6a6e69f31af7d4bd84291af9e3c067cb651c0d969c3c4a9d18",
"data/public/amounts.csv": "3f1981afb3801f30d3c0ee6412c95d2ab05e0c931030e1164173ef5530975e19"
},
"execution_result_sha256": "92654955014ea3fb91a8deceeabcb5a0ac5ce9ce1938aac716d650d8f520d11f",
"hash_method": "input_sha256/result_sha256: UTF-8 text without BOM, CRLF/CR normalized to LF; execution_*: actual bytes consumed/produced"
}
Loading