1986issue C041-3
Degrees of freedom in trading system optimization
Searching three moving-average controls at ten values each yields 1,000 combinations, and the most profitable set is commonly treated as an optimum. Reliability then depends on degrees-of-freedom-loss, joint-correlation, a minimum-trade-sample, a cycle-complete-window, and walk-forward-analysis on later market state.
- Each added control parameter consumes statistical freedom and reduces the reliability of the simulated outcome.
- Averages, stops, range filters, deviation bands, and oscillator thresholds lower reliability unless joint-correlation is tested and redundant variables are dropped.
- Preferred designs keep about two to five variables, a minimum-trade-sample of 30 or more simulated trades, and a cycle-complete-window.
- Walk-forward-analysis reapplies the same system-optimization procedure on later market state after robustness-testing for overcontrol and overstated results.
How the in-sample search treats an optimum
System-optimization searches over rule inputs, market state, and execution constraints so entry, exit, and abstention become one testable procedure whose output is a holding-period signal. Searching three moving-average controls at ten candidate values each requires evaluating 1,000 combinations, after which the most profitable set, and often the one with the smallest drawdown, is commonly treated as an optimum.
Degrees-of-freedom-loss from extra controls
Each added control parameter consumes statistical freedom and reduces the reliability of the simulated outcome. That reliability penalty is degrees-of-freedom-loss. A ninth-degree polynomial forced through ten closing prices can show a correlation of 1.0 and still fail to forecast the next close because the fit has used its available freedom.
Adding more averages, stops, range filters, deviation bands, and oscillator thresholds increases control and generally lowers reliability unless joint correlation among inputs is tested and redundant variables are dropped. Optional entry timing among the open, the close, or an in-between print can consume freedom without a commensurate design benefit.
Joint-correlation and redundant inputs
Joint-correlation is association among candidate inputs that can overstate simulated outcomes unless redundant variables are removed. If volume and daily range move together, only one should enter system-optimization, because two correlated inputs describe the same condition and can overstate the result.
Models that forecast activity from many mutually independent economic series are distinguished from predicting future price from past price, so overlapping price-derived controls should be reduced to a small independent set.
Minimum-trade-sample and cycle-complete windows
A one-year, heavily parameterized simulation that produced 19 winning trades and one losing trade later produced 19 losing trades and one winning trade across about 20 subsequent trades after too much control was applied to too short a history.
Preferred designs keep about two to five variables and generate 30 or more simulated trades, using that 30-trade floor as the sampling-theory threshold for approaching normality. That count is the minimum-trade-sample.
The simulation window should be an integer multiple of a full low-frequency cycle. A cycle-complete-window is that span, chosen to avoid a buy or sell bias. A five-year test against a four-year hog cycle, or a four-month test against a three-month cycle, can inject directional bias unless the span is extended to at least six months in the three-month-cycle case.
Robustness-testing then walk-forward-analysis
Robustness-testing checks whether that signal still holds after parameter load, input independence, trade-sample size, and test-window design are examined for overstated results.
Walk-forward-analysis reapplies the same optimization procedure on later market state so selected rules are not judged only on the window that produced them.
All readings on this track · 51 readings
- 1986Degrees of freedom in trading system optimization
- 1988Walk-forward and neighborhood tests after optimization
- 1988Undisclosed rules block system robustness tests
- 1988Testing re-optimization calendars against random parameter controls
- 1989Binary search limits on multi-peak average grids
- 1989Parameter neighborhoods that survive a shift
- 1990Use profit mapping to keep a cycle and stop plateau
- 1990Why popular indicator optimization fails robustness
- 1991Retesting weighted indicator balances across horizons
- 1992Constructing forecast models with regression, walk-forward, and robustness
- 1992Diagnose regimes before you lock parameters
- 1992When stops change system timing
- 1993Walk-forward halt rules for forecast models
- 1994Walk-forward evaluation of genetic index rules
- 1995Input pruning as walk-forward system evaluation
- 1995Critiquing neural nets as incomplete trading systems
- 1996Rebuild the equity-path ratio before it ranks a designed system
- 1996Parameter grids can fit random walks
- 1996Walk-forward analysis belongs in the design of a mechanical trading system
- 1997When a holdout fails, discard the rule set
- 1997Test rewarded rule breaks before replacing the system
- 1997Walk-forward rules keep system research from rewriting live trades
- 1999Keep a channel-breakout to two lookbacks and test neighbor stability
- 1999Constant investment size in stock system evaluation
- 2000Forcing optimization maps mechanical system failure boundaries
- 2000Robust parameter selection with surface charts
- 2001A two-gate classroom test for a two-window momentum trend filter
- 2002How a two-sided continuation factor becomes a testable trend rule
- 2002Evaluating two-window trend intensity as a reversal rule
- 2003Discounting speculative bubbles in system robustness tests
- 2003Walk-forward evaluation of locked stochastic oscillator rules
- 2003Critiquing mechanical system design after extreme price regimes
- 2004Evaluating a two-window trend trigger
- 2005Grade backtested signals with holdouts and optimization plateaus
- 2006Reserved-sample evaluation of trading system design
- 2006Walk-forward critique of hindsight crossover systems
- 2008Condition-matched walk-forward evaluation for mechanical systems
- 2011Session-split evaluation of regular and overnight systems
- 2012Walk-forward evaluation as operator rehearsal
- 2013Two-window evaluation of mechanical trading systems
- 2013Walk-forward filter selection for repeated-median velocity
- 2014Walk-forward evaluation for fading-memory velocity systems
- 2015Test oscillator events before tuning rules
- 2016Walk-forward evaluation of a five-parameter parabolic stop-and-reversal
- 2016Walk-forward optimization without curve fitting
- 2017Optimization without overfitting in trend-system evaluation
- 2017Parameter stability is a better guide than a larger crossover grid
- 2018Point-in-time universes for system evaluation
- 2018Walk-forward robustness evaluation for optimized systems
- 2018Critiquing breakout systems through robustness tests
- 2018A critique of parameter fitting in system design