Foundations of Regression

Linear and logistic regression, sigmoid, decision boundaries, and MLE vs SSE intuition.

Updated 24 days ago

Foundations of Regression

This course covers linear regression, logistic regression, the sigmoid, decision boundaries, and MLE (why not SSE for probabilities).

Course mapHover any lesson to see why it matters

Prerequisites

High School Algebra & Basic Calculus

Linear equations, slope-intercept form, derivatives, chain rule

Python & NumPy

Basic programming, array operations, for loops

Lessons

01Beginner

Linear regression: lines, SSR & gradient descent

Find the line that minimises prediction error

02Beginner

Why logistic regression?

Linear outputs break classification; you need bounded probabilities

03Beginner

The sigmoid: secret sauce of logistic regression

Sigmoid squashes any number into (0, 1)

04Beginner

Decision boundaries

The boundary where P(y=1) = 0.5 is a line in feature space

05Intermediate

Intuition behind logistic regression

SSE fails for probabilities; MLE creates a convex objective

06Intermediate

Log-likelihood instead of squared error

Bernoulli likelihood → log-likelihood → binary cross-entropy loss

Unlocks

Deep Neural Networks

Stack nonlinearities and repeat gradient descent at scale

Multi-class classification & softmax

Extend binary ideas to K > 2 classes

Test your understanding

Prof is ready

Prof will ask you questions about Foundations of Regression — not explain it. You'll be surprised what you don't know until you have to say it.