Chapter 1: Classical ML
Fitting a line: what 'best fit' means and how to read the slope
A line can miss several house prices in different directions. You need one score to compare those misses. Interviews ask what that score means.
What you will learn
- Say what least squares minimizes and read a fitted slope
Key terms
- feature
- an input used to make a prediction
- slope b
- the multiplier that controls a line’s tilt
Prerequisites
Take Framing: what to predict, for whom, when, and what to beat first. It comes right before this lesson in the course.
Where this lesson picks up: You fixed what to predict and the baseline to beat. How can you compare two lines for that task?
What comes next
Can we find the best line exactly and describe its typical miss?
Next lesson: The exact best line: two equations, and MAE
More lessons in this part
- Welcome to Classical ML: a model from start to finish 7 min
- Framing: what to predict, for whom, when, and what to beat 24 min
- The exact best line: two equations, and MAE 20 min
- From a line to a probability: the sigmoid 7 min
- Training logistic regression: log loss, its gradient, and why not squared error 7 min
- Thresholds, precision and recall: the cut-off is a product decision 16 min
- Honest splits and leakage: random, group and time-based 18 min
Take the lesson
Short cards, one idea at a time, with quick checks as you go.