COURSE 03L1100% FREE
Verified 2026-08-10

Linear and logistic regression

**Linear regression** predicts numbers with a weighted sum. **Logistic regression** predicts class probabilities with a sigmoid on a weighted sum—still a workhorse classifier.

What it is

Linear regression predicts numbers with a weighted sum. Logistic regression predicts class probabilities with a sigmoid on a weighted sum—still a workhorse classifier.

Why it matters

Best first model for many problems: fast, auditable coefficients, strong baseline.

How it works (plain)

Fit weights to reduce error (squared loss or log loss) with regularization. Check residuals and calibration.

Try it

Predict a simple numeric target from one feature on a spreadsheet; then try a binary label with logistic intuition.

Myths

⚠️ Myth: Linear models can’t be useful in the deep learning era.
✓ Reality: They win on small data, speed, and interpretability needs.

Sources