Linear Regression (Line of Best Fit) Calculator

Linear regression is a simple statistics model describes the relationship between a scalar dependent variable
and other explanatory variables. If there is only one explanatory variable, it is called simple linear regression,
the formula of a simple regression is y = ax + b, also called the line of best fit of dataset x and dataset y.

For Linear Equation: y = ax + b, formula to calculate the a and b is:

Where:

**x**: mean of x

**y**: mean of y

**x _{i}**: the ith number of x