Parametric vs. nonparametric learning
A fixed number of parameters versus models that grow with the data (e.g. k-NN).
A parametric model has a fixed number of parameters, no matter how much data you collect. Linear regression with features always has parameters. Parametric models make strong assumptions about the shape of , are fast to train and predict, and need less data — but they underfit if the assumption is wrong.
A nonparametric model's complexity grows with the data. k-nearest neighbours stores every training example; a decision tree can keep splitting as data grows; kernel methods keep one coefficient per training point. They make fewer assumptions and can fit complicated shapes, but need more data and more memory and are slower at prediction time.
Neural networks are technically parametric (a fixed number of weights), but they are so flexible that in practice they behave much like nonparametric models.
Formula to remember
SIR model
Flow between Susceptible, Infected and Recovered compartments.
- transmission rate
- recovery rate
- population size