juniorLogistic Regression
How does Logistic Regression differ from Linear Regression?
Updated May 17, 2026
Short answer
Linear Regression predicts continuous values, while Logistic Regression predicts probabilities for classes.
Deep explanation
Linear Regression uses least squares optimization, while Logistic Regression uses maximum likelihood estimation and sigmoid transformation.
Real-world example
House price prediction uses linear regression; spam detection uses logistic regression.
Common mistakes
- Using Logistic Regression for continuous outputs.
Follow-up questions
- Why can't linear regression classify effectively?
- What loss function does Logistic Regression use?