There's more...

Well, we performed simple linear regression, but how do we find out the performance of our model? There are various ways to do this; statistically, we can compute R2 or pide our data into train and cross-validation sets and check the accuracy (the loss term) for the validation set.