Question
· Mar 6, 2021

What is the difference between linear regression and logistic regression?

When we have to predict the value of a categorical (or discrete) outcome we use logistic regression. I believe we use linear regression to also predict the value of an outcome given the input values.

Then, what is the difference between the two methodologies?

Discussion (1)0
Log in or sign up to continue

In summary, linear regression seeks the correlation between two numerical variables and logistic regression can have numerical or categorical variables. Logistic regression is used when the answer to your problem can be categorized. Ex: which employees are more likely to leave the company? In this case this question is a binary answer...classifying, either the employee leaves or stays and the model will separate these two blocks and you can evaluate through the confusion matrix. Hope this helps. Helberth