PreviousTable of ContentsNext


The ReturnResiduals Option

The residuals of a fit are the differences between the fitted values and the experimental values of the dependent variable. The least-squares technique used by LinearFit attempts to minimise the residuals.

As part of the graphical output of the fit the residuals of the fit are graphed, usually as a small insert in the main graph. The ReturnResiduals option allows you to see the actual numeric values of those residuals. The relevant part of the Fit Options screen looks like this when we set the option to True:

ReturnResiduals

True
False (default)

Return the residuals of the fit in a separate window.

After setting this option, say we fit some student-taken data from a constant volume gas thermometer to a straight line. The results of the fit are:

A0 = -263. ± 18.
A1 = 3.71 ± 0.21.
Sum of Squares = 133.9 for 3 degrees of freedom.
(Assumed statistical error in the dependent variable: 6.68082)
[Graphics:../Images/index_gr_175.gif]

In a separate window the residuals will look like this:

{{65., {1.8, 6.7}}, {75., {1.8, 6.7}}, {85., {–10.4, 6.7}}, {95., {4.6, 6.7}}, {105., {0.4, 6.7}}}

Each datapoint in the dataset is represented by three numbers:
{ ind , { residual , error in residual }}.
where:

In some circumstances, there may not be any assumed error in the value of the dependent variable. In this case, ReturnResiduals will return a list with each datapoint represented by only two numbers:
{ ind , residual }.


PreviousTable of ContentsNext


Authors

This help document is Copyright © 1999 David M. Harrison. The sample screens are Copyright © 1999 Solomon R.C. Douglas and David M. Harrison. This is version 1.1 of the help document, date (m/d/y) 11/25/99.