chi Squared Serial2DTest Statistic
Performs the 2-D chi-squared serial test
Return
the chi-squared test statistic
Parameters
rng
the thing that produces U(0,1) numbers, must not null
n
number of pairs of random numbers to test
k
the number of intervals in the test for each dimension
Computes the 2-D chi-squared serial test. Assumes that the pairs are (u(1), u(2)), (u(3), u(4)) ..., (u(n/2 - 1), u(n/2))
Return
the chi-squared test statistic
Parameters
u
the array of so called U(0,1) numbers
k
the number of intervals along each of the 2 dimensions