# Intercept

Intercept-func

## Description

This function is used to calculate the intercept of the linear regression of the given curve, which is defined as:

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)) = ;

## See Also

Slope