How does logistic regression work?

Logistic regression (also called the logit model) a is a statistical method used to analyze a dataset with one or more independent variables determining the outcome. It measures the relationship between the dependent variable and independent variables(s) using the Logistic Function (Sigmoid) to model probability.

It’s used to model a binary outcome – a variable that can have only two possible values: 0 and 1.