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 d features always has d+1. A non-parametric model grows more complex as the data grow. k-nearest neighbours (k-NN) keeps all n training points.

Steps

  1. Parametric: assume a fixed form with a parameter vector θ of fixed length p. After training you can throw the data away. Examples: linear regression, logistic regression, Gaussian naive Bayes.
  2. Non-parametric: the number of effective parameters grows with the number of training points n. Examples: k-NN, kernel density estimation, decision trees grown until every leaf is pure, kernel SVMs (which keep their support vectors), Gaussian processes.
  3. 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

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?