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.

20 minInteractive lessonChapter 1: Classical MLLesson 2 of 25

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

Take the lesson

Short cards, one idea at a time, with quick checks as you go.