Logistic regression is a statistical method used for binary classification tasks, where the outcome variable has two possible classes