The derivation and partition of chi2 in certain discrete distributions.