Constructs the regression line of X
on Y
using the method of least squares, for the set of pairs of points: (xValues[0], yValues[0])
, (xValues[1], yValues[1])
,.
an array d = d[0], d[1]
, with two elements, where the regression line will be given in functional form by the following formula: X(y)=d[0]*Y+d[1]
, where X
is the variable corresponding to the first element (i.e. the xValues
) and Y
is the variable corresponding to the second element (i.e. the yValues
).
.. , (xValues[n], yValues[n])
. That is,
the regression line using the least squares method is constructed when the
first element of the pairs from which the data set of constructed is plot against the second
elements of the pairs.
Correlation Class | WebCab.COM.Statistics.Correlation Namespace | Calculates the regression line of Y on X using the method of least squares.