For a sample of N observations from a random variable x(k),
where
fi = observed frequency
Fi = expected frequency
in the ith class interval, respectively.
The variable x(k) has a probability p(x) = p0(x).
where the value χ2n;α is the chi-square statistic for a degree of freedom n = K - 3.