Intercept
Description
This function is used to calculate the intercept of the linear regression of the given curve, which is defined as:
/math-c75b87bb81a8a965731448ed99a28db3.png)
where,
b is the slope which is defined as
,
and
are the means of x and y.
Syntax
double Intercept(vector vx, vector vy)
Parameters
vx
- Input vector for independent variable.
vy
- Input vector for dependent variable.
Return
Return the the intercept of the linear regression of the given curve.
Example
newbook; col(A) = data(1,5); col(B) = uniform(5); Intercept(col(A),col(B)) = ;