1. Explain logistic regression. Give a use case of logistic regression.
Logistic regression is a statistical method used for binary classification, where the
outcome or dependent variable is categorical and has two possible values (usually 0
and 1). Despite its name, logistic regression is used for classification rather than
regression tasks
In heart disease prediction analysis project, logistic regression is applied to estimate the
likelihood of a patient having heart disease using factors like age, sex, cholesterol levels, and
other pertinent variables.