Some questions have a number as the answer: what will this house sell for, how long will this delivery take? Predicting a number is called regression. We have past examples where the answer is known, and we want a rule that guesses the answer for a new case.
Our example is four sold houses, with the size in square metres and the sale price in thousands of dollars: 40 m2 sold for 125, 60 m2 for 165, 80 m2 for 215 and 100 m2 for 275. A new 70 m2 house is about to be listed, and nobody has told us its price.
💡Good to know
Regression predicts a number. Classification, a later lesson, predicts a category instead.