Goodness of fit calculator