What is the difference between a parametric and a non-parametric model, with one example of each?
Foundations, Learning setup
Level L1 Beginner. Length Short. Nature Th Theoretical.
What's being asked
Whether you know what “non-parametric” actually means and what trade-off it brings.
Key idea
A parametric model has a fixed number of parameters, however much data you have. Linear regression with features always has . A non-parametric model grows more complex as the data grow. k-nearest neighbours (k-NN) keeps all training points.
Steps
- Parametric: assume a fixed form with a parameter vector of fixed length . After training you can throw the data away. Examples: linear regression, logistic regression, Gaussian naive Bayes.
- Non-parametric: the number of effective parameters grows with the number of training points . Examples: k-NN, kernel density estimation, decision trees grown until every leaf is pure, kernel SVMs (which keep their support vectors), Gaussian processes.
- State the trade-off. Parametric models are fast and need less data, but they are biased if the assumed form is wrong. Non-parametric models are flexible, but they need more data, are slower at prediction time, and suffer more in high dimensions.
Common mistakes
- Saying non-parametric means “has no parameters”. k-NN has the hyperparameter , and its fitted model is the whole training set.
- Calling a neural network non-parametric. A fixed architecture has a fixed (if huge) number of weights.
How long your answer should be
3–5 sentences with two examples.
Last checked on 4 December 2026.
Read this
Previous in Foundations: What is empirical risk minimisation?
Next in Foundations: What is the difference between semi-supervised learning and self-supervised learning?