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.
For a normalized kernel for density estimation , with , the kernel density estimator is
It replaces each atom of the empirical measure by a translated, scaled copy of : averaging these small probability-density bumps gives a smooth approximation to the sampling density. Integral one is part of the probability-kernel convention; without it, the estimator generally targets .
The printed bandwidth assumption is insufficient for the claimed normal limit. The additional condition is needed at points with positive density. For a counterexample, take a normal distribution density , , the unit-width box kernel and . Then , but the probability that any observation lies in the window is at most . On the complementary event the estimator is zero, and . The limit in probability is therefore zero, whereas the stated normal limit has positive variance.
We now prove the intended pointwise central limit theorem for a kernel density estimator under , and . The first condition also follows from the last one. A mean value theorem bound, with , gives the bias of a kernel density estimator
Thus the bias multiplied by tends to zero.
The Lindeberg-Feller central limit theorem says that independent centered variables in each row of a triangular array have sum converging in distribution to if the sum of their variances tends to and, for every , the sum of their truncated second moments tends to zero. Put and . The independence hypothesis holds within each row. A change of variable gives
Continuity of at and the compact support and boundedness of justify the limit. Also , so the Lindeberg condition is eventually identically zero for every . The sum is exactly . Combining the centered limit with the negligible bias by the Slutsky theorem proves
If , the centered variance tends to zero, and the Chebyshev inequality proves the corresponding degenerate limit directly.
For , let be the supplied -quantile of this limiting normal distribution. Inverting the limiting central probability gives the confidence interval
Continuity of the limiting distribution gives asymptotic coverage . Equivalently, its half-width is under the stipulated oracle quantiles. A degenerate limit at does not by itself justify this nominal-coverage normal interval.
For a kernel for density estimation and smoothing bandwidth , the kernel density estimator is
We use the convention that a kernel of order ell has
The kernel for density estimation is integrable and can have negative values; requiring nonnegativity would prevent its second moment from vanishing. Some conventions additionally require a nonzero moment of order . The construction below covers that convention too.
The Legendre polynomial kernel construction uses the polynomial reproducing kernel at zero:
Every polynomial of degree at most has the expansion , since the displayed Legendre polynomials have those successive degrees and form an orthonormal basis of this polynomial space. Therefore
Taking proves all the required moment identities. Boundedness and compact support give every absolute moment and a finite L2 norm. If a nonzero moment of order is required, replace this kernel by
The lower moments are unchanged by orthogonality. If , then because otherwise would lie in the polynomial space of degree at most . Evaluating its full Legendre expansion at zero gives , so .
For instance, a simple kernel satisfying the moment conditions needed for three derivatives is
Its negative wings cancel its central contribution to the second moment.
Figure 1.
Signed kernel and cancellation of its second moment
. Details.
Here is the third-order pointwise kernel error bound. Write and , and use any square-integrable kernel with unit integral, first two moments zero and . A change of variables gives
By the Taylor theorem with Lagrange remainder,
The moment cancellations consequently give the uniform bias of a kernel density estimator bound
For the variance, independence and another change of variables give
The triangle inequality and Cauchy-Schwarz inequality now yield
Balancing against gives
The constant is independent of both and . The original PDF has exponent ; the converted TeX's is a transcription error.
To obtain the final parametric rate, we choose a flat-top kernel for density estimation. This kernel also satisfies all the preceding moment conditions, so a single kernel works for both constructions, with different bandwidth choices. With the Fourier transform convention , choose a real even function equal to one on and zero outside , and put
Such a cutoff is explicit: if for and zero otherwise, take . It is constant near zero, and its endpoint transitions are smooth. Repeated integration by parts shows that and all its derivatives decay faster than every power, so lies in the Schwartz space. The Fourier inversion and moment differentiation of the Fourier transform give
Thus this kernel can be used with for the preceding general bound.
For the sharper example choose the probability density function
To check this is a density and identify its Fourier transform, direct integration gives
The continuous value at zero is as displayed. This function is nonnegative and integrable, being bounded near zero and at infinity. Fourier inversion gives , and in particular . Differentiation of this compact frequency integral also shows that and are bounded. Since on the support of , the convolution theorem gives
Both sides are continuous, so the equality holds at every . There is therefore exactly zero bias of a kernel density estimator at bandwidth one, and the variance bound above gives
This is parametric-rate kernel estimation of a bandlimited density. A fixed bandwidth is appropriate because it reproduces this particular density exactly; a generic density would retain a nonzero smoothing bias.
For independent and identically distributed random variables sampled from a probability density function , a kernel density estimator with kernel for density estimation and smoothing bandwidth is
The usual kernel for density estimation is nonnegative; finite makes the integrated variance finite. The mean integrated squared error and its bias-variance decomposition of mean squared error are
The interchange is justified by the Tonelli theorem.
For the exponential distribution and the specified unit-width uniform kernel, put . The expected value is . Intersecting this interval with the positive half-line gives
On the true probability density function vanishes, whereas
Here for . This leakage across the support boundary proves the integrated squared bias from a density jump:
In particular, and suffice. The phenomenon differs from a smooth interior bias of a kernel density estimator: the order-one boundary error persists over a region of width proportional to .
By independence, . Integrating the first term and using yields
Also : the kernel density estimator mean is an average of translates of , so the Jensen inequality followed by the Tonelli theorem bounds its squared integral.
To optimize over every , we must establish that useful smoothing bandwidths approach zero, rather than optimize only a formal small- expression. An exact calculation supplies that justification. The autocorrelation integral of the exponential distribution density is
Averaging over the two uniform windows, or integrating the piecewise expression for , gives
These formulas show that is continuous on , is strictly positive there because on , and tends to as . Consequently, is bounded away from zero on for every . Its expansion agrees with the supplied .
The choice gives
Choose smoothing bandwidths within of the infimum. Their mean integrated squared error tends to zero, and nonnegativity of the integrated variance gives , hence . For any , eventually
The last step is the arithmetic-geometric mean inequality. Taking the lower limit and then matches the upper bound. Thus
The original PDF has this constant; the TeX aid's is a transcription error.
For a kernel for density estimation with integral one and a smoothing bandwidth , the univariate kernel density estimator is
Its expected value is
This is the convolution identity. It holds wherever the integral is defined, in particular everywhere for the bounded kernel used below. For a nonnegative kernel for density estimation, Tonelli theorem also gives the identity as an extended nonnegative integral. A signed kernel for density estimation instead requires absolute integrability for this interchange.
For the centred unit-width uniform kernel, substitute :
Put . The Taylor theorem with Lagrange remainder gives
The odd function term integrates to zero, while . Hence the bias of a kernel density estimator obeys
This is a second-order pointwise bias bound for kernel density estimation. Existence and boundedness of the second derivative suffice for the stated remainder; continuity of that derivative is not an extra assumption.
For concentration, write
The are independent and identically distributed random variables with a Bernoulli distribution, and . The required concentration bound follows from the Hoeffding lemma. We prove its Bernoulli case directly. With
we have and , where is the exponentially tilted success probability. Therefore for every real . If or , the centred variable is identically zero and the same bound holds directly.
Independence and the exponential form of the Markov inequality now give, for ,
Choose . Applying the same argument to the lower tail and adding the probabilities proves the Hoeffding inequality
To obtain the requested variance constant, use the additional bound that a probability is at most one. Set and . The tail integral formula for moments, justified by Tonelli theorem, yields
Thus
The clipping at one is essential for this integration argument to give that constant. It is an instance of a second moment bound from a clipped Gaussian tail. The exact Bernoulli distribution calculation also gives , an even stronger bound.
A kernel for density estimation is an integrable function with . The kernel density estimator is
It has order when for and .
Differentiation gives the derivative kernel density estimator
Dropping the negative square of its mean from the variance and using Tonelli and the substitution ,
Thus and .
For , the Nikolsky class consists of functions with square-integrable derivatives through order and
using the equivalent finite-difference definition when is an integer. Integration by parts shows
Taylor expansion in , cancellation of the moments through order for , and the generalized Minkowski inequality give
Consequently
where one admissible choice is
Hence .
The mean integrated squared error is
the sum of integrated variance and squared bias. The preceding bounds give
Taking proves the MISE rate for derivative kernel density estimation
Thus . Estimating a density of the same smoothness has variance order and rate ; estimating its derivative is harder because differentiation amplifies high-frequency noise, changing to .
A kernel for density estimation is an integrable function with . For bandwidth , the kernel density estimator is
A kernel of order ell has
Let and be as in the question, put , and define the positive pilot bound
For every , form
The Lepski bandwidth selection method takes
Small bandwidths have little bias but wide intervals; the rule increases the bandwidth until the estimates cease to be mutually compatible.
The grid is geometric with ratio two. Its lower endpoint has order , while its upper endpoint is of order
For fixed , the oracle bandwidth
eventually lies between these endpoints. Its largest grid predecessor therefore exists, and the dyadic spacing gives
On , the true value belongs to every interval with . Their intersection is therefore nonempty, so
The intervals at and have a common point. Since decreases with ,
Using and gives
Because , enlarging the constant gives the required
For the final claim take for sufficiently large and use . The squared error on is at most a constant times
Off , boundedness of and the lower endpoint of the bandwidth grid give a deterministic polynomial bound on ; multiplying its square by is . Since and is independent of , this term is no larger than the target rate after changing the constant. Enlarging it once more covers the finitely many , proving the claimed adaptive mean squared error bound.
Put and . The density Hölder class consists of nonnegative functions integrating to one, with derivatives through order , such that
This is the density version of the Hölder class. A kernel for density estimation is an integrable function with . It has order when for and .
Choose a bounded kernel of order at least with , and use the kernel density estimator
Taylor's theorem at and the vanishing kernel moments cancel every polynomial term below the remainder. Hence, for a constant depending only on and the fixed kernel,
We also need a uniform density bound. The standard Hölder interpolation argument combines nonnegativity, , and the Hölder constraint to give
Indeed, near a point where is close to its maximum , Taylor's theorem and the derivative bounds implied by the Hölder constraint keep of order on an interval of length comparable to ; integrating over that interval gives .
Using this bound and independence,
Thus
Choose
Both terms then have order . Since the infimum over all measurable estimators is no larger than the risk of this particular estimator,
This is the pointwise minimax rate for Hölder density estimation upper bound.
A kernel for density estimation is an integrable function with . With , the kernel density estimator is
A kernel of order ell satisfies
Split the integrated risk into stochastic and bias terms:
For fixed , put and . The supplied Rosenthal inequality gives
Now
Also . The Young convolution inequality with exponent gives
After integration and multiplication by the outer factor , the stochastic contribution is at most
It remains to control the bias. Here . The Taylor formula with integral remainder, the vanishing kernel moments, and Minkowski integral inequality give
The defining Nikol'skii smoothness bound is , so
Raising to the th power and applying the outer factor proves
A kernel for density estimation is an integrable function with , usually also bounded and nonnegative, and its scaled version is . For suitable , their convolution is
Because the observations have length-biased density ,
Thus the exact bias is , exactly the same as for the ordinary kernel density estimator based directly on observations from .
Write . The estimator is the average of , so
Its mean is . Integrating the pointwise variance therefore gives
Finally, Cauchy-Schwarz inequality under density gives
Equality would require to be constant almost surely, impossible for a density, so . The ordinary KDE has the same negative term but leading integrated variance ; length-biased sampling strictly inflates it.
A kernel for density estimation is a bounded nonnegative integrable function with . Its bandwidth- rescaling is , and the kernel density estimator is
Fix and put . Since vanishes outside ,
The Cauchy-Schwarz inequality and variance additivity for independent random variables give
Nonnegativity also gives . Taking the better estimate at each and applying Tonelli theorem proves
For nonnegative and , . Taking yields
For , the Holder inequality with conjugate exponents and gives
If is uniform on and independent of , then has probability density function . Since
the last integral is at most . Substitution proves the second displayed bound. The case is the first bound integrated using and follows directly.
Let the kernel for density estimation have integral one, be bounded and have compact support. For a probability density function with bounded derivative, assume , and . The bias of a kernel density estimator is , negligible on the scale. For , . The centered summands divided by are uniformly small, so the Lindeberg-Feller central limit theorem applies. The condition alone is insufficient: with and a compactly supported kernel, with probability tending to one no observation enters the kernel window, producing a degenerate limit at a point with positive density.