Q11Machine Learning
Question
4 marks
Explain Logistic Regression. How does it differ from Linear Regression?
Answer
Logistic Regression is used for binary classification, whereas Linear Regression is used for continuous prediction.
Logistic Regression applies the sigmoid function to the linear combination of inputs to output a probability between 0 and 1. Linear regression, on the other hand, fits a straight line to the data to predict a continuous numerical value. Logistic regression uses cross-entropy loss, while linear regression uses mean squared error.