10 Machine learning
Machine learning builds models that make predictions from data. Rather than writing down a mathematical model of how the data arose, we let an algorithm search for patterns that predict well, and then check those predictions against data the algorithm never saw.
This chapter covers three kinds of model. The first two are supervised, meaning the algorithm learns from examples whose answers we already know: a classifier predicts which category an observation belongs to, and a regression predicts a number. The third is unsupervised, working without any answers at all and instead looking for structure that is already present in the data.