Learning from data
Using examples to fit a model that generalises to new, unseen cases.
Learning from data means we assume there is some unknown function that maps inputs to outputs, . We never see directly — only a finite set of examples . The learning algorithm searches for a model that approximates .
Three ingredients are always present: a model class (the family of functions we allow, e.g. all straight lines), a loss that measures how wrong a prediction is, and an optimisation procedure that picks the member of the model class with the smallest loss on the data.
The real goal is not to do well on the examples we have — memorising them would do that — but to generalise: make good predictions on new inputs drawn from the same source. Everything about validation sets, regularisation and model selection exists to protect generalisation.
Formula to remember
SIR model
Flow between Susceptible, Infected and Recovered compartments.
- transmission rate
- recovery rate
- population size