Simple Linear regression is a type of supervised machine learning algorithm(This algorithm is used when we have both input & output columns in our dataset).
It is easy to use and understand.
For using Simple Linear Regression we can use the sklearn library.
Simple linear regression algorithm is used when we have only one input column in our data set.
Simple linear regression draws a best fit line which passes closely from every point in a data set.
Y = mx + c
For finding the value of m & b we have two methods :
1. Closed form Solution (Ordinary Least Square)
In this we can create an mathematical expression.
2. Non-Closed form Solution (Gradient Descent)
Gradient Decent is an optimization ( achieve best performance) algorithm.
When an differentiable function is given this will return the minimum value.
It is an iterative algorithm.
Comments
Post a Comment