Skip to main content

Kernel density estimation: the MISE

Archive 2011–2014
Density estimation
Kernel methods
A global risk for kernel estimators, Nikol’ski classes, and the same n^(-2β/(2β+1)) rate in L2.
Author

Maikol Solís

Published

December 30, 2011

Modified

November 30, 2026

This post belongs to a series of study notes I first published in 2011, at the start of my PhD. I revised it in 2026: the mathematics was checked and corrected and the text rewritten. The results and proofs follow Tsybakov (2009, sec. 1.2); the presentation and comments are mine.

The previous post bounded the risk of the kernel estimator \(\hat p_n\) at a single point \(x_0\). Usually we care about the whole curve, so we need a global criterion. Here we show that the same rate holds for one.

Mean integrated squared error

The mean integrated squared error of \(\hat p_n\) is

\[ \operatorname{MISE} = \mathbb{E}_p \int \big(\hat p_n(x) - p(x)\big)^2\,dx . \]

The integrand is non-negative, so Tonelli’s theorem lets us exchange expectation and integral. Using the pointwise decomposition \(\operatorname{MSE}(x) = b^2(x) + \sigma^2(x)\),

\[ \operatorname{MISE} = \int \operatorname{MSE}(x)\,dx = \int b^2(x)\,dx + \int \sigma^2(x)\,dx . \tag{1}\]

As before, we bound the two terms separately.

Integrated variance

Proposition 1 Suppose \(\int K^2(u)\,du < \infty\). Then for every density \(p\), every \(h > 0\) and \(n \ge 1\), \[ \int \sigma^2(x)\,dx \le \frac{1}{nh}\int K^2(u)\,du . \]

Proof. From the proof of the pointwise variance bound, for every \(x\), \[ \sigma^2(x) \le \frac{1}{nh^2}\,\mathbb{E}_p\, K^2\!\left( \frac{X_1 - x}{h} \right) = \frac{1}{nh^2}\int K^2\!\left( \frac{z - x}{h} \right) p(z)\,dz . \] Integrating in \(x\) and exchanging the order of integration (Tonelli), \[ \int \sigma^2(x)\,dx \le \frac{1}{nh^2}\int p(z) \left[ \int K^2\!\left( \frac{z - x}{h} \right) dx \right] dz = \frac{1}{nh^2}\int p(z)\, \Big[h \int K^2(u)\,du\Big]\, dz = \frac{1}{nh}\int K^2(u)\,du . \]

This bound needs no assumption on \(p\), not even boundedness, which the pointwise version required. Integrating over \(x\) averages out the regions where \(p\) is large.

Integrated bias

The bias, by contrast, can only be controlled over a class of smooth densities. The MISE is an \(L_2\) risk, so it is natural to measure smoothness in \(L_2\) too. This leads to Nikol’ski classes. As before, \(\lfloor \beta \rfloor\) is the largest integer strictly smaller than \(\beta\).

Definition 1 (Nikol’ski class) Let \(\beta, L > 0\) and \(\ell = \lfloor \beta \rfloor\). The Nikol’ski class \(\mathcal{H}(\beta, L)\) is the set of functions \(f : \mathbb{R} \to \mathbb{R}\) whose derivative \(f^{(\ell)}\) exists and satisfies \[ \left[ \int \big(f^{(\ell)}(x + t) - f^{(\ell)}(x)\big)^2 dx \right]^{1/2} \le L\,|t|^{\beta-\ell}, \qquad \forall\, t \in \mathbb{R}. \]

This is the Hölder condition of the previous post, with the supremum over \(x\) replaced by an \(L_2\) norm in \(x\). Let

\[ \mathcal{P}_{\mathcal{H}}(\beta, L) = \Big\{ p \in \mathcal{H}(\beta, L) : p \ge 0,\ \int p(x)\,dx = 1 \Big\}. \]

The proof uses one tool repeatedly.

Lemma 1 (Generalized Minkowski inequality) For any Borel function \(g\) on \(\mathbb{R} \times \mathbb{R}\), \[ \int \left( \int g(u, x)\,du \right)^2 dx \le \left[ \int \left( \int g^2(u, x)\,dx \right)^{1/2} du \right]^2 . \]

In words, the \(L_2\) norm (in \(x\)) of an integral (in \(u\)) is at most the integral of the \(L_2\) norms. It is the triangle inequality for a continuous sum.

Proposition 2 Let \(p \in \mathcal{P}_{\mathcal{H}}(\beta, L)\) and let \(K\) be a kernel of order \(\ell = \lfloor \beta \rfloor\) with \(\int |u|^\beta |K(u)|\,du < \infty\). Then for all \(h > 0\) and \(n \ge 1\), \[ \int b^2(x)\,dx \le C_2^2\, h^{2\beta}, \qquad C_2 = \frac{L}{\ell!}\int |u|^\beta |K(u)|\,du . \]

Proof. Take \(\ell \ge 1\); the case \(\ell = 0\) is analogous and simpler. Taylor’s formula with integral remainder gives \[ p(x + uh) = p(x) + p'(x)\,uh + \cdots + \frac{(uh)^{\ell}}{(\ell - 1)!}\int_0^1 (1 - \tau)^{\ell-1}\, p^{(\ell)}(x + \tau uh)\,d\tau . \] Substitute into \(b(x) = \int K(u)[p(x + uh) - p(x)]\,du\). The polynomial terms of degree \(1, \ldots, \ell - 1\) vanish because \(K\) has order \(\ell\). We can also subtract \(p^{(\ell)}(x)\) inside the remainder: since \(\int_0^1 (1 - \tau)^{\ell-1} d\tau = 1/\ell\), this subtracts \(\frac{(uh)^\ell}{\ell!}\,p^{(\ell)}(x)\), which integrates to zero against \(K\). Therefore \[ b(x) = \int K(u)\,\frac{(uh)^\ell}{(\ell - 1)!}\left[ \int_0^1 (1 - \tau)^{\ell-1}\big(p^{(\ell)}(x + \tau uh) - p^{(\ell)}(x)\big)\,d\tau \right] du . \] Apply Lemma 1 in \(u\) and then again in \(\tau\): \[ \begin{aligned} \int b^2(x)\,dx & \le \left[ \int |K(u)|\,\frac{|uh|^\ell}{(\ell - 1)!} \left( \int \left[ \int_0^1 (1 - \tau)^{\ell-1}\big|p^{(\ell)}(x + \tau uh) - p^{(\ell)}(x)\big|\,d\tau \right]^2 dx \right)^{1/2} du \right]^2 \\ & \le \left[ \int |K(u)|\,\frac{|uh|^\ell}{(\ell - 1)!} \int_0^1 (1 - \tau)^{\ell-1} \left( \int \big(p^{(\ell)}(x + \tau uh) - p^{(\ell)}(x)\big)^2 dx \right)^{1/2} d\tau\, du \right]^2 . \end{aligned} \] By the Nikol’ski condition with \(t = \tau uh\), the inner \(L_2\) norm is at most \(L|\tau uh|^{\beta-\ell} \le L|uh|^{\beta-\ell}\). Using \(\int_0^1 (1 - \tau)^{\ell-1}d\tau = 1/\ell\), \[ \int b^2(x)\,dx \le \left[ \int |K(u)|\,\frac{|uh|^\ell}{\ell!}\, L\,|uh|^{\beta-\ell}\,du \right]^2 = C_2^2\, h^{2\beta}. \]

The rate for the MISE

Combining Equation 1, Proposition 1 and Proposition 2,

\[ \operatorname{MISE} \le C_2^2\, h^{2\beta} + \frac{1}{nh}\int K^2(u)\,du . \]

Minimizing in \(h\),

\[ h_n^* = \left( \frac{\int K^2(u)\,du}{2\beta\, C_2^2} \right)^{\frac{1}{2\beta+1}} n^{-\frac{1}{2\beta+1}}, \qquad \operatorname{MISE} = O\!\left( n^{-\frac{2\beta}{2\beta+1}} \right). \]

This is exactly the pointwise rate. Moreover, for any \(\alpha > 0\) and \(h = \alpha\, n^{-1/(2\beta+1)}\),

\[ \sup_{p \in \mathcal{P}_{\mathcal{H}}(\beta, L)} \mathbb{E}_p \int \big(\hat p_n(x) - p(x)\big)^2 dx \le C\, n^{-\frac{2\beta}{2\beta+1}}, \]

where \(C > 0\) depends only on \(\beta\), \(L\), \(\alpha\) and \(K\).

The next post shows that the same holds when smoothness is measured with Sobolev classes, which are often more convenient.

References

Tsybakov, Alexandre B. 2009. Introduction to Nonparametric Estimation. Springer.

Series: Density estimation · Previous: Kernel density estimation · Next: Sobolev classes