Machine Learning

Linear Regression

Objective

Fit the line that has the least sum of squares known as the Least Squares Regression Line.

The distance from a line to the data point is called a residual.

Types of Linear Regression

Simple Linear Regression

Multiple Linear Regression

Prediction Function

Loss Function

The error or difference between the predicted value and the true value .

In Linear Regression, the Mean Squared Error (MSE) is used which calculates the average of the squared errors between the predicted values and the actual values .

Gradient descent is utilized to find the optimal parameters i.e. coefficients that makes the line the most fit to the data.