mcsTest#

Purpose#

Model Confidence Set: identify the set of models with equal predictive ability.

Format#

mcs = mcsTest(losses)#
mcs = mcsTest(losses, alpha=0.10)
Parameters:
  • losses (NxM matrix) – loss series for M models. Each column is one model’s loss series.

  • alpha (scalar) – Optional keyword, significance level. Default = 0.15.

  • n_boot (scalar) – Optional keyword, bootstrap replications. Default = 5000.

  • block (scalar) – Optional keyword, block length for block bootstrap. Default = auto.

  • seed (scalar) – Optional keyword, RNG seed. Default = 42.

  • quiet (scalar) – Optional keyword, set to 1 to suppress output. Default = 0.

Returns:

mcs (struct) – An instance of a mcsResult structure containing surviving model indices, p-values, and elimination order.

Examples#

new;
library timeseries;

// Squared errors from 5 models
losses = e1^2 ~ e2^2 ~ e3^2 ~ e4^2 ~ e5^2;

mcs = mcsTest(losses);

print "Surviving models:" mcs.surviving;
print "MCS p-values:" mcs.p_values;
print "Elimination order:" mcs.elimination_order;

Remarks#

Implements Hansen, Lunde & Nason (2011). The MCS is the smallest set of models that contains the best model with probability 1-alpha. Models are sequentially eliminated until the null of equal predictive ability cannot be rejected for the remaining set.

The surviving set includes all models whose MCS p-value exceeds alpha.

Model#

The MCS procedure iteratively tests equal predictive ability across a set of models. At each step, the worst-performing model is identified and tested for elimination:

\[t_{\max,M} = \max_{i \in M} \frac{\bar{d}_{i\cdot}}{\sqrt{\widehat{\text{var}}(\bar{d}_{i\cdot})}}\]

where \(\bar{d}_{i\cdot} = \frac{1}{|M|} \sum_{j \in M} \bar{d}_{ij}\) is model i’s average loss relative to all surviving models. The p-value is computed via stationary bootstrap (Politis & Romano 1994).

References#

  • Hansen, P.R., A. Lunde, and J.M. Nason (2011). “The Model Confidence Set.” Econometrica, 79(2), 453-497.

  • Politis, D.N. and J.P. Romano (1994). “The stationary bootstrap.” Journal of the American Statistical Association, 89(428), 1303-1313.

Library#

timeseries

Source#

scoring.src

See also

Functions dmTest(), cwTest()