Linear Regression Logistic Regression
Linear regression is used to predict the Logistic Regression is used to predict the
continuous dependent variable using a categorical dependent variable using a
given set of independent variables. given set of independent variables.
Linear Regression is used for solving Logistic regression is used for solving
Regression problem. Classification problems.
In Linear regression, we predict the value In logistic Regression, we predict the
of continuous variables. values of categorical variables.
In linear regression, we find the best fit In Logistic Regression, we find the S-
line, by which we can easily predict the curve by which we can classify the
output. samples.
Least square estimation method is used Maximum likelihood estimation method is
for estimation of accuracy. used for estimation of accuracy.
The output for Linear Regression must be The output of Logistic Regression must
a continuous value, such as price, age, be a Categorical value such as 0 or 1,
etc. Yes or No, etc.
In Linear regression, it is required that In Logistic regression, it is not required to
relationship between dependent variable have the linear relationship between the
and independent variable must be linear. dependent and independent variable.
In linear regression, there may be In logistic regression, there should not be
collinearity between the independent collinearity between the independent
variables. variable.
Difference between Linear Regression and Logistic Regression