WebCab Probability and Statistics for .NET v3.3 Demo

CorrelationStateful.Residuals Method 

Determines the residual for a given pair of points within the current data set in accordance with the regression line constructed using LeastSquaresRegressionLineX.

public double Residuals(
   int index
);

Parameters

index
The index of the pair of points within the current data set. The indexing of the pairs of points within the data set starts from 0; and hence 0 corresponds to the first pair of points, 1 to the second pairs of point and so on.

Return Value

the residual for a given pair of points within the current data set.

Remarks

Recall that the residual is the variation of the second variable (i.e. Y) around the regression line.

See Also

CorrelationStateful Class | WebCab.Libraries.Statistics.Correlation Namespace | residualsAverage