The chi-square test looks at the
issue from the same angle but uses different method. Instead of
measure the difference of each point between the samples and the true
distribution, chi-square checks the ``deviation'' from the
``expected'' value.
where n is the number of classes (e.g. intervals), is the
number of samples obseved in the interval, is expected number of
samples in the interval. If the sample
size is N, in a uniform distribution,
See Example 8.7 on page 302.