Non-parametric vs Parametric Densities
Parametric and Nonparametric Densities: How Much Structure to Assume, and What It Costs
Every density estimate rests on an assumption about how large the set of candidate densities is. That single choice - how big to make the candidate set - is what separates parametric from nonparametric work, and almost every practical consequence follows from it.
The defining difference is the size of the model
A parametric density model asserts that the true density belongs to a family {f(⋅;θ):θ∈Θ} with Θ⊆Rp for some fixed, finite p. Normal with θ=(μ,σ2) and p=2; exponential with θ=λ and p=1; gamma with p=2. Once θ is estimated, the whole density is determined everywhere, including in regions where no observations fell.
A nonparametric density model asserts only a weak structural restriction - typically that f is a density and is reasonably smooth - and lets the estimate be determined by the observations. The model is infinite-dimensional, which is what "nonparametric" really means.
The name is misleading in one respect: such procedures do have tuning quantities, most importantly a bandwidth, and those are not the same kind of object as a model parameter.
The standard example is the kernel density estimator
which places a small bump of width h at each observation and adds them up. A histogram is the same idea with a rectangular kernel and fixed bin edges.
What the assumption buys, and what it costs
If the parametric family is correct, it is hard to beat.
Maximum likelihood is consistent and asymptotically efficient under the usual regularity conditions - an identifiable parameter lying in the interior of Θ, with a smooth likelihood and nonsingular Fisher information - and under those conditions the mean squared error of a parameter estimate falls like n−1.
Correct specification alone is not enough: for the Uniform (0,θ) family the maximum likelihood estimator θ^=maxiXi has mean squared error 2θ2/{(n+1)(n+2)}, of order n−2 rather than n−1.
The whole sample informs every part of the curve, so the tails are estimated even where data are sparse, and summaries such as quantiles or exceedance probabilities can be derived, sometimes in closed form and otherwise numerically.
If the family is wrong, the asymptotic result has conditions. Under suitable regularity and moment conditions, and when an identifiable Kullback-Leibler minimizer exists in the fitted family, a misspecified maximum-likelihood fit converges to that pseudo-true member, not to the true density.
A minimizer is not guaranteed: for iid positive observations with infinite mean, an exponential fit has λ^=1/Xˉ→0, a boundary point outside the usual rate space λ>0. The projection statement does not apply in that case.
When the minimizer exists, the fitted density can remain different from the truth while parameter standard errors shrink at the usual n−1/2 rate under the corresponding regularity and moment conditions.
More data can tighten uncertainty around a misspecified fit, but do not remove model error; extra sample size can make diagnostics more powerful, including a goodness-of-fit test or comparison against a flexible estimate.
That is why a parametric choice should be justified by a mechanism and checked against the data.
The nonparametric estimator is consistent under much weaker conditions on the shape of f, so the shape it reports is eventually the true shape - provided the sampling, smoothness and bandwidth assumptions hold.
The bandwidth condition is the one that bites: consistency requires h→0 with nh→∞, and a bandwidth held fixed as n grows converges to the smoothed density f∗Kh rather than to f. It pays for this in rate.
For a kernel estimator of a smooth univariate density the mean integrated squared error is minimised by a bandwidth of order n−1/5, and the resulting error falls like n−4/5 - slower than n−1.
In d dimensions the rate degrades to n−4/(4+d), the curse of dimensionality, which is why nonparametric density estimation is routine in one or two variables and rarely attempted in ten.
The bias-variance structure explains the tuning. Roughly, the bias of f^h(x) grows like h2f′′(x) while its variance falls like 1/(nh). A small bandwidth gives a spiky, high-variance estimate that chases individual observations; a large one oversmooths and can erase a genuine mode. Kernel shape matters little; bandwidth matters a great deal.
Worked example: a rule-of-thumb bandwidth
Balancing those two terms for a roughly bell-shaped density gives the familiar rule h≈1.06σ^n−1/5. With n=32 observations and σ^=5.0, note that 321/5=2, so
Two features of that formula are worth internalising. The exponent is −1/5, not −1/2: bandwidth shrinks slowly, so quadrupling the sample barely narrows the bumps.
And the rule is calibrated for a single smooth peak, so applying it to strongly skewed or clearly multimodal data may oversmooth and should be checked against the resulting curve; that is a starting value, not a final answer.
Choosing a framework
Three questions usually settle it.
- Is there a mechanism? A memoryless failure process argues for an exponential family; counts of rare independent events argue for Poisson. A mechanism is a reason; resemblance in a histogram is weaker evidence.
- How much data is there? For estimating density shape, a flexible estimator has little to work with in a sample of a few dozen, while a defensible parametric model borrows strength across the range. With thousands, the slower density-estimation rate is affordable. A summary target such as a mean can often be estimated directly without fitting a density.
- What is the target? If the goal is a summary functional such as a mean or a median, a distribution-light approach often suffices. If the goal is the shape - is it bimodal, is there a shoulder, where does the mass sit - then a family that cannot express the feature under investigation cannot answer the question. Fitting a unimodal family and reporting "no second mode" is circular. Modes describe density shape rather than cause or group membership: two modes alone do not establish distinct biological subgroups or show that two production lines caused the pattern, while overlapping groups can yield one mode.
There is also a middle ground worth knowing exists: semiparametric models specify a finite-dimensional part of interest and leave the rest unrestricted, which is often the practical compromise.
Three corrections
- "Nonparametric means assumption-free." It means the model is not finite-dimensional. Independent sampling, smoothness, a sensible bandwidth and adequate behaviour at boundaries are all still assumed.
- "Nonparametric means no parameters to choose." The bandwidth choice is consequential and is usually the dominant analyst decision.
- "A large sample protects against a wrong family." It does the opposite to the interval: bias stays put while the standard error shrinks.
A researcher fits a one-parameter exponential density by maximum likelihood to measurements from a positive-valued two-component mixture with two well-separated modes and a finite mean. The sample is then enlarged from several hundred to several hundred thousand observations. What happens to the fitted density and to the reported uncertainty?
A process engineer has 5,000 measurements of a component dimension and wants to test whether the density has two modes. That pattern could be consistent with two production lines using different settings, but it would not establish that explanation by itself. Which analysis strategy is best justified?