1997issue C081-6
Walk-forward tests after system optimization
A locked-parameter run on unused data is one test with no further adjustment. After a search, walk-forward analysis records trades from the next unseen interval so hypothesis testing on those trades needs no multiplicity correction.
- A single locked-parameter run on unused data is the same evaluation setup as an unoptimized system: one test and no further parameter adjustment.
- Simulated trades from a fixed-parameter run are treated as a sample, so a t-statistic compares the mean trade result with a hypothesized mean of zero or worse, and a win-rate interval is formed from the binomial count of winning trades.
- After a search, the best in-sample t-statistic is multiplicity-adjusted; once parameters are locked, one out-of-sample run does not need that correction, and neither do walk-forward trades from the next unseen interval.
- Statistical checks during development are used to reject models whose observed behavior could be explained by chance or by excessive fitting on an inadequate sample.
One unused run after lock-in
A single run of a locked-parameter system on unused data is the same evaluation setup as an unoptimized system: one test and no further parameter adjustment. Simulated trades from that fixed-parameter run can be treated as a sample from the system's trade population, so inference targets the mean trade result versus a hypothesized population mean of zero or worse.
The t-statistic is the sample mean trade result minus that stated baseline, divided by the standard error of that mean. Its tail probability is read from the t distribution with degrees of freedom equal to the number of trades minus one. An interval for the population win rate can be formed by inverting the cumulative binomial distribution around the observed count of winning trades.
How a search changes the reading
After a search over parameter combinations, the significance of the best in-sample t-statistic is adjusted to one minus the quantity one minus that significance, raised to the number of trials. That adjusted figure estimates the chance of seeing at least one result that good. In-sample means the data window used while parameters are searched.
Treating every trial as independent overstates how many distinct tests were run when nearby parameter values produce similar results, so an independence-based multiplicity adjustment is conservative. Once parameters are locked and only one out-of-sample run is made, statistics computed on those trades do not require an optimization correction. Out-of-sample means a later window used only after parameters are locked.
Walk-forward analysis after the search
Walk-forward analysis reoptimizes on a moving window, records trades from the next unseen interval, then advances the window. Those trades remain out-of-sample, and t-tests on them need no multiplicity correction.
Hypothesis testing during development is used to reject models whose observed behavior could be explained by chance or by excessive fitting on an inadequate sample.
All readings on this track · 20 readings
- 1988Serial dependence, trade excursions, and belief revision
- 1989Score an indicator before anyone writes a buy or sell rule
- 1990Evaluating safety labels in a crash window
- 1991Keep a decade-year only when it differs from the overall-mean
- 1991Audit indicator forecasts with chi-square hit rates
- 1992A lag-regression audit of stochastic forecast skill
- 1992Constructing detrended tests for calendar seasonality
- 1992Building a shared workbook for calendar seasonality tests
- 1995T-test evaluation of simulated trade returns
- 1995Constructing a two-proportion Z-test for hit rates
- 1996Treat a volume-price surge as a contingency table
- 1997Testing bond and stock seasonality before you trade
- 1997Walk-forward tests after system optimization
- 1997Testing breakout rate versus rally speed
- 2000Score the misses before a pattern is a system
- 2002Leave a moving-average crossover unfinished until chance cannot explain the ranges
- 2013Keep or drop an RSI threshold with a complementary-sample test
- 2013Constructing a null and a t-test for sample returns
- 2017Partial correlation and the market-adjusted stock trend
- 2017Constructing market-adjusted stock trend scores