Subtract the diagonal variance contribution from the derivative estimate's squared norm, then insert the result into asymptotic mean integrated squared error. The expected curvature estimate equals , apart from a negligible finite-n term. This makes the resulting criterion asymptotically correct even though it is not an exactly unbiased estimate of integrated risk. Under standard conditions its selector is ratio-consistent with the optimal bandwidth and has relative fluctuation order .
For a nonnegative symmetric unit-integral kernel for density estimation with and , the canonical scaling satisfies . Since and , the unique scale is . Consequently its asymptotic mean integrated squared error is , where is invariant under kernel rescaling. The leading optimal smoothing bandwidth becomes , independent of the kernel shape. Unit second moment is a different normalization and does not have this separation property.
Epanechnikov kernel 2026-10-14
The Epanechnikov kernel for density estimation is a nonnegative symmetric truncated parabola with integral one, , and . It has the smallest optimized asymptotic mean integrated squared error among nonnegative second-order density kernels, up to rescaling. Its canonical kernel has scale and support .
The integrated squared second derivative measures a smooth density's curvature in L2. It supplies the leading integrated squared bias constant of a second-order kernel density estimator. For nonzero second moment , the asymptotic mean integrated squared error has bias term , so greater curvature calls for a smaller smoothing bandwidth.
Fix the second moment . Put and . For every nonnegative unit-integral kernel for density estimation with the same second moment and finite , the mass and second-moment constraints give . Outside , and , so . Expanding the square gives , with equality only when almost everywhere. Since is scale invariant, rescaled Epanechnikov kernels minimize the optimized asymptotic mean integrated squared error over all such second moments. This conclusion concerns nonnegative second-order kernels; signed higher-order kernels obey a different bias expansion.
A kernel for density estimation is an integrable function K of unit integral, ordinarily nonnegative and centered. Square integrability is needed for integrated variance; a symmetric second-order kernel for density estimation also has and finite nonzero second moment . Its scaled form is , and the kernel density estimator is
Higher-order signed kernels are possible, but need not give a nonnegative probability density function estimate.
The mean integrated squared error is . Put . Independence gives the pointwise mean and variance . Integrating, use and Fubini to obtain . The bias-variance decomposition proves the exact formula
Equivalently this is . These identities assume the displayed integrals are finite; they are exact, rather than a small-smoothing bandwidth expansion.
For a symmetric second-order kernel for density estimation, Taylor expansion gives leading bias , and the leading integrated variance is . Thus the asymptotic mean integrated squared error balances inverse smoothing bandwidth against fourth-power bias, with optimal smoothing bandwidth . Its appearance of the integrated squared density curvature motivates the scale comparison.
For , , two differentiations give . A change of variables therefore gives , which tends to zero as if the original curvature integral is finite. The distribution with probability density function is that of X divided by a, so . Consequently
This scale-invariant density curvature measures shape without dependence on the units used to measure X.
For the final minimization, write and use the triweight kernel on , zero outside. Integration gives total mass one, mean zero and variance . Its value and its first two derivatives vanish at both endpoints, so its extension is twice continuously differentiable. On the interior,
In particular and .
Put . The mass and moment constraints give , since both means vanish and their variances match. If the claim is immediate; otherwise expand the squared norm and integrate its cross term twice by parts over . The first endpoint term vanishes because , but the next one must be retained:
For the second equality use the zero mass and second moment of e and outside the support. All terms in the last expression are nonnegative, including the endpoint values of a probability density function. It follows that
This proves that the triweight density minimizes integrated squared curvature under the specified constraints. Equality forces ; a globally affine integrable difference of probability density functions is zero, so equality occurs only at .
Write . The kernel density estimator with bandwidth is
Sufficient conditions are that be a nonnegative symmetric probability density function with and finite nonzero second moment , and that , . Symmetry and the second-moment assumption give . The expectation is a convolution:
Taylor's theorem with integral remainder gives
The zeroth-order term integrates to , and the first-order term vanishes. The second derivative is bounded and continuous, so dominated convergence, with dominating function proportional to , yields
Combining this with the supplied leading variance gives the asymptotic mean squared error
When and , its derivative is . It changes sign exactly once, giving the pointwise optimal kernel bandwidth
Positivity of is needed for this positive interior optimum. The printed condition alone does not ensure it. For instance, is a normalized bounded probability density function with bounded continuous square-integrable second derivative, but and . At this point the displayed leading variance vanishes and the two-term AMSE has no positive interior minimizer; finer variance terms are needed to determine an appropriate bandwidth. The formal formula there gives zero, which does not satisfy the bandwidth assumptions.
For integrated error, the same expansion holds in : translation continuity of applied to the integral remainder gives
Indeed Minkowski's integral inequality bounds the norm of the difference, divided by , by the integral of ; each translated difference tends to zero and is bounded by . This proves the claimed integrated bias expansion without assuming a uniform pointwise remainder over the whole real line.
If , direct integration of the variance gives
The last term is because is bounded and integrable, hence square integrable, and convolution with a probability density function does not increase its norm. It is negligible compared with . Thus the asymptotic mean integrated squared error and its minimizer are
Here : otherwise the continuous second derivative vanishes everywhere, making affine, impossible for a probability density function on the whole real line.
Now take the standard normal density . Differentiation gives . Gaussian integration gives
The kernel constants cancel from the bandwidth ratio. At ,
Put . The logarithmic derivative of is . On the function increases, giving its minimum at , with value one. On it decreases up to and then increases, giving its minimum . Thus the global minimizers are , and the normal-density local-to-global bandwidth ratio is
The ratio diverges at the two inflection points , where the second-order pointwise bias approximation vanishes and needs a higher-order replacement.
Figure 1.
Normal-density pointwise bandwidth relative to the integrated-error optimum; minima at plus and minus square root of five
. Details.
In kernel density estimation, take a kernel for density estimation that is nonnegative, symmetric, and has integral one, finite , and finite . Its smoothing bandwidth gives and the kernel density estimator
from an independent and identically distributed sample with probability density function . Nonnegativity and unit mass make the estimate itself a probability density function. We compare kernel for density estimation shapes by their optimized mean integrated squared error, rather than by their performance at an arbitrarily common numerical smoothing bandwidth.
For the usual second-order theory, assume, for example, that belongs to the Sobolev space and , and let , . The expectation is the convolution . The vanishing first moment of the symmetric kernel for density estimation and the integral Taylor remainder give
Continuity of translations in the L2 norm, with domination by , shows that in the L2 norm. Hence the integrated squared bias of a kernel density estimator is
By independence, the exact integrated variance of a kernel density estimator is
Indeed the integrated second moment of a single summand is , and its integrated squared mean is . The latter quantity is bounded by , by Young's convolution inequality, so its contribution is . The bias-variance decomposition of mean squared error therefore yields the leading criterion
This asymptotic mean integrated squared error displays the bias-variance tradeoff: a small smoothing bandwidth increases integrated variance, while a large one increases squared bias of an estimator.
Differentiating the asymptotic mean integrated squared error with respect to gives . It changes sign once, from negative to positive, so its unique minimum is
At this minimum the integrated variance term is four times the squared bias of an estimator term. Substitution gives
Thus the leading rate is , and the shape comparison reduces to minimizing .
There is an essential scale ambiguity: if , then . Changing the scale of the kernel for density estimation merely changes the numerical convention for the smoothing bandwidth. Moreover
A comparison at the same raw is therefore not a fair comparison of shape. One can normalize the second moment to one, but that does not make the optimal smoothing bandwidth independent of shape.
The canonical kernel for density estimation instead chooses the unique scale
It satisfies , and so
Consequently all canonical kernels share the same leading optimal bandwidth . Only the multiplicative constant depends on shape. This is precisely the separation of shape choice and scale choice that makes the canonical kernel normalization useful. For an original unscaled kernel for density estimation, its corresponding optimal smoothing bandwidth is .
To prove optimal shape, scale a candidate kernel for density estimation to have second moment one. Let and
Direct integration gives , , and . Thus is a rescaled Epanechnikov kernel. For any admissible with the same mass and second moment,
Outside , and , because . The integral inside is therefore nonnegative, and multiplying by gives . Expanding the square now proves
Equality forces almost everywhere. At fixed second moment, minimizing is equivalent to minimizing . Since is scale invariant, this proves the optimality of the Epanechnikov kernel over all nonnegative symmetric second-order kernels for density estimation, including the equality case up to rescaling.
In its usual scale, the optimal Epanechnikov kernel is
Its canonical scale is , giving
The optimal Epanechnikov kernel shape is therefore a truncated parabola, rather than a particular support radius. The canonical kernel and unit-second-moment version represent the same shape but different scale conventions.
The numerical gains over other reasonable kernels for density estimation are modest. Define asymptotic relative efficiency against the optimal Epanechnikov kernel by the sample-size fraction giving the same optimized leading mean integrated squared error:
For the Gaussian density kernel , and , so its efficiency is . For the uniform smoothing kernel , and , giving efficiency . The Gaussian density kernel is infinitely smooth, whereas the optimal Epanechnikov kernel has compact support and allows each observation to affect only a finite window. Such computational and smoothness considerations may outweigh a small leading-efficiency difference.
In practice is unknown. A plug-in estimator estimates this roughness functional from a pilot estimate of the second derivative and substitutes it into the optimal smoothing bandwidth formula. Alternatively, Leave-one-out cross-validation minimizes
where uses the other observations. By independence, the expectation of the second term is , so . Thus it targets integrated error without knowing . The choice of smoothing bandwidth remains important: even for the optimal Epanechnikov kernel, setting multiplies the leading minimum error by .
The preceding optimum concerns nonnegative second-order kernels for density estimation and twice-smooth densities on the real line. Signed kernels of order ell can cancel higher moments for smoother densities and yield different rates, but may produce negative density estimates. A support boundary or a density jump also requires separate bias of a kernel density estimator analysis. These settings do not contradict the proved second-order optimality of the Epanechnikov kernel.
Iterating the recurrence yields
Thus every finite collection of the is a linear transformation of independent standard normal random variables, and has a multivariate Gaussian distribution. The expected values are zero. Independence of the gives
For , the recurrence writes plus a sum of future innovations independent of . Hence . The required vector law is
The covariance matrix is positive definite: the lower-triangular transformation from has nonzero diagonal entries . This also identifies a stationary autoregressive process of order one, with marginal density .
With the standard normal density as the kernel for density estimation, the two characteristic functions are and . The Gaussian random variable has mean zero and variance , so
This expression is real. Substitution in the given integrated covariance expression, followed by the Gaussian integral for , gives
To bound the total Gaussian autoregressive kernel variance correction, apply the mean value theorem to . For , the whole interval between and is bounded below by . Therefore
Summing the geometric series gives the uniform bound
It follows from the supplied variance identity that
The constant depends on the fixed , but not on or . In particular this applies to the requested shrinking-bandwidth regime; the covariance bound itself does not need .
All observations have the same marginal density , so dependence changes the variance but not the bias of a kernel density estimator: . Write and . For a smooth density with , the integrated variance of a kernel density estimator in the independent case is . A second-order Taylor expansion of the convolution gives in the L2 norm. Thus the bias-variance decomposition of mean squared error gives
The first two terms are the asymptotic mean integrated squared error. The additional dependence term is smaller than , so the leading optimal bandwidth and optimal rate are the same as for independent data:
Here both and are the standard normal density. Since , direct Gaussian integrals give
Consequently the explicit leading bandwidth is
At this bandwidth the leading integrated variance is four times the leading integrated squared bias, which is also a check on the minimization constant.