עבור לתוכן
כל מסמכי הספרייה

אבחון אסטרטגיות מסחר בלמידת מכונה בתשעה מקרי בוחן

מאמר Machine Learning for Trading

סיכום

פרק זה מסכם תשעה מקרי בוחן שבהם אותות למידת מכונה עוברים דרך בניית תיק, עלויות מסחר, שכבות סיכון והערכה קפואה במדגם החזקה. הוא מתייחס להתקדמות בכל מקרה בוחן כיחידת הניתוח, במקום לדרג אסטרטגיות לפי מדד שארפ בלבד. המסגרת המתוארת מפרידה בין איכות האות, תרגומו לתיק, עמידות בפני עלויות ויציבות לאורך זמן, ואז משתמשת בשלבים האלה לזיהוי המגבלות הקובעות והתחומים שבהם מחקר נוסף עשוי לעזור.

הפרק מתאר שיטות ובהן סינון מאפיינים מבוקר לפי שיעור גילויים שגויים, מקדם מידע ומדדי יציבות, אבחונים לפי החוק היסודי, השוואות בין מקצי הון, בדיקות עלות וקיבולת, ניתוח משטרים והערכת מהימנות סיבתית. הראיות מאורגנות בטבלאות הפרק, בתרשימים ובמרשמים לכל מקרה בוחן; הסקירה אינה מציגה את התוצאות המספריות שלהם. המסקנות אבחוניות ומוגבלות למקרים ולהנחות שנבדקו. הפרק מצביע גם על בדיקות מרובות, שינויים בהתנהגות בין אימות למדגם החזקה, ריאליזם הביצוע והצורך בעבודה נוספת, כגון עיצוב מחדש של תוויות, אנסמבלים או מחקר על מקצי הון.

רעיונות מרכזיים

  • איכות האות, תרגום לתיק, עמידות בפני עלויות ויציבות לאורך זמן הם שלבי הערכה נפרדים.
  • סינון ברמת המאפיין יכול להנחות פיתוח אסטרטגיה, אך אינו מנבא באופן אמין אילו אסטרטגיות ישרדו.
  • דירוגים של משפחות מודלים עשויים להשתנות כשהתחזיות עוברות דרך הקצאה ועלויות מסחר.
  • דעיכה בין אימות למדגם החזקה עשויה לנבוע מסחיפת תחזיות, מתרגום לתיק או משינויים במשטר השוק.
  • סינתזה מועילה מזהה מגבלות ייחודיות למקרים ואת צעדי המחקר הבאים, במקום להכריז על מנצח כללי אחד.

תגיות

הטקסט המלא
# 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 על סמך המקור; הוא אינו העתק של המקור.