numeraire.ClarkWestEvaluator#
- class numeraire.ClarkWestEvaluator(nw_lags: int = 0)[source]#
Bases:
objectClark-West (2007) MSPE-adjusted test of the forecast against its nested benchmark.
The right significance test to pair with
OutOfSampleR2Evaluator— plain Diebold-Mariano is undersized against a nested benchmark (the historical mean). Multi-asset outputs aggregate the per-origin adjusted loss difference across assets (the pooled companion ofSquaredErrorDiffEvaluator); one asset is the textbook statistic. Emits two rows:cw_tandcw_p(one-sided). Usenw_lags = horizon - 1for multi-step forecasts.Methods
__init__([nw_lags])evaluate(oos_output)Attributes
requires