# Linear Regression

## Description

The Linear Regression is a smoothing functions that works by preforming linear least squares regression over a moving window. It then uses the linear model to predict the value for the current bar.[1]

## Syntax

${\displaystyle fx=BT\_I\_LINREG(Input1,Period)}$