calc_fit_stats function

Calculate Fit Statistics