Day 1 - Implementing Linear Regression In Python from Scratch
Hello guys,
This is day 1 of my #100DayOfMLCode challenge. Today, I studied the importance of Machine Learning and how we use it to solve real-life problems. I also studied one of the most important algorithms of Machine Learning is Linear Regression.
Linear regression:-
Linear regression is a linear approach to modeling the relationship between a scalar response (or dependent variable) and one or more explanatory variables (or independent variables). A line can be represented by the equation, y = m*x + c where y is the dependent variable and x is the independent variable.
Source(Wikipedia)
Linear regression is of two types:-
1. Simple Linear Regression
2. Multiple Linear Regression
Code:-