### In-depth Explained Simple Linear Regression from Scratch - Part 1

In my opinion, most Machine Learning tutorials aren’t beginner-friendly enough. It very math-heavy or it doesn't help you with the algorithms behind it. In this post, we are going to do the

The

**simple Linear Regression from scratch**. We will see the mathematical intuition behind it and we write the code from scratch + test it and I'm super excited to get started!!**Ready?**Let’s jump in.**Let's get the intro done!**The

**simplest**form of the*linear regression model*is also the**linear function**of the input variables. However, we can obtain a much more useful class of functions by taking linear combinations of a fixed set of nonlinear functions of the input variables, known as basis functions. Such models are linear functions of the parameters, which gives them simple analytical properties and yet can be nonlinear with respect to the input variables.**The Motivation**For most applications, knowing that such a linear relationship exists isn’t enough. We’ll want to understand the nature of the r…