Logistic Regression is a supervised machine learning algorithm. Logistic Regression is used to predict the outcome of a categorical dependent variable. So the outcome should be discrete/categorical like 0 or 1, Yes or No, True or False, High And Low. — How Logistic regression differs from Linear regression? Since we need to classify our data in a categorical form, linear regression gives the outcome within a range . Logistic regression fulfills this categorical outcome by giving us the outcome in either 0 or a 1, with the help of a sigmoid curve.