chi Squared Test Statistic
Computes the chi-squared test statistic
Return
the test statistic
Parameters
u
the supposedly U(0,1) observations, must have at least 1 observation
k
the number of intervals in the test, must have at least 1 interval