拟合优度卡方检验

chi-square test for goodness of fit