In Statistics.Test.ChiSquared.chi2test, the testDistribution return value is "chiSquared ndf". I think it should be "chiSquared n", or equivalently just "d" (because "d" has already be defined). It is reasonable to call chi2test with ndf==0 (e.g., testing uniformity), but that results in the error Statistics.Distribution.ChiSquared.chiSquared: N.D.F. must be positive. Got 0
In Statistics.Test.ChiSquared.chi2test, the testDistribution return value is "chiSquared ndf". I think it should be "chiSquared n", or equivalently just "d" (because "d" has already be defined). It is reasonable to call chi2test with ndf==0 (e.g., testing uniformity), but that results in the error
Statistics.Distribution.ChiSquared.chiSquared: N.D.F. must be positive. Got 0
Same issue also seen in chi2testCont.