Despite its name, logistic regression isn't used for regression at all, it's one of the most common algorithms for classification. It predicts the probability that something belongs to a particular category.