Parametric vs Nonparametric Models
A parametric model commits to a fixed shape before seeing the data and just fills in a handful of numbers; a nonparametric model lets the shape itself grow with the data, trading a strong assumption for a need for far more examples to pin the shape down.
Prerequisites: Model Capacity and Complexity Control
Ask two architects to design a house. The first works from a fixed blueprint template with a few adjustable numbers — bedroom count, living room width — and once those are set, every other detail follows automatically from the template. The second starts with a blank site and lets the house's shape emerge from the plot's specifics, growing more elaborate the more requirements are added, with no fixed template capping the final complexity. Both can build good houses. The first needs far less information to start but is stuck with the template's shape even if it's wrong for this plot. The second matches any plot exactly but needs to see the full complexity of the situation before the design settles. That's parametric versus nonparametric modelling.
The defining test: does complexity depend on data size?
A parametric model assumes the relationship between inputs and output has a fixed functional form — linear regression, logistic regression, a Gaussian distribution with unknown mean and variance — described entirely by a fixed, finite number of parameters, decided before any data arrives. Linear regression on features always has exactly coefficients, whether trained on 50 rows or 5 million; more data refines the estimates of those same fixed parameters but never adds new ones.
A nonparametric model makes no such commitment to a fixed shape. A -nearest-neighbours predictor, a decision tree grown to full depth, or a kernel density estimate lets its effective complexity grow as more data arrives — a tree can add more splits, a nearest-neighbour method effectively has "one parameter per training point" in the sense that every stored example can influence a prediction. "Nonparametric" doesn't mean zero parameters; it means the number of parameters isn't fixed in advance and can grow without bound as data grows.
The left form is parametric: two numbers, and , fully determine the prediction at every possible , and no amount of extra data changes how many numbers there are. The right form is -nearest-neighbours: means "the training points closest to ," and the prediction is just their average . There is no fixed formula shape here at all — the prediction is defined entirely by which training points happen to be nearby, and the whole training set is effectively the "parameters."
A logistic curve like this is the entire hypothesis: pick two or three numbers (steepness, midpoint) and the whole function is nailed down everywhere, including regions with no data. A nonparametric method fitting the same data wouldn't commit to any smooth curve shape at all — it would let the fit wiggle to match local clusters of points, and adding more points could change the fitted shape in that region rather than just refining the same two or three numbers.
Worked example 1: fitting the same 6 points two ways
Six points: . A parametric linear fit finds the single best-fitting line through all six, say , minimizing total squared error — two numbers, and , and that's the entire model, whatever new you ask it about.
A nonparametric 1-nearest-neighbour fit instead just memorizes: predict for by finding the closest training point, , and returning its exactly, or predict for by returning the closer of or 's value. There are no coefficients to report at all — the "model" is just the six stored points and a rule for finding the nearest one. Where the line smooths straight through the data with a fixed slope, nearest-neighbour reproduces every local bump and jump exactly, including the possibly-noisy jump from to between and .
Worked example 2: how each behaves as data grows
Suppose the true relationship is a smooth curve with a bend the linear model can't represent — say . With 10 points, the linear fit produces a straight-line compromise, systematically off at the extremes and the middle — a shape mistake no amount of additional data of the same kind fixes, since the model only ever has two numbers. With 10,000 points, those two coefficients become precisely estimated, but the fitted line is still a straight line — precision improved, the shape mismatch didn't.
The nonparametric nearest-neighbour fit with only 10 points is noisy, doing worse than the line in this small-data regime. But with 10,000 points densely covering the range, its local averaging traces out the true curve closely, because there are now enough nearby points everywhere to average away noise while following genuine local curvature — something the two-number line structurally cannot ever do.
Parametric models trade flexibility for data-efficiency: a strong, fixed assumption about shape lets them work well with very little data, but that assumption is a hard ceiling if it's wrong. Nonparametric models trade the opposite way: essentially no shape assumption, but a correspondingly larger appetite for data before their extra flexibility pays off rather than just adding noise.
What this means in practice
Quant research defaults to parametric models — linear factor models, logistic regression for classification, GARCH for volatility — precisely because financial data is comparatively scarce relative to the number of independent observations a nonparametric method needs to reliably outperform a good parametric assumption. Nonparametric and semi-parametric methods (trees, kernel methods, nearest-neighbour approaches) earn their place specifically where a genuinely nonlinear, unknown-shape relationship is suspected and enough data exists to support the extra flexibility — high-frequency data, or pooled panels across many instruments, are common places this trade tips in their favor.
"Nonparametric" is often mistaken for "assumption-free" or automatically safer than a parametric model. It is not assumption-free — it assumes the relationship is locally smooth (nearby inputs have nearby outputs), which is its own strong assumption and can fail badly in regimes with discontinuities, like a market regime shift. And because a nonparametric model's effective complexity grows with the data, it is often far more prone to overfitting small or noisy samples than a correctly-specified parametric model would be — more flexibility is not automatically an advantage when data is scarce.
Related concepts
Practice in interviews
Further reading
- Hastie, Tibshirani & Friedman, The Elements of Statistical Learning, ch. 2.3, 6
- Wasserman, All of Nonparametric Statistics, ch. 1