What do you understand by logistic regression?

logistic regression predicts the probability of your sample belonging to one classification versus another. Although it can be used for multivariable classification, it is a a great tool to use for binary classification problems because it operates on probability. The output value in logistic regression is a numbered classification, but before the classification is given, the ACTUAL output is a numerical probability in the range of 0 to 1. Based on the probability, a classification of 1 or 0 will be given. The algorithm essentially rounds the value to give a classification; 0 being your negative class and 1 being your positive class.

ref: https://medium.com/swlh/what-is-logistic-regression-62807de62efa