In Chapter 1, Getting Started with Regression, we understood the concept of regression through the basic principles that govern its algorithms. Moreover, we were been able to discover the different types of regression that make it a real family of algorithms that can solve the most varied types of problems. In this book, we will learn more about all of them, but for now, let us begin with the basic concepts from the simpler algorithm, as indicated by its name: simple linear regression.
As we will see, simple linear regression is easy to understand but represents the basis of regression techniques; once these concepts are understood, it will be easier for us to address the other types of regression. To begin with, let's take an example of applying linear regression taken from the real world.
Consider some data...