If you haven't read my post on linear regression I invite you to do so here, but basically it is a method for modelling the relationship between variables and a target feature in a linear model. This modelling is done through learning weights for each supposing that our model looks something like this: