compute chisq for new ps