is used to test whether the datawere distributed as predicted by the hypothesis; here, Ai is the cumulative relative frequency
for the theoretical distribution within each category, Oi is the corresponding value of the sample frequency.When K is greater
than the KS threshold K(n, p) corresponding to a sample size of n and confidence level p, we reject the null hypothesis that
the population sample comes from the given distribution. In this study, the test distribution is the uniform distribution.
The test to examine independence of the data is the autocorrelation test, namely, the Box–Ljung test that uses the first,
second, third and fourth moments. If the test is violated, the datamust be corrected to satisfy the condition that there be no
autocorrelation.