Validation Stages¶
Apply diagnostics at four points in a research and production process. Each stage answers a different question and produces inputs for the next stage.
Feature stage¶
Test whether each candidate feature has suitable time-series and distribution properties. Measure predictive value separately with information coefficient analysis. Run feature selection inside each training fold to prevent leakage.
Relevant APIs:
FeatureDiagnosticscompute_ic_hac_statsFeatureSelector
Start with feature diagnostics and feature selection.
Signal and model stage¶
Measure cross-sectional IC, quantile spreads, monotonicity, and turnover on out-of-sample predictions. Use purged validation when forward labels overlap.
Relevant APIs:
analyze_signalWalkForwardCVCombinatorialCV
Start with the quickstart and cross-validation guide.
Backtest stage¶
Correct performance claims for the number and dependence of tested variants. Inspect trade distributions and recurring losses. Preserve the complete trial set so Deflated Sharpe Ratio and PBO receive the intended inputs.
Relevant APIs:
deflated_sharpe_ratiocompute_pbobenjamini_hochberg_fdrTradeAnalysis
Start with statistical tests and trade analysis.
Portfolio stage¶
Monitor realized performance, drawdowns, tail risk, and factor exposure. Keep the research correction inputs, data window, benchmark, and configuration with each report.
Relevant APIs:
PortfolioAnalysisFactorAnalysisgenerate_backtest_tearsheet
Start with backtest tearsheets. The executable workflow connects signal, cross-validation, strategy, and portfolio checks.