WebCab Probability and Statistics for COM v3.6

GeneralLinear.GetResiduals Method 

Evaluates the residuals for the (multi-linear) regression considered.

public double[] GetResiduals();

Return Value

An array where the k-th term is the residual associated with the k-th data point (i.e. (x[k],y[k])).

Remarks

Further Details

Recall that the residual of the i-th observation (i.e. data point) is the difference between the observed value of the dependent variables and the value of the dependent implied from the regression equation. That is, for the i-th observation the corresponding residual is: yi - Ri, where yi is the observed value of the dependent variable and Ri is the corresponding value of the dependent variable implied by the (fitted) regression function.

Preconditions

Please note that before this method is called you must have already performed the following tasks:

  1. Set the Fitting Function using SetFunctionBasis
  2. Fit the function using SetGeneralFit

See Also

GeneralLinear Class | WebCab.COM.Statistics.CurveFitting Namespace