Logistic regression is a fundamental supervised learning algorithm used to predict the probability of a categorical, binary outcome (such as yes/no, 0/1, or pass/fail). Unlike linear regression, which outputs continuous numbers, logistic regression applies the sigmoid function to map predicted values to a strict range between 0 and 1.



