Professional Documents
Culture Documents
From a machine learning context, it is the simplest model one can try out on your data. If you
have a hunch that the data follows a straight line trend, linear regression can give you quick
and reasonably accurate results.
Simple predictions are all cases of linear regression. We first observe the trend and then
predict based on the trend e.g. How hard you must brake depending on the distance of the car
ahead of you.
Hence it is important to understand that even though linear regression can be the first attempt
at understanding the data it may not always be ideal.
We plot our dependent variable (y-axis) against the independent variable (x-axis)
We keep changing the direction of our straight line until we get the best correlation
Yi= Bo + BiXi
Bo = Y intercept
Bi = Slope