九个案例中的机器学习交易策略诊断
文章 《交易机器学习》
总结
本章综合九个案例,追踪机器学习信号如何经过投资组合构建、交易成本、风险覆盖层和冻结的留出集评估。本章以每个案例的演进过程为分析单位,而不是只按夏普比率给策略排名。所述框架将信号质量、投资组合转化、成本下的存续能力和时间稳定性分开,再利用这些阶段识别限制因素所在,以及后续研究可能发挥作用之处。
本章概述的方法包括控制错误发现率的特征初筛、信息系数和稳定性指标、基本定律诊断、配置方法比较、成本与容量检查、市场状态分析,以及因果可信度评估。证据汇总在章节表格、图表和各案例注册记录中;概述未提供数值结果。结论用于诊断,并仅适用于所研究的案例和假设。本章还指出多重检验、验证集到留出集行为的变化、执行真实性,以及标签重新设计、集成模型或配置方法研究等后续工作的必要性。
核心观点
- 信号质量、投资组合转化、成本下的存续能力和时间稳定性是不同的评估阶段。
- 特征级筛选可以指导策略研究,但不能可靠预测哪些策略能够存续。
- 预测经过配置和交易成本后,模型家族的排名可能改变。
- 验证集到留出集的表现衰退可能来自预测漂移、投资组合转化或市场状态变化。
- 有用的综合分析应指出各案例的具体限制和后续研究方向,而非宣称存在普遍适用的赢家。
标签
全文
# Chapter 20: Strategy Synthesis # Chapter 20: Strategy Synthesis The chapter passes nine case studies through the same standardized pipeline (data, features, labels, models, predictions, portfolios, costs, risk overlays) and reads what the resulting cross-section says about translating machine-learning predictions into trading strategies. The unit of comparison is each case study's arc from signal to frozen holdout, not a league-table ranking of Sharpe ratios. The chapter's value is diagnostic: it identifies where the pipeline amplifies or dampens signal, which family of constraints binds in which trading game, and where a second iteration is most likely to pay off. ## Learning Objectives 1. Read a feature triage ledger as a screen for downstream strategy work, and recognize where feature-level survival predicts strategy-level survival and where it does not 2. Distinguish signal quality, portfolio translation, cost survival, and temporal stability as separate evaluation stages 3. Compare how model families behave after the full pipeline, and recognize when several configurations cluster within measurement error of each other 4. Diagnose differences between validation and holdout through prediction-quality drift, portfolio-translation drift, and structural break as distinct mechanisms 5. Evaluate strategies under realistic constraints, including instrument-appropriate cost models, capacity limits, and multiple-testing adjustments 6. Identify next-iteration priorities (label redesign, ensembling, feature engineering, allocator research) inside the Ch6 iterative workflow 7. Apply a practitioner workflow that moves from data and diagnostics through signal generation, strategy construction, and frozen holdout validation ## Chapter Sections | # | Title | Core Idea | |-------|-------------------------------------------------------------|-------------------------------------------------------------------------------------------------| | 20.1 | The Nine Case Studies, End-to-End | Per-CS arc from signal to portfolio to holdout; rank-1 cluster reading where appropriate | | 20.2 | Setup and Feature Evaluation Across the Case Studies | FDR-controlled feature triage; feature survival is a screen, not a strategy-survival predictor | | 20.3 | Signal Quality and Prediction Uncertainty | IC plus stability bundle (ICIR, positive-fold share, checkpoint sensitivity); label engineering | | 20.4 | From Signals to Strategies | Fundamental Law mapping; cadence/breadth/win-rate; family rankings shift across the pipeline | | 20.5 | Portfolio Allocation Across the Case Studies | Allocator cross-section: HRP wins where signal is broad; spread widens when signal is weak | | 20.6 | Trading Realism: Costs, Capacity, and Execution | Per-CS breakeven against assumed cost; SP500 options HTM cascade; bps-of-notional fails options | | 20.7 | Risk Overlays and Stability Across Regimes | Three decay mechanisms (prediction, translation, regime); overlay effectiveness is strategy-specific | | 20.8 | Causal Credibility and Confounding Bias | DML estimates as a fragility metric; publication-standard threshold; refutation companion | | 20.9 | Limitations and a Practitioner Workflow | Constraint inventory; ensemble opportunity; sequenced workflow; per-CS next steps | ## Notebooks | Notebook | What It Does | |-----------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------| | [`01_aggregate_synthesis`](01_aggregate_synthesis.ipynb) | Aggregates per-CS registries into chapter-wide parquets in `output/` | | [`02_feature_evaluation`](02_feature_evaluation.ipynb) | Builds the cross-CS triage funnel (Table 20.3) and the feature-survival vs strategy-survival figure | | [`03_signal_quality`](03_signal_quality.ipynb) | Per-CS family-mean IC table (Table 20.4); IC vs Sharpe scatter (Figure 20.2) | | [`04_signal_to_strategy`](04_signal_to_strategy.ipynb) | Family cascade table (Table 20.5); Fundamental Law diagnostic (Figure 20.3); top-K sweep (Figure 20.4) | | [`05_portfolio_allocation`](05_portfolio_allocation.ipynb) | Allocator winners (Table 20.6); best-worst spread (Table 20.7); allocator-signal interplay | | [`06_cost_survival`](06_cost_survival.ipynb) | Breakeven scorecard (Table 20.8); cost waterfall (Figure 20.5); HTM cascade reading | | [`07_regime_risk`](07_regime_risk.ipynb) | Validation-vs-holdout decay (Figure 20.6); risk overlay impact (Figure 20.7) | | [`08_recommendations`](08_recommendations.ipynb) | Pipeline evidence snapshot (Table 20.11); per-CS next-step ledger; ensembling note | ## Running the Notebooks ```bash # From the repository root, in dependency order uv run python 20_strategy_synthesis/01_aggregate_synthesis.py uv run python 20_strategy_synthesis/02_feature_evaluation.py # ... through 08_recommendations.py # Headless (no display) MPLBACKEND=Agg PLOTLY_RENDERER=json uv run python 20_strategy_synthesis/03_signal_quality.py # Test mode (reduced data via Papermill) uv run pytest tests/test_chapter_notebooks.py -v -k "20_strategy_synthesis" ``` ## Dependencies Upstream: every case study under `case_studies/` must have a populated `run_log/registry.db` with training, prediction, backtest, and (for §20.8) `causal_runs` rows on the primary label. The holdout-split rows that the notebooks below read are written by each case study's own `NN_holdout_predictions` and `NN_holdout_backtest` pair, not by this chapter - Chapter 20 reads results, it does not generate them. Downstream: none. Ch20 is the synthesis end of the pipeline. ## References - **Avramov, Cheng, and Metzker** (2020). [Machine Learning vs. Economic Restrictions](https://doi.org/10.2139/ssrn.3450322). - **Bailey and López de Prado** (2014). [The Deflated Sharpe Ratio](https://doi.org/10.2139/ssrn.2460551). - **Bryan T. Kelly and Dacheng Xiu** (2023). [Financial Machine Learning](https://doi.org/10.2139/ssrn.4501707). - **Campbell R. Harvey and Yan Liu** (2019). [A Census of the Factor Zoo](https://doi.org/10.2139/ssrn.3341728). - **Chernozhukov et al.** (2018). [Double/Debiased Machine Learning for Treatment and Structural Parameters](https://doi.org/10.1111/ectj.12097). - **David H. Bailey and Marcos Lopez de Prado** (2014). [The Deflated Sharpe Ratio: Correcting for Selection Bias, Backtest Overfitting and Non-Normality](https://doi.org/10.2139/ssrn.2460551). - **Doron Avramov et al.** (2021). [Machine Learning vs. Economic Restrictions: Evidence from Stock Return Predictability](https://doi.org/10.2139/ssrn.3450322). - **Frazzini, Israel, and Moskowitz** (2018). [Trading Costs](https://doi.org/10.2139/ssrn.3229719). - **Grinold and Kahn** (2000). *Active Portfolio Management*. Second edition. - **Gu, Kelly, and Xiu** (2020). [Empirical Asset Pricing via Machine Learning](https://doi.org/10.1093/rfs/hhaa009). - **Harvey, Liu, and Zhu** (2016). [...and the Cross-Section of Expected Returns](https://doi.org/10.1093/rfs/hhv059). - **Joachim Freyberger et al.** (2020). [Dissecting Characteristics Nonparametrically](https://doi.org/10.1093/rfs/hhz123). *The Review of Financial Studies*. - **López de Prado** (2016). [Building Diversified Portfolios that Outperform Out-of-Sample](https://doi.org/10.3905/jpm.2016.42.4.059). - **McLean and Pontiff** (2016). [Does Academic Research Destroy Stock Return Predictability?](https://doi.org/10.1111/jofi.12365). - **Novy-Marx and Velikov** (2016). [A Taxonomy of Anomalies and Their Trading Costs](https://doi.org/10.1093/rfs/hhv063). - **O'Donovan and Yu** (2025). *Transaction Costs and Cost Mitigation in Option Investment Strategies*. - **Richard C.. Grinold and Ronald N.. Kahn** (2000). Active portfolio management: A quantitative approach for providing superior returns and controlling risk. *McGraw-Hill*.
在遵守原作品许可的前提下,附作者信息全文展示。 许可协议: MIT
此摘要由 Stratmill 研究智能体根据原文撰写,并非原文副本。