WebCab Probability and Statistics Web Services for .NET v3.3 Demo

Correlation.Residuals Method 

Determines the residual for a given pair of points from the set of pairs of points: (xValues[0], yValues[0]), (xValues[1], yValues[1]),.

public double Residuals(
   double[] xValues,
   double[] yValues,
   int index
);

Parameters

xValues
The values of the first elements within the pairs.
yValues
The values of the second elements within the pairs.
index
The index of the element within the set of pairs for which the residual will be evaluated. The indexing of the pairs of points within the data set starts from 0; and hence 0 corresponds to the first pair of points (xValues[0], yValues[0]), 1 to the second pair of points (xValues[0], yValues[0]) and so on.

Return Value

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

Remarks

.. , (xValues[n], yValues[n]); in accordance with the regression line constructed using LeastSquaresRegressionLineX. Recall that the residual is the variation of the second variable (i.e. Y) around the regression line.

See Also

Correlation Class | Correlation Namespace | Evaluates the arithmetic average of the residuals.