In this section, we are going to go through logistic regression, which is one of the widely used algorithms for classification.
What's logistic regression? The simple definition of logistic regression is that it's a type of classification algorithm involving a linear discriminant.
We are going to clarify this definition in two points:
-
Unlike linear regression, logistic regression doesn't try to estimate/predict the value of the numeric variable given a set of features or input variables. Instead, the output of the logistic regression algorithm is the probability that the given sample/observation belongs to a specific class. In simpler words, let's assume that we have a binary classification problem. In this type of problem, we have only two classes in the output variable, for example, diseased or not diseased. So, the probability...