source: sasview/src/sas/sasgui/perspectives/fitting/media/residuals_help.rst @ 67d8b1b

ESS_GUIESS_GUI_DocsESS_GUI_batch_fittingESS_GUI_bumps_abstractionESS_GUI_iss1116ESS_GUI_iss879ESS_GUI_iss959ESS_GUI_openclESS_GUI_orderingESS_GUI_sync_sascalcmagnetic_scattrelease-4.2.2ticket-1009ticket-1094-headlessticket-1242-2d-resolutionticket-1243ticket-1249ticket885unittest-saveload
Last change on this file since 67d8b1b was 940d034, checked in by Paul Kienzle <pkienzle@…>, 7 years ago

remove latex ambiguity

  • Property mode set to 100644
File size: 2.2 KB

Assessing Fit Quality

When performing model-fits to some experimental data it is helpful to be able to gauge how good an individual fit is, how it compares to a fit of the same model to another set of data, or how it compares to a fit of a different model to the same data.

One way is obviously to just inspect the graph of the experimental data and to see how closely (or not!) the 'theory' calculation matches it. But SasView also provides two other measures of the quality of a fit:

  • $chi^2$ (or 'Chi2'; pronounced 'chi-squared')
  • Residuals

Chi2

Chi2 is a statistical parameter that quantifies the differences between an observed data set and an expected dataset (or 'theory').

SasView actually returns this parameter normalized to the number of data points, Npts such that

χ2 ⁄ Npts = [(Yi − theoryi)2 ⁄  error2i] ⁄ Npts

This differs slightly from what is sometimes called the 'reduced $chi^2$' because it does not take into account the number of fitting parameters (to calculate the number of 'degrees of freedom'), but the 'normalized $chi^2$ and the 'reduced $chi^2$ are very close to each other when $N_{pts} gg text{number of parameters}.

For a good fit, $chi^2/N_{pts}$ tends to 1.

$chi^2/N_{pts}$ is sometimes referred to as the 'goodness-of-fit' parameter.

Residuals

A residual is the difference between an observed value and an estimate of that value, such as a 'theory' calculation (whereas the difference between an observed value and its true value is its error).

SasView calculates 'normalized residuals', $R_i$, for each data point in the fit:

Ri = (Yi − Yitheory) ⁄ (Yierr)

For a good fit, $R_i sim 0$.

Note

This help document was last changed by Steve King, 08Jun2015

Note: See TracBrowser for help on using the repository browser.