- Linear regression is a way in which we can estimate the values of datapoints beyond as well as in the bounds of the dataset we train the model (in this case, the line) off of.
- \[y(x) = y_i + (\frac{(y_{i+1}-y_i)(x-x_i)}{(x_{i+1}-x_i)})\]
- above, where x_i….x_n are the x values and correspondingly for y
- So let’s see the dataset we will be working on and then the implementation of linear regression.