For each horizon h the series is aggregated into non-overlapping h-period sums and a Kolmogorov-type sup distance compares their empirical distribution with the model's distribution at that horizon – the \(V_{1T}\)-type comparison of Corradi & Swanson (2006). A model can fit the one-period distribution and still fail at 20 periods; checking several horizons is what detects that.
Usage
morie_multi_horizon_ks(
r,
horizons = c(1L, 5L, 20L),
cdf = NULL,
n_mc = 500L,
seed = 0L
)Value
Named list with statistic, p_value,
per_horizon (data.frame: h, n_h, statistic, p_value),
n, method.
Details
With cdf supplied the null is fully specified and classical
Kolmogorov p-values apply per horizon; with cdf = NULL a
Gaussian is fitted per horizon and the null is simulated (the
Lilliefors construction). The joint p-value is Bonferroni.
Mirrors morie.fn.volcorpst.
