Data and Generalization

This chapter is the heart of CO-1 and CO-2. If you understand it deeply, every model you meet later will make sense, from a decision tree to a billion-parameter network. The question is simple to ask and surprisingly subtle to answer: how can a model that has only seen the past be trusted about the future?

The plan:

Bolt's problem

Bolt has a log of past deliveries: distance (km) and minutes taken. We want a function that predicts minutes from distance for future orders. The data is noisy: the same 2 km trip took 11 minutes once (empty paths) and 16 minutes another time (the lift was broken). Our model must capture the pattern and ignore the noise. Distinguishing the two is the whole game.