Changeset 5ed76f8 in sasview for src/sas/sasgui/perspectives/fitting/media/residuals_help.rst
- Timestamp:
- Apr 7, 2017 1:11:41 AM (7 years ago)
- Branches:
- master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, magnetic_scatt, release-4.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- fca1f50
- Parents:
- 727c05f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sasgui/perspectives/fitting/media/residuals_help.rst
r7805458 r5ed76f8 18 18 also provides two other measures of the quality of a fit: 19 19 20 * |chi|\ :sup:`2`(or 'Chi2'; pronounced 'chi-squared')20 * $\chi^2$ (or 'Chi2'; pronounced 'chi-squared') 21 21 * *Residuals* 22 22 … … 32 32 *Npts* such that 33 33 34 *Chi2/Npts* = { SUM[(*Y_i* - *Y_theory_i*)^2 / (*Y_error_i*)^2] } / *Npts* 34 .. math:: 35 35 36 This differs slightly from what is sometimes called the 'reduced chi-squared' 36 \chi^2/N_{pts} = \sum[(Y_i - Y_{theory}_i)^2 / (Y_error_i)^2] } / N_{pts} 37 38 This differs slightly from what is sometimes called the 'reduced $\chi^2$' 37 39 because it does not take into account the number of fitting parameters (to 38 calculate the number of 'degrees of freedom'), but the 'normalized chi-squared'39 and the 'reduced chi-squared' are very close to each other when *Npts* >> number of40 parameters.40 calculate the number of 'degrees of freedom'), but the 'normalized $\chi^2$ 41 and the 'reduced $\chi^2$ are very close to each other when $N_{pts} \gg 42 \text{number of parameters}. 41 43 42 For a good fit, *Chi2/Npts* tends to 0.44 For a good fit, $\chi^2/N_{pts}$ tends to 1. 43 45 44 *Chi2/Npts*is sometimes referred to as the 'goodness-of-fit' parameter.46 $\chi^2/N_{pts}$ is sometimes referred to as the 'goodness-of-fit' parameter. 45 47 46 48 .. ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ … … 53 55 value and its *true* value is its error). 54 56 55 *SasView* calculates 'normalized residuals', *R_i*, for each data point in the57 *SasView* calculates 'normalized residuals', $R_i$, for each data point in the 56 58 fit: 57 59 58 *R_i* = (*Y_i* - *Y_theory_i*) / (*Y_err_i*) 60 .. math:: 59 61 60 For a good fit, *R_i* ~ 0. 62 R_i = (Y_i - Y_theory_i) / (Y_err_i) 63 64 For a good fit, $R_i \sim 0$. 61 65 62 66 .. ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ
Note: See TracChangeset
for help on using the changeset viewer.