Linear regression is an approach for modeling the relationship between one dependent variable and one or more independent variables. Algorithms to minimize the error are OLS (Ordinary Least Square) Gradient Descent and much more. Let me know if anything is required. Ping me at google #bobrupakroy