Top 5 Difference between Linear Regression and Logistic Regression

Subscribe

Dhiraj K
1 min readMar 22, 2019

--

  1. In the case of Linear Regression, the outcome is continuous while in the case of Logistic Regression outcome is discrete (not continuous)
  2. To perform Linear regression we require a linear relationship between the dependent and independent variables. But to perform Logistic regression we do not require a linear relationship between the dependent and independent variables.
  3. Linear Regression is all about fitting a straight line in the data while Logistic Regression is about fitting a curve to the data.
  4. Linear Regression is a regression algorithm for Machine Learning while Logistic Regression is a classification Algorithm for machine learning.
  5. Linear regression assumes Gaussian (or normal) distribution of the dependent variable. Logistic regression assumes the binomial distribution of the dependent variable.

You may like to understand how to implement Linear Regression From Scratch in Python

You may like to understand how to implement Logistic Regression From Scratch in Python

--

--

Dhiraj K

Data Scientist & Machine Learning Evangelist. I like to mess with data. dhiraj10099@gmail.com