What is OLS?

OLS stands for Ordinary Least Squares. The main objective of the linear regression algorithm is to find coefficients or estimates by minimizing the error term i.e, the sum of squared errors. This process is known as OLS.

This method finds the best fit line, known as regression line by minimizing the sum of square differences between the observed and predicted values.