This function simulates a random sample of Gaussian multipliers null hypothesis of a Gaussian HMM and compute the Cramer-von Mises and Kolmogorov-Smirnov test statistics.
multiplierfun(MC, s, n)simulated value of the Cramer-von Mises statistic
simulated value of the Kolmogorov-Smirnov statistic
n x n matrix = MM - C, with MM[i,j] = 1(Xi <= Xj) and C=mean(M[,j]);
length of the series.
Bouchra R Nasri and Bruno N Remillard, August 6, 2020
Chapter 8 of B. Remillard (2013). Statistical Methods for Financial Engineering, Chapman and Hall/CRC Financial Mathematics Series, Taylor & Francis.