Linear regression Logistic regression
It is a regression model, which means it will give a non-discrete/continuous output of a function. This approach provides the value. For example: given x what is f(x) It is a binary classification algorithm, which means that here there will be discrete-valued output for the function. For instance: for a given x if f(x)>threshold arrange it to be 1 else group it to be 0.
It uses an ordinary method of least squares method to minimize the errors It uses maximum likelihood methods to reach the answer.
It gives an equation that is of the shape Y = mX + C, which means equation with degree 1. gives an equation which is of the shape Y = eX + e-X
BY Best Interview Question ON 24 Nov 2020