Last chance! 50% off unlimited learning
Sale ends in
order.test(u, d = 3, echo = TRUE)
TRUE
d
is a multiple of the length of u
.statistic
the value of the chi-squared statistic.
p.value
the p-value of the test.
observed
the observed counts.
expected
the expected counts under the null hypothesis.
residuals
the Pearson residuals, (observed - expected) / sqrt(expected).
u
, realisation of i.i.d. uniform random
variables $U_1, \dots, U_n$. The Order test works on a sequence of d-uplets ($x,y,z$ when
d=3
) of uniform i.i.d.
random variables. The triplet is build from the vector $u$. The number of
permutation among the components of a triplet is $3!=6$, i.e. $x
L'Ecuyer P. (2001), Software for uniform random number generation distinguishing the good and the bad. Proceedings of the 2001 Winter Simulation Conference. (available online)
L'Ecuyer P. (2007), Test U01: a C library for empirical testing of random number generators. ACM Trans. on Mathematical Software 33(4), 22.
freq.test
, serial.test
, poker.test
,
gap.test
and coll.test
ks.test
for the Kolmogorov Smirnov test and acf
for
the autocorrelation function.
# (1) mersenne twister vs torus
#
order.test(runif(6000))
order.test(torus(6000))
# (2)
#
order.test(runif(4000), 4)
order.test(torus(4000), 4)
# (3)
#
order.test(runif(5000), 5)
order.test(torus(5000), 5)
Run the code above in your browser using DataLab