Machine Learning, Data Science, Machinelearningalgorithms, Ridge Regression, Python.
To understand how this happens and why we should use it, we will take a simple case. Suppose you have a very small data set of weight and size. We have just 2 training examples. If we fit a simple linear regression and plot it, we can see that this is a perfect fit. i.e no error. Suppose line is: