Machine learning is not so complex, it can be explained in a simple way. Take for instance we have a set of points as shown below.

We call the numbers that go from left to right as X-axis and the numbers that go from bottom to top as the Y-axis. Well, that how we name graphs.

In the above graph, the X-asis goes roughly from 0 to 5, and the Y-axis goes roughly from 0 to 25.

Now let’s draw a line as shown:

It has some slope. Does it kind of fit the dots? No. It strays far away.

Now let’s draw a line with another color, a purple one say, It’s lifted more than the red one:

Is it more near to the blue points than the red one? Yes. It is.

Now let’s draw a line with a green color, whose slope is lesser than the red line:

As we can see, its worst, it strays away from the blue points more than any other line.

We humans have a excellent visual system that says to us in a jiffy that the purple line is more close to the blue dots. But for a computer we must do some tricks for it to recognize it automatically. In subsequent blogs, we will see how to do it. That it for now!!!