deerlab.goodness_of_fit¶
- goodness_of_fit(x, xfit, Ndof, noiselvl)[source]¶
Goodness of Fit statistics
Computes multiple statistical indicators of goodness of fit.
- Parameters:
- xarray_like
Original data.
- xfitarray_like
Fit.
- Ndofint
Number of degrees of freedom.
- noiselvlfloat
Standard deviation of the noise in x.
- Returns:
- statsdict
- Statistical indicators:
stats[‘chi2red’] - Reduced chi-squared stats[‘rmsd’] - Root mean-squared deviation stats[‘R2’] - R-squared test stats[‘aic’] - Akaike information criterion stats[‘aicc’] - Corrected Akaike information criterion stats[‘bic’] - Bayesian information criterion stats[‘autocorr’] - Autocorrelation based on Durbin–Watson statistic