EconBase
← Back to paper

Boundary Adaptive Local Polynomial Conditional Density Estimators

Extracted main text — title through conclusion, appendix excluded. This is what our citation measures are computed over, published so the extraction can be checked by eye.

151,466 characters · 44 sections · 6 citation commands

Rendered from LaTeX for readability, not typeset faithfully. Citation keys are highlighted; maths is left as source; figures, tables and equation environments are summarised rather than reproduced; unrecognised commands are greyed out so nothing is silently dropped. Email addresses are removed.

Supplementary material to “Boundary adaptive local polynomial conditional density estimators”

frontmatter\runtitle{Supplementary material} \begin{aug} \address[A]{Department of Operations Research and Financial Engineering, Princeton University, Princeton NJ, United States\printead[presep={,\ }]{e1,e2}} \address[B]{Department of Economics, UC Berkeley, Berkeley CA, United States\printead[presep={,\ }]{e3}} \address[D]{Department of Economics, UC San Diego, La Jolla CA, United States\printead[presep={,\ }]{e4}} \end{aug} \begin{abstract} This Supplementary Material contains general theoretical results encompassing those discussed in the main paper, includes proofs of those general results, and discusses additional methodological and technical results. A companion R package is available at \url{https://nppackages.github.io/lpcde/}. \end{abstract} \begin{keyword} \kwd{Conditional density estimation} \kwd{confidence bands} \kwd{local polynomial methods} \kwd{specification testing} \kwd{strong approximation} \kwd{uniform inference} \end{keyword}

Setup

Let $\mathbf{x}_i\in\mathbb{R}^d$ and $y_i\in\mathbb{R}$ be continuously distributed random variables supported on $\mathcal{X}=[0,1]^d$ and $\mathcal{Y}=[0,1]$, respectively. We are interested in estimating the conditional distribution function and its derivatives:

align*[align* omitted — 191 chars of source]

where $\mu\in\mathbb{N}$, and $\boldsymbol{\nu}\in\mathbb{N}^d$ representing multi-indices. (In the main paper we only consider the estimation of conditional density and derivatives thereof, that is, we set $\boldsymbol{\nu}=0$ and $\mu = \vartheta + 1\geq 1$.)

To present our estimation strategy, we start from $\theta_{0,\boldsymbol{\nu}}$, the conditional distribution function and its derivatives with respect to the conditioning variable, and apply the local polynomial method:

align*[align* omitted — 454 chars of source]

where and $\mathbf{e}_{\boldsymbol{\nu}}^\intercal$ is a basis vector extracting the corresponding estimate. We can write the solution in closed form as

align*[align* omitted — 332 chars of source]

where

align*[align* omitted — 216 chars of source]

To estimate $\theta_{\mu, \boldsymbol{\nu}}$, we further smooth via local polynomials along the $y$-direction:

align*[align* omitted — 348 chars of source]

We can write the solution in closed-form as

align*[align* omitted — 212 chars of source]

where

align*[align* omitted — 448 chars of source]

While in the above we considered local polynomial regressions along both the $\mathbf{x}$- and $y$-directions, it is also possible to employ a local smoothing technique. To be precise, let $G$ be some function such that the following Lebesgue-Stieltjes integration is well-defined, then an alternative estimator can be constructed as

align*[align* omitted — 361 chars of source]

which has the solution

align*[align* omitted — 217 chars of source]

where

align*[align* omitted — 470 chars of source]

Notation

Limits are taken with respect to the sample size tending to infinity and the bandwidth shrinking to zero (i.e., $n\to\infty$ and $h\to 0$). For two positive sequences, $a_n\precsim b_n$ implies that $\limsup_{n\to\infty}|a_n/b_n|<\infty$. Similarly, $a_n\precsim_\mathbb{P} b_n$ means $|a_n/b_n|$ is asymptotically bounded in probability. We also adopt the small-o and big-O notation: $a_n = O_{\mathbb{P}}(b_n)$ is just $a_n\precsim_\mathbb{P} b_n$, and $a_n = o_{\mathbb{P}}(b_n)$ means $a_n/b_n$ converges to zero in probability. Constants that do not depend on the sample size or the bandwidth will be denoted by $\mathfrak{c}$, $\mathfrak{c}_1$, $\mathfrak{c}_2$, etc.

We introduce another notation, $O_{\mathtt{TC}}$, which not only provides an asymptotic order but also controls the tail probability. To be specific, $a_n = O_{\mathtt{TC}}(b_n)$ if for any $\mathfrak{c}_1 > 0$, there exists some $\mathfrak{c}_2$ such that \[\limsup_{n\to\infty} n^{\mathfrak{c}_1}\mathbb{P}\left[ a_n \geq \mathfrak{c}_2b_n \right] < \infty.\] Here the subscript, $\mathtt{TC}$, stands for “tail control.” Finally, let $\mathbf{X} = (\mathbf{x}_1^\intercal,\cdots,\mathbf{x}_n^\intercal)^\intercal$ and $\mathbf{Y} = (y_1,\cdots,y_n)^\intercal$ be the data matrices.

itemize[leftmargin=*] • $F(y|\mathbf{x})$ and $f(y|\mathbf{x})$: the conditional distribution and density functions of $y_i$ (at $y$) given $\mathbf{x}_i=\mathbf{x}$. The marginal distributions and densities are denoted by $F_y$, $F_{\mathbf{x}}$, $f_y$, and $f_{\mathbf{x}}$, respectively. • $y$ and $\mathbf{x}$: the evaluation points. • $\mathcal{X}=[0,1]^d$ and $\mathcal{Y}=[0,1]$, the support of $\mathbf{x}_i$ and $y_i$, respectively. • $h$: the bandwidth sequence. • $K$: the kernel function, and $L$ is the product kernel: $L(\mathbf{x}) = K(x_1)K(x_2)\cdots K(x_d)$. • $\mathbf{p} ,\ \mathbf{q} $: polynomial expansions. • $\mathbf{P}$ and $\mathbf{Q}$: defined as $\mathbf{p}(\cdot)K(\cdot)$ and $\mathbf{q}(\cdot)L(\cdot)$, respectively. • $\mathbf{e}_\mu$ and $\mathbf{e}_{\boldsymbol{\nu}}$: standard basis vectors extracting the $\mu$-th and $\boldsymbol{\nu}$-th element in the expansion of $\mathbf{p} $ and $\mathbf{q} $ for univariate and multivariate arguments, respectively. • $G(\cdot)$ the weighting function used in $\check{\theta}_{{\mu, \boldsymbol{\nu}}} $, with its Lebesgue density denoted by $g(\cdot)$. • Some matrices {\begin{alignat*}{2} \mathbf{S}_y &= \int_{\frac{\mathcal{Y}-y}{h}}\mathbf{p} \left(u\right)\mathbf{P} \left(u\right)^\intercal g(y+hu)\mathrm{d} u,\quad &&\hat{\mathbf{S}}_y = \frac{1}{nh}\sum_{i=1}^{n}\mathbf{p} \Big(\frac{y_i-y}{h}\Big)\mathbf{P} \Big(\frac{y_i-y}{h}\Big)^\intercal, \\ \mathbf{c}_{y,\ell} &= \int_{\frac{\mathcal{Y}-y}{h}}\frac{u^{\ell}}{\ell!} \mathbf{P} \left(u\right) g(y+hu)\mathrm{d} u, &&\hat{\mathbf{c}}_{y,\ell} = \frac{1}{nh}\sum_{i=1}^n\frac{1}{\ell!}\left(\frac{y_{i}-y}{h}\right)^{\ell}\mathbf{P} \left(\frac{y_{i}-y}{h}\right)^\intercal,\\ \mathbf{S}_{\mathbf{x}} &= \int_{\frac{\mathcal{X}-\mathbf{x}}{h}} \mathbf{q} \left(\mathbf{v}\right)\mathbf{Q} \left(\mathbf{v}\right)^\intercal f_{\mathbf{x}}(\mathbf{x}+h\mathbf{v}) \mathrm{d} \mathbf{v},\qquad &&\hat{\mathbf{S}}_\mathbf{x} = \frac{1}{nh^d}\sum_{i=1}^{n}\mathbf{q}\Big(\frac{\mathbf{x}_i-\mathbf{x}}{h}\Big)\mathbf{Q} \Big(\frac{\mathbf{x}_i-\mathbf{x}}{h}\Big)^\intercal, \\ \mathbf{c}_{\mathbf{x},\mathbf{m}} &= \int_{\frac{\mathcal{X}-\mathbf{x}}{h}} \frac{\mathbf{v}^{\mathbf{m}}}{\mathbf{m}!}\mathbf{Q} \left(\mathbf{v}\right) f_{\mathbf{x}}(\mathbf{x}+h\mathbf{v}) \mathrm{d} \mathbf{v} ,\qquad && \hat{\mathbf{c}}_{\mathbf{x},\mathbf{m}} = \frac{1}{nh^d}\sum_{i=1}^n\frac{1}{\mathbf{m}!}\left(\frac{\mathbf{x}_i-\mathbf{x}}{h}\right)^{\mathbf{m}}\mathbf{Q} \left(\frac{\mathbf{x}_i-\mathbf{x}}{h}\right),\\ \mathbf{T}_{\mathbf{x}} &= \int_{\frac{\mathcal{X}-\mathbf{x}}{h}} \mathbf{Q} \left(\mathbf{v}\right)\mathbf{Q} \left(\mathbf{v}\right)^\intercal f_{\mathbf{x}}(\mathbf{x}+h\mathbf{v})\mathrm{d} \mathbf{v},\qquad &&\hat{\mathbf{T}}_{\mathbf{x}} = \frac{1}{nh^d}\sum_{i=1}^n \mathbf{Q} \left(\frac{\mathbf{x}_i-\mathbf{x}}{h}\right)\mathbf{Q} \left(\frac{\mathbf{x}_i-\mathbf{x}}{h}\right)^\intercal, \end{alignat*} \vskip-0.5cm \begin{align*} \mathbf{T}_{y} &= \iint_{\frac{\mathcal{Y}-y}{h}} \min(u_1, u_2)\mathbf{P} \left(u_1\right)\mathbf{P} \left(u_2\right)^\intercal g(y+hu_1)g(y+hu_2)\mathrm{d} u_1\mathrm{d} u_2, \\ \widehat{\mathbf{T}}_{y} &= \frac{1}{n^2h^3}\sum_{i,j=1}^n \big(\min(y_i,y_j)-y\big)\mathbf{P}\Big(\frac{y_i-y}{h}\Big)\mathbf{P}\Big(\frac{y_j-y}{h}\Big)^\intercal, \end{align*} \vskip-0.5cm \begin{align*} \hat{\mathbf{R}}_{y,\mathbf{x}} &= \frac{1}{n^2h^{1+d+\mu+|\boldsymbol{\nu}|}}\sum_{j=1}^{n}\sum_{i=1}^{n}\mathbbm{1}(y_i\leq y_j)\mathbf{P} \Big(\frac{y_j-y}{h}\Big)\mathbf{Q} \Big(\frac{\mathbf{x}_i-\mathbf{x}}{h}\Big)^\intercal, \\ \bar{\mathbf{R}}_{y,\mathbf{x}} &= \frac{1}{nh^{1+d+\mu+|\boldsymbol{\nu}|}} \sum_{i=1}^{n} \left(\int_{\mathcal{Y}} \mathbbm{1}(y_i\leq u) \mathbf{P} \Big(\frac{u-y}{h}\Big) \mathrm{d} G(u)\right) \mathbf{Q} \Big(\frac{\mathbf{x}_i-\mathbf{x}}{h}\Big)^\intercal. \end{align*}} • Equivalent kernels: {\begin{align*} \check{\mathscr{K}}_{\mu,\boldsymbol{\nu},h}^\circ\left( a,\mathbf{b}; y,\mathbf{x} \right) &= \frac{1}{h^{\mu+|\boldsymbol{\nu}|}}\mathbf{e}_{\mu}^\intercal\mathbf{S}_y^{-1} \left[ \int_{\mathcal{Y}}\Big(\mathbbm{1}(a\leq u) - \hat{F}(u|\mathbf{b})\Big)\frac{1}{h}\mathbf{P} \left(\frac{u-y}{h}\right) \mathrm{d} G(u)\right] \frac{1}{h^d}\mathbf{Q} \left(\frac{\mathbf{b}-\mathbf{x}}{h}\right)^\intercal \hat{\mathbf{S}}_{\mathbf{x}}^{-1} \mathbf{e}_{\boldsymbol{\nu}},\\ \hat{\mathscr{K}}_{\mu,\boldsymbol{\nu},h}^{\circ}\left( a,\mathbf{b}; y,\mathbf{x} \right) &= \frac{1}{h^{\mu+|\boldsymbol{\nu}|}}\mathbf{e}_{\mu}^\intercal \hat{\mathbf{S}}_y^{-1} \left[\frac{1}{n}\sum_{j=1}^n \Big(\mathbbm{1}(a\leq y_j) - \hat{F}(y_j|\mathbf{b}) \Big) \frac{1}{h}\mathbf{P} \Big(\frac{y_j-y}{h}\Big)\right] \frac{1}{h^d}\mathbf{Q} \left(\frac{\mathbf{b}-\mathbf{x}}{h}\right)^\intercal \hat{\mathbf{S}}_{\mathbf{x}}^{-1} \mathbf{e}_{\boldsymbol{\nu}},\\ \mathscr{K}_{\mu,\boldsymbol{\nu},h}^\circ\left( a,\mathbf{b}; y,\mathbf{x} \right) & = \frac{1}{h^{\mu+|\boldsymbol{\nu}|}}\mathbf{e}_{\mu}^\intercal\mathbf{S}_y^{-1} \left[ \int_{\mathcal{Y}}\Big(\mathbbm{1}(a\leq u) - F(u|\mathbf{b})\Big)\frac{1}{h}\mathbf{P} \left(\frac{u-y}{h}\right) \mathrm{d} G(u)\right] \frac{1}{h^d}\mathbf{Q} \left(\frac{\mathbf{b}-\mathbf{x}}{h}\right)^\intercal {\mathbf{S}}_{\mathbf{x}}^{-1} \mathbf{e}_{\boldsymbol{\nu}},\\ \mathscr{K}_{\mu,\boldsymbol{\nu},h}\left( a,\mathbf{b}; y,\mathbf{x} \right) & = \frac{1}{h^{\mu+|\boldsymbol{\nu}|}}\mathbf{e}_{\mu}^\intercal\mathbf{S}_y^{-1} \left[ \int_{\mathcal{Y}}\mathbbm{1}(a\leq u)\frac{1}{h}\mathbf{P} \left(\frac{u-y}{h}\right) \mathrm{d} G(u)\right] \frac{1}{h^d}\mathbf{Q} \left(\frac{\mathbf{b}-\mathbf{x}}{h}\right)^\intercal {\mathbf{S}}_{\mathbf{x}}^{-1} \mathbf{e}_{\boldsymbol{\nu}}. \end{align*}} • Some rates: \begin{align*} \mathtt{r_B} &= h^{\mathfrak{q}+1-|\boldsymbol{\nu}|} + h^{\mathfrak{p}+1-\mu},\quad \mathtt{r_V} = \sqrt{\frac{1}{nh^{d + 2|\boldsymbol{\nu}|+2\mu-1}}},\\ \mathtt{r_{BE}} &= \begin{cases} \frac{1}{\sqrt{nh^d}} & if $\mu=0$, and $\theta_{0, \mathbf{0}}\neq 0$ or $1$\\ \frac{1}{\sqrt{nh^{d+1}}} &if $\mu > 0$, \ \ or $\theta_{0, \mathbf{0}}= 0$ or $1$ \end{cases},\\ \mathtt{r_{VE}} &= h^{ \mathfrak{q}+\frac{1}{2}} + \sqrt{\frac{\log (n)}{nh^{d+1}}},\quad \mathtt{r_{SE}}=\sqrt{\log (n) }\mathtt{r_{VE}},\quad \mathtt{r_{SA}} = \left(\frac{\log^{d+1} (n)}{nh^{d+1}}\right)^{\frac{1}{2d+2}}. \end{align*}

Overview

In this subsection we provide an overview of the main results. Underlying assumptions and precise statements of the lemmas and theorems will be given in later sections. First consider $\check{\theta}_{\mu,\boldsymbol{\nu}}(y|\mathbf{x})$, with a conditional expectation decomposition:

align*[align* omitted — 866 chars of source]

As we will show in Section (ref), the first term above consists of the centering of the estimator (i.e., the parameter of interest $\theta_{\mu,\boldsymbol{\nu}}(y|\mathbf{x})$) and the smoothing bias. The second term, on the other hand, gives the asymptotic representation of the estimator. To be precise, we have

align*[align* omitted — 420 chars of source]

As a result, we can focus on establishing properties of the the first term, which provides an equivalent kernel expression. Denote its variance by $\mathsf{V}_{{\mu, \boldsymbol{\nu}}}(y, \mathbf{x})$. Then we show that the standardized process,

align*[align* omitted — 244 chars of source]

is approximately normally distributed both pointwise and uniformly for $y\in\mathcal{Y}$ and $\mathbf{x}\in\mathcal{X}$. To be even more precise, we establish a strong approximation result, meaning that there exists a copy $\bar{\mathbb{S}}^{\prime}_{{\mu, \boldsymbol{\nu}}}(y, \mathbf{x})$, and a Gaussian process $\mathbb{G}_{{\mu, \boldsymbol{\nu}}}(y, \mathbf{x})$ with the same covariance structure, such that \[ \sup_{ y \in \mathcal{Y}, \mathbf{x} \in \mathcal{X}}\left|\bar{\mathbb{S}}^{\prime}_{{\mu, \boldsymbol{\nu}}}(y, \mathbf{x}) - \mathbb{G}_{{\mu, \boldsymbol{\nu}}}(y, \mathbf{x})\right| = O_{\mathbb{P}}\left(\frac{\log^{d+1} (n)}{nh^{d+1}}\right)^{\frac{1}{2d+2}}. \] Together with a feasible variance-covariance estimator, the strong approximation result not only allows us to construct confidence bands for the target parameter and test shape restrictions, but also provides an explicit characterization of the coverage error probability for those procedures.

Inside the remainder term, $h^{\mathfrak{q}+1-|\boldsymbol{\nu}|} + h^{\mathfrak{p}+1-\mu}$ is the order of the leading smoothing bias, and $\log(n) \sqrt{\mathsf{V}_{{\mu, \boldsymbol{\nu}}}(y, \mathbf{x})/(nh^d)}$ arises from the linearization step which replaces the random matrix $\hat{\mathbf{S}}_{\mathbf{x}}$ by its large-sample analogue $\mathbf{S}_{\mathbf{x}}$. It is worth mentioning that the order of the remainder term is uniformly valid for $y\in\mathcal{Y}$ and $\mathbf{x}\in\mathcal{X}$, which is why an extra logarithmic factor is present.

Now consider the other estimator, $\hat{\theta}_{\mu,\boldsymbol{\nu}}(y|\mathbf{x})$. While it is not possible to take a conditional expectation, we can still “center” the estimator with the conditional distribution function. That is,

align*[align* omitted — 810 chars of source]

As before, the first term captures the target parameter and the smoothing bias. The analysis of the second term is more involved. Besides the asymptotic linear representation term, it also consists of a leave-in bias term (since the same observation is used twice) and a second order U-statistic. We show that the following expansion holds uniformly for $y\in\mathcal{Y}$ and $\mathbf{x}\in\mathcal{X}$:

align*[align* omitted — 483 chars of source]

Here, the contribution of the U-statistic is represented by the order $\log (n)/\sqrt{n^2h^{d+2\mu+2|\boldsymbol{\nu}|+1}}$ in the remainder term. Interestingly, this term is negligible compared to the standard error, $\sqrt{\mathsf{V}_{{\mu, \boldsymbol{\nu}}}(y, \mathbf{x})}$, provided that $\log (n)/(nh^2)\to \infty$.

The above demonstrates that important large-sample properties of the local regression based estimator, $\hat{\theta}_{{\mu, \boldsymbol{\nu}}}(y|\mathbf{x})$ --- such as pointwise and uniform normal approximation --- stem from the equivalent kernel representation. Here we note that the representation holds by setting $G = F_y$. In other words, $\hat{\theta}_{{\mu, \boldsymbol{\nu}}}(y|\mathbf{x})$ is first-order asymptotically equivalent to $\check{\theta}_{{\mu, \boldsymbol{\nu}}}(y|\mathbf{x})$ with the (infeasible) local smoothing using the marginal distribution $F_y$.

Assumptions

We make the following assumptions on the joint distribution, the kernel function, and the weighting $ G$.

assumDGP[Data generating process] (i) $\{y_i, \mathbf{x}_i\}_{1\leq i\leq n}$ is a random sample from the absolutely continuous joint distribution $F$ supported on $\mathcal{Y} \times \mathcal{X} = [0,1]^{1+d}$. (ii) The joint density, $f$, is continuous and is bounded away from zero. (iii) $\theta_{2,\mathbf{0}}$ exists and is continuous.
assumK[Kernel]\ \\ The kernel function $K$ is nonnegative, symmetric, supported on $[-1,1]$, Lipschitz continuous, and integrates to one.
assumW[Weighting function]\ \\ The weighting function $ G$ is continuously differentiable with a Lebesgue density denoted by $g$.

Pointwise large-sample properties

We first present several uniform convergence results which will be used later to establish pointwise and uniform properties of our estimators.

lem[Matrix convergence] Let Assumptions (ref), (ref), and (ref) hold with $h\to 0$, $nh^d/\log (n)\to \infty$, and $G = F_y$. Then \begin{alignat*}{2} & \sup_{y \in \mathcal{Y}} \left|\hat{\mathbf{S}}_y-\mathbf{S}_y\right| =O_{\mathtt{TC}} \left(\sqrt{\frac{\log (n)}{nh}}\right), \quad &&\sup_{y \in \mathcal{Y}} \left|\hat{\mathbf{c}}_{y,\ell}-\mathbf{c}_{y,\ell}\right| = O_{\mathtt{TC}}\left(\sqrt{\frac{\log (n)}{nh}}\right),\\ &\sup_{\mathbf{x}\in \mathcal{X}} \left|\hat{\mathbf{S}}_\mathbf{x}-\mathbf{S}_\mathbf{x}\right| = O_{\mathtt{TC}} \left(\sqrt{\frac{\log (n)}{nh^d}}\right), \quad &&\sup_{\mathbf{x}\in \mathcal{X}} \left|\hat{\mathbf{c}}_{\mathbf{x},\mathbf{m}}-\mathbf{c}_{\mathbf{x},\mathbf{m}}\right| = O_{\mathtt{TC}}\left(\sqrt{\frac{\log (n)}{nh^d}}\right) ,\\ &\sup_{\mathbf{x}\in \mathcal{X}} \left|\hat{\mathbf{T}}_\mathbf{x}-\mathbf{T}_\mathbf{x}\right| = O_{\mathtt{TC}} \left(\sqrt{\frac{\log (n)}{nh^d}}\right). \qquad && \end{alignat*} If in addition that $nh^{d+1}/\log (n) \to \infty$, then \begin{alignat*}{2} & \sup_{y \in \mathcal{Y}, \mathbf{x} \in \mathcal{X}} \Big|\mathbf{e}_{\mu}^{\intercal}\mathbf{S}_y^{-1}\left(\bar{\mathbf{R}}_{y, \mathbf{x}} - \mathbb{E} \left[\bar{\mathbf{R}}_{y, \mathbf{x}}| \mathbf{X} \right]\right)\Big| = O_{\mathtt{TC}} \left(\mathtt{r}_1\right) ,\quad where \mathtt{r}_1 = \begin{cases} \sqrt{\frac{\log (n)}{nh^{d+2\mu+2|\boldsymbol{\nu}|}}} & if $\mu=0$\\ \sqrt{\frac{\log (n)}{nh^{d+2\mu+2|\boldsymbol{\nu}|-1}}} & if $\mu>0$ \end{cases}. \end{alignat*}

We now follow the decomposition in Section (ref) and study the leading bias of our estimators.

lem[Bias] Let Assumptions (ref), (ref) and (ref) hold with $h \to 0$ and $nh^{d} / \log (n)\to\infty$. In addition, $\theta_{\mu',\boldsymbol{\nu}'}$ exists and is continuous for all $\mu' + |\boldsymbol{\nu}'|= \max\{ \mathfrak{q}+1+\mu,\ \mathfrak{p}+1+|\boldsymbol{\nu}| \}$. Then \begin{align*} &\mathbf{e}_{\mu}^{\intercal}\mathbf{S}_y^{-1} \Big[ \frac{1}{nh^{\mu+|\boldsymbol{\nu}|}} \sum_{i=1}^{n}\Big(\int_\mathcal{Y} F(u|\mathbf{x}_i) \frac{1}{h}\mathbf{P} \Big(\frac{u-y}{h}\Big) \mathrm{d} G(u)\Big) \frac{1}{h^d}\mathbf{Q} \Big(\frac{\mathbf{x}_i-\mathbf{x}}{h}\Big)^\intercal \Big] \hat{\mathbf{S}}_\mathbf{x}^{-1}\mathbf{e}_\mathbf{\boldsymbol{\nu}}\\ &= \theta_{{\mu, \boldsymbol{\nu}}}(y|\mathbf{x}) + \mathsf{B}_{{\mu, \boldsymbol{\nu}}}(y,\mathbf{x}) + o_{\mathbb{P}}\left( h^{\mathfrak{q}+1-|\boldsymbol{\nu}|} + h^{\mathfrak{p}+1-\mu} \right), \end{align*} where \begin{align*} \mathsf{B}_{{\mu, \boldsymbol{\nu}}} (y, \mathbf{x}) &= h^{\mathfrak{q}+1-|\boldsymbol{\nu}|}\underbrace{\sum_{|\mathbf{m}|=\mathfrak{q}+1}\theta_{\mu,\mathbf{m}}(y|\mathbf{x}) \mathbf{c}_{\mathbf{x},\mathbf{m}}^\intercal \mathbf{S}_{\mathbf{x}}^{-1}\mathbf{e}_{\boldsymbol{\nu}} }_{\textstyle B_{(i),\mathfrak{q}+1}(y,\mathbf{x}) } + h^{\mathfrak{p}+1-\mu}\underbrace{\theta_{\mathfrak{p}+1,\boldsymbol{\nu}}(y|\mathbf{x})\mathbf{c}_{y,\mathfrak{p}+1}^\intercal\mathbf{S}_{y}^{-1}\mathbf{e}_{\mu}}_{\textstyle B_{(ii),\mathfrak{p}+1}(y,\mathbf{x})}. \end{align*} Similarly, \begin{align*} &\mathbf{e}_{\mu}^{\intercal}\hat{\mathbf{S}}_y^{-1} \Big[\frac{1}{n^2h^{\mu +|\boldsymbol{\nu}|}}\sum_{i=1}^{n}\sum_{j=1}^{n}F(y_j|\mathbf{x}_i) \frac{1}{h}\mathbf{P} \Big(\frac{y_j-y}{h}\Big)\frac{1}{h^d}\mathbf{Q} \Big(\frac{\mathbf{x}_i-\mathbf{x}}{h}\Big)^\intercal \Big] \hat{\mathbf{S}}_\mathbf{x}^{-1}\mathbf{e}_\mathbf{\boldsymbol{\nu}} \\ =&\ \theta_{\mu,\boldsymbol{\nu}}(y|\mathbf{x}) + \mathsf{B}_{{\mu, \boldsymbol{\nu}}} (y, \mathbf{x}) + o_{\mathbb{P}}\left( h^{\mathfrak{q}+1-|\boldsymbol{\nu}|} + h^{\mathfrak{p}+1-\mu} \right). \end{align*}

For future reference, we define the order of the leading bias as

align*[align* omitted — 93 chars of source]
remark[Higher-order bias] Because the leading bias established in the lemma can be exactly zero, one may need to extract higher-order terms for bandwidth selection: \begin{align*} \mathsf{B}_{{\mu, \boldsymbol{\nu}}} (y, \mathbf{x}) &= h^{\mathfrak{q}+1-|\boldsymbol{\nu}|}B_{(i),\mathfrak{q}+1}(y,\mathbf{x}) + h^{\mathfrak{p}+1-\mu}B_{(ii),\mathfrak{p}+1}(y,\mathbf{x})\\ &+ h^{\mathfrak{q}+2-|\boldsymbol{\nu}|}B_{(i),\mathfrak{q}+2}(y,\mathbf{x})+ h^{\mathfrak{p}+2-\mu}B_{(ii),\mathfrak{p}+2}(y,\mathbf{x}) + h^{\mathfrak{p}+\mathfrak{q}+2-\mu-|\boldsymbol{\nu}|}B_{(iii),\mathfrak{p}+1, \mathfrak{q}+1}(y,\mathbf{x}), \end{align*} where \begin{align*} B_{(i),\mathfrak{q}+2}(y,\mathbf{x}) &= \sum_{|\mathbf{m}|=\mathfrak{q}+2}\theta_{\mu,\mathbf{m}}(y|\mathbf{x}) \mathbf{c}_{\mathbf{x},\mathbf{m}}^\intercal \mathbf{S}_{\mathbf{x}}^{-1}\mathbf{e}_{\boldsymbol{\nu}},\qquad B_{(ii),\mathfrak{p}+2}(y,\mathbf{x}) = \theta_{\mathfrak{p}+2,\boldsymbol{\nu}}(y|\mathbf{x})\mathbf{c}_{y,\mathfrak{p}+2}^\intercal\mathbf{S}_{y}^{-1}\mathbf{e}_{\mu},\\ B_{(iii),\mathfrak{p}+1, \mathfrak{q}+1}(y,\mathbf{x}) & = \mathbf{e}_{\mu}^\intercal\mathbf{S}_y^{-1} \mathbf{c}_{y,\mathfrak{p}+1} \bigg(\sum_{|\mathbf{m}|=\mathfrak{q}+1} \theta_{\mathfrak{p}+1,\mathbf{m}}(y|\mathbf{x}) \mathbf{c}_{\mathbf{x},\mathbf{m}}^\intercal\bigg)\mathbf{S}_{\mathbf{x}}^{-1} \mathbf{e}_{\boldsymbol{\nu}}. \end{align*} Note that the last term, $h^{\mathfrak{p}+\mathfrak{q}+2-\mu-|\boldsymbol{\nu}|}B_{(iii),\mathfrak{p}+1, \mathfrak{q}+1}(y,\mathbf{x})$, is present only if $\mu=\mathfrak{p}$ and $|\boldsymbol{\nu}|=\mathfrak{q}$.

Next we study the leading variance of our estimator, defined as

align*[align* omitted — 200 chars of source]
lem[Variance] Let Assumptions (ref), (ref) and (ref) hold with $h \to 0$ and $nh^d / \log (n)\to\infty$. Then\\ (i) $\mu=0$ and $\theta_{0, \mathbf{0}}\neq 0$ or $1$: \begin{align*} \mathsf{V}_{0,\boldsymbol{\nu}}(y, \mathbf{x}) =& \frac{1}{nh^{d+2|\boldsymbol{\nu}|}} \theta_{0,\mathbf{0}}(y|\mathbf{x})(1-\theta_{0,\mathbf{0}}(y|\mathbf{x}))\Big(\mathbf{e}_{\boldsymbol{\nu}}^\intercal \mathbf{S}_{\mathbf{x}}^{-1} \mathbf{T}_{\mathbf{x}} \mathbf{S}_{\mathbf{x}}^{-1} \mathbf{e}_{\boldsymbol{\nu}}\Big) + O\left( \frac{1}{nh^{d+2|\boldsymbol{\nu}|-1}} \right). \end{align*} (ii) $\mu=0$ and $\theta_{0, \mathbf{0}}= 0$ or $1$: $\mathsf{V}_{0,\boldsymbol{\nu}}(y, \mathbf{x})$ has the order $\frac{1}{nh^{d+2|\boldsymbol{\nu}|-1}}$.\\ (iii) $\mu > 0$: \begin{align*} \mathsf{V}_{{\mu, \boldsymbol{\nu}}} (y, \mathbf{x}) &= \frac{1}{nh^{d + 2|\boldsymbol{\nu}|+2\mu-1}} \theta_{1,\mathbf{0}}(y|\mathbf{x})\Big(\mathbf{e}_{\mu}^\intercal\mathbf{S}_y^{-1} \mathbf{T}_{y}\mathbf{S}_y^{-1} \mathbf{e}_{\mu}\Big)\Big(\mathbf{e}_{\boldsymbol{\nu}}^\intercal \mathbf{S}_{\mathbf{x}}^{-1} \mathbf{T}_{\mathbf{x}}\mathbf{S}_{\mathbf{x}}^{-1} \mathbf{e}_{\boldsymbol{\nu}}\Big) + O\left(\frac{1}{nh^{d+2\mu+2|\boldsymbol{\nu}|-2}}\right). \end{align*}

For future reference, we will define

align*[align* omitted — 83 chars of source]
remark[Vanishing boundary variance when $\mu=0$] In case (ii), the true conditional distribution function is 0 or 1, which is why the leading variance shrinks faster. We do not provide a formula as the leading variance in this case takes a complicated form.

Now, we propose two estimators for the variance that are valid for all three cases of Lemma (ref), and hence will be useful for establishing a self-normalized distributional approximation later. Define

align*[align* omitted — 389 chars of source]

Note that $\hat{\mathsf{V}}_{{\mu, \boldsymbol{\nu}}}(y, \mathbf{x})$ is simply the plug-in variance estimator for $\hat{\theta}_{{\mu, \boldsymbol{\nu}}}(y|\mathbf{x})$ and $\check{\mathsf{V}}_{{\mu, \boldsymbol{\nu}}}(y, \mathbf{x})$ is the plug-in variance estimator for $\check{\theta}_{{\mu, \boldsymbol{\nu}}}(y|\mathbf{x})$. The next lemma provides pointwise convergence results for the two variance estimators.

lem[Variance estimation] Let Assumptions (ref), (ref) and (ref) hold with $h \to 0$ and $nh^{d+1} / \log (n)\to\infty$. In addition, $\theta_{0,\boldsymbol{\nu}}$ exists and is continuous for all $|\boldsymbol{\nu}|\leq \mathfrak{q}+1$. Then\\ (i) $\mu=0$ and $\theta_{0, \mathbf{0}}\neq 0$ or $1$: \begin{align*} & \Big| \frac{\check{\mathsf{V}}_{0,\boldsymbol{\nu}}(y, \mathbf{x}) - {\mathsf{V}}_{0,\boldsymbol{\nu}}(y, \mathbf{x})}{{\mathsf{V}}_{0,\boldsymbol{\nu}}(y, \mathbf{x})} \Big| = O_{\mathbb{P}}\Big( h^{\mathfrak{q} + 1} + \sqrt{\frac{\log (n)}{nh^{d}}}\Big). \end{align*} (ii) $\mu > 0$, or $\theta_{0, \mathbf{0}}= 0$ or $1$: \begin{align*} & \Big| \frac{\check{\mathsf{V}}_{{\mu, \boldsymbol{\nu}}}(y, \mathbf{x}) - {\mathsf{V}}_{{\mu, \boldsymbol{\nu}}}(y, \mathbf{x})}{{\mathsf{V}}_{{\mu, \boldsymbol{\nu}}}(y, \mathbf{x})} \Big| = O_{\mathbb{P}}\Big( h^{\mathfrak{q}+\frac{1}{2}} + \sqrt{\frac{\log (n)}{nh^{d+1}}}\Big). \end{align*} Let $G = F_y$, then the same conclusions hold for $\hat{\mathsf{V}}_{\mu,\boldsymbol{\nu}}(y, \mathbf{x})$.

Next, we study the large-sample distributional properties of the infeasible, standardized statistic

align*[align* omitted — 248 chars of source]

Note that this is equivalent to the scaled asymptotic linear representation of the estimator.

theorem[Asymptotic normality] Let Assumptions (ref), (ref) and (ref) hold with $h \to 0$. Then \begin{align*} \sup_{u \in \mathbb{R}} \Big| \mathbb{P} \left[ \bar{\mathbb{S}}_{{\mu, \boldsymbol{\nu}}} (y, \mathbf{x}) \leq u \right] - \Phi(u) \Big| = O\left(\mathtt{r_{BE}}\right),\quad where \mathtt{r_{BE}}= \begin{cases} \frac{1}{\sqrt{nh^d}} & if $\mu=0$,\ \ and $\theta_{0, \mathbf{0}}\neq 0$ or $1$\\ \frac{1}{\sqrt{nh^{d+1}}} & if $\mu > 0$, or if $\theta_{0, \mathbf{0}}= 0$ or $1$ \end{cases}. \end{align*}

While the theorem focuses on asymptotic normality of the infeasible t-statistic, $\bar{\mathbb{S}}_{{\mu, \boldsymbol{\nu}}}^{\circ} (y, \mathbf{x})$, we show in the following remark that similar conclusions can be made for the t-statistics constructed with the estimators, $\hat{\theta}_{{\mu, \boldsymbol{\nu}}}(y|\mathbf{x})$ and $\check{\theta}_{{\mu, \boldsymbol{\nu}}}(y|\mathbf{x})$.

remark[Asymptotic normality of standardized statistics] We first introduce the statistic \begin{align*} \check{\mathbb{S}}_{{\mu, \boldsymbol{\nu}}}^\circ(y, \mathbf{x}) = \frac{\check{\theta}_{{\mu, \boldsymbol{\nu}}}(y|\mathbf{x})-\mathbb{E} \left[ \check{\theta}_{{\mu, \boldsymbol{\nu}}}(y|\mathbf{x}) | \mathbf{X} \right]}{\sqrt{{\mathsf{V}}_{{\mu, \boldsymbol{\nu}}}(y, \mathbf{x})}}, \end{align*} which is based on $\check{\theta}_{{\mu, \boldsymbol{\nu}}}(y|\mathbf{x})$. (In the main paper we directly center all statistics at the target parameter $\theta_{\mu,\boldsymbol{\nu}}$. For clarity, however, we will separate the discussion on distributional convergence from the smoothing bias in this supplementary material. This is reflected by the superscript “circle.”) By combining the results of Lemmas (ref) and (ref), we have \begin{align*} \sup_{y \in \mathcal{Y}, \mathbf{x} \in \mathcal{X}}\left| \check{\mathbb{S}}_{{\mu, \boldsymbol{\nu}}}^\circ(y, \mathbf{x}) - \bar{\mathbb{S}}_{{\mu, \boldsymbol{\nu}}} (y, \mathbf{x}) \right| = O_{\mathtt{TC}}\Big(\frac{\log (n)}{\sqrt{nh^d}}\Big). \end{align*} As a result, \begin{align*} \sup_{u \in \mathbb{R}} \left| \mathbb{P} \left[ \check{\mathbb{S}}_{{\mu, \boldsymbol{\nu}}}^\circ (y, \mathbf{x}) \leq u \right] - \Phi(u) \right| = O\Big( \frac{\log (n)}{\sqrt{nh^d}} + \mathtt{r_{BE}}\Big). \end{align*} To present the pointwise distributional approximation result for the estimator $\hat{\theta}_{{\mu, \boldsymbol{\nu}}}(y|\mathbf{x})$, we define the following statistic \begin{align*} \hat{\mathbb{S}}_{{\mu, \boldsymbol{\nu}}}^\circ(y, \mathbf{x}) &= \frac{1}{nh^{d+\mu+|\boldsymbol{\nu}|}\sqrt{\mathsf{V}_{{\mu, \boldsymbol{\nu}}}(y, \mathbf{x})} }\sum_{i=1}^n \mathbf{e}_{\mu}^\intercal \hat{\mathbf{S}}_y^{-1} \bigg[\frac{1}{n}\sum_{j=1}^n \Big[\mathbbm{1}(y_i\leq y_j) - F(y_j|\mathbf{x}_i) \Big] \frac{1}{h}\mathbf{P} \Big(\frac{y_j-y}{h}\Big)\bigg]\\ &\qquad\qquad\qquad\qquad\qquad\qquad\qquad\qquad\qquad\qquad\mathbf{Q} \left(\frac{\mathbf{x}_i-\mathbf{x}}{h}\right)^\intercal \hat{\mathbf{S}}_{\mathbf{x}}^{-1} \mathbf{e}_{\boldsymbol{\nu}}. \end{align*} It is worth mentioning that $\hat{\mathbb{S}}_{{\mu, \boldsymbol{\nu}}}^\circ(y, \mathbf{x})$ is not exactly centered and therefore, it is not mean zero. Nevertheless, by the results of Lemmas (ref) and (ref), and the concentration inequality for second order U-statistics in Equation (3.5) of Gine-Latala-Zinn_2000_Ustat (Lemmas 7 and 8 in the main paper), we have \begin{align*} \sup_{y \in \mathcal{Y}, \mathbf{x} \in \mathcal{X}}\left| \hat{\mathbb{S}}_{{\mu, \boldsymbol{\nu}}}^\circ(y, \mathbf{x}) - \check{\mathbb{S}}_{{\mu, \boldsymbol{\nu}}}^\circ (y, \mathbf{x}) \right| =O_{\mathtt{TC}} \Big(\frac{\log (n)}{\sqrt{nh^2}}\Big). \end{align*} Then we can conclude that the coverage error satisfies \begin{align*} \sup_{u \in \mathbb{R}} \left| \mathbb{P} \left[ \hat{\mathbb{S}}_{{\mu, \boldsymbol{\nu}}}^\circ (y, \mathbf{x}) \leq u \right] - \Phi(u) \right| = O\Big(\frac{\log (n)}{\sqrt{nh^{d\vee 2}}} + \mathtt{r_{BE}}\Big). \end{align*}

Uniform large-sample properties

To conduct statistical inference on the entire function $\theta_{{\mu, \boldsymbol{\nu}}}$, such as constructing confidence bands or testing shape restrictions, we need uniform distributional approximations to our estimators. In this section, we will consider large-sample properties of our estimator which hold uniformly on $\mathcal{Y} \times \mathcal{X} = [0,1]^{d+1}$. In the following remark, we demonstrate that the local sample size is uniformly large on the support $\mathcal{Y} \times \mathcal{X}$.

remark[Local sample size] Consider an evaluation point $(y,\mathbf{x})$ in $\mathcal{Y} \times \mathcal{X}$. We can define the local sample size by \[ n_{y,\mathbf{x}} = \sum_{i=1}^n \mathbbm{1}(|y_i-y|\leq \mathfrak{c}_1h)\mathbbm{1}(|\mathbf{x}_i-\mathbf{x}|\leq \mathfrak{c}_1h). \] We employed the Euclidean norm in the definition, which is innocuous for our purposes, as all norms are equivalent in finite dimensional spaces. For this reason, we also introduced the constant $\mathfrak{c}_1$. The purpose of this remark is to provide a uniform control on the local sample size. In particular, we have the following result: for some positive constant $\mathfrak{c}_2$ and any shrinking sequence $\mathfrak{r}$, \begin{align*} \mathbbm{1}\left(\inf_{y\in\mathcal{Y},\mathbf{x}\in\mathcal{X}}\left| n_{y,\mathbf{x}} \right| < \mathfrak{c}_2 \frac{\log (n)}{nh^{d+1}}\right) = O_{\mathtt{TC}}(\mathfrak{r}). \end{align*} The result above builds on the lemma: \begin{lem}[Probabilistic bound on the smallest multinomial cell] Let $\mathbf{z}=(z_1,z_2,\dots,z_{J_n})^\intercal$ follow a multinomial distribution with parameters $n$ (number of trials), $J_n$ (number of cells), and $1/J_n$ (probability for each cell), $\delta_n\in(0,1)$, and $\pi_n = n/(J_n\log (n))$. If $\delta_n^2\pi_n\to \infty$, then for any $\mathfrak{c}_1>0$, \begin{align*} \limsup_{n\to\infty}n^{\mathfrak{c}_1}\mathbb{P}\left[ \min_{1\leq j\leq J_n}z_j < (1-\delta_n) \frac{n}{J_n} \right] <\infty. \end{align*} \end{lem}

We now establish the uniform convergence rate of our estimator.

lem[Uniform rate of convergence] Let Assumptions (ref), (ref) and (ref) hold with $h \to 0$ and $nh^{d+1} / \log (n)\to\infty$. In addition, $\theta_{\mu',\boldsymbol{\nu}'}$ exists and is continuous for all $\mu' + |\boldsymbol{\nu}'|= \max\{ \mathfrak{q}+1+\mu,\ \mathfrak{p}+1+|\boldsymbol{\nu}| \}$. Then\\ (i) $\mu=0$: \begin{align*} &\sup_{y\in \mathcal{Y}, \mathbf{x} \in \mathcal{X}}\left| \check{\theta}_{0,\boldsymbol{\nu}}(y|\mathbf{x}) - \theta_{0,\boldsymbol{\nu}}(y|\mathbf{x}) \right| = O_{\mathtt{TC}}\Big(h^{\mathfrak{q}+1-|\boldsymbol{\nu}|} + h^{\mathfrak{p}+1} + \sqrt{\frac{\log (n)}{nh^{d+2|\boldsymbol{\nu}|}}}\Big); \end{align*} (ii) $\mu>0$: \begin{align*} &\sup_{y\in \mathcal{Y}, \mathbf{x} \in \mathcal{X}}\left| \check{\theta}_{{\mu, \boldsymbol{\nu}}}(y|\mathbf{x}) - \theta_{{\mu, \boldsymbol{\nu}}}(y|\mathbf{x}) \right| = O_{\mathtt{TC}}\Big(h^{\mathfrak{q}+1-|\boldsymbol{\nu}|} + h^{\mathfrak{p}+1-\mu} + \sqrt{\frac{\log (n)}{nh^{d+2\mu+2|\boldsymbol{\nu}|-1}}}\Big). \end{align*} The same conclusions hold for $\hat{\theta}_{{\mu, \boldsymbol{\nu}}}(y|\mathbf{x})$.

In the next lemma, we characterize the uniform convergence rate of the variance estimators introduced in the previous section.

lem[Uniform variance estimation] Let Assumptions (ref), (ref) and (ref) hold with $h \to 0$ and $nh^{d+1} / \log (n)\to\infty$. In addition, $\theta_{0,\boldsymbol{\nu}}$ exists and is continuous for all $|\boldsymbol{\nu}|\leq \mathfrak{q}+1$. Then \begin{align*} \sup_{y \in \mathcal{Y}, \mathbf{x} \in \mathcal{X}}\bigg| \frac{\check{\mathsf{V}}_{{\mu, \boldsymbol{\nu}}}(y, \mathbf{x}) - {\mathsf{V}}_{{\mu, \boldsymbol{\nu}}}(y, \mathbf{x}) }{{\mathsf{V}}_{{\mu, \boldsymbol{\nu}}}(y, \mathbf{x}) } \bigg| = O_{\mathtt{TC}}\left(\mathtt{r_{VE}}\right),\quad where \mathtt{r_{VE}}= h^{ \mathfrak{q}+\frac{1}{2}} + \sqrt{\frac{\log (n)}{nh^{d+1}}}. \end{align*} Let $G = F_y$, then the same conclusions hold for $\hat{\mathsf{V}}_{\mu,\boldsymbol{\nu}}(y, \mathbf{x})$.

Now, we introduce the Studentized processes for each of the estimators, $\hat{\theta}_{{\mu, \boldsymbol{\nu}}}$ and $\check{\theta}_{{\mu, \boldsymbol{\nu}}}$:

align*[align* omitted — 540 chars of source]

In the following lemma we study the error that arises from the Studentization of our estimators.

lem[Studentization error] Let Assumptions (ref), (ref) and (ref) hold with $h \to 0$, $nh^{d+1} / \log (n)\to\infty$. In addition, $\theta_{0,\boldsymbol{\nu}}$ exists and is continuous for all $|\boldsymbol{\nu}|\leq \mathfrak{q}+1$. Then \begin{align*} \sup_{y \in \mathcal{Y}, \mathbf{x} \in \mathcal{X}}\left| \check{\mathbb{T}}_{{\mu, \boldsymbol{\nu}}}^\circ(y, \mathbf{x}) - \check{\mathbb{S}}_{{\mu, \boldsymbol{\nu}}}^\circ(y, \mathbf{x}) \right| =O_{\mathtt{TC}}\left(\mathtt{r_{SE}}\right),\qquad where \mathtt{r_{SE}}=\sqrt{\log (n) }\mathtt{r_{VE}}. \end{align*} The same holds for $\hat{\mathbb{T}}_{{\mu, \boldsymbol{\nu}}}^\circ(y, \mathbf{x}) - \hat{\mathbb{S}}_{{\mu, \boldsymbol{\nu}}}^\circ(y, \mathbf{x})$.

Our next goal is to establish a uniform normal approximation to the process $\bar{\mathbb{S}}_{{\mu, \boldsymbol{\nu}}}(y,\mathbf{x})$. See Appendix A.4 of the main paper for important properties of the equivalent kernel.

theorem[Strong approximation] Let Assumptions (ref), (ref) and (ref) hold with $h \to 0$ and $nh^{d+1} / \log (n)\to\infty$. Also assume $\mu \geq 1$. Define \begin{align*} \mathtt{r_{SA}} = \left(\frac{\log^{d+1} n}{nh^{d+1}}\right)^{\frac{1}{2d+2}}. \end{align*} Then there exist two centered processes, $\bar{\mathbb{S}}^{\prime}_{{\mu, \boldsymbol{\nu}}}(y, \mathbf{x}) $ and $\mathbb{G}_{{\mu, \boldsymbol{\nu}}}(y, \mathbf{x}) $, such that (i) $\bar{\mathbb{S}}_{{\mu, \boldsymbol{\nu}}}(y, \mathbf{x}) $ and $\bar{\mathbb{S}}^{\prime}_{{\mu, \boldsymbol{\nu}}}(y, \mathbf{x}) $ have the same distribution, (ii) $\mathbb{G}_{{\mu, \boldsymbol{\nu}}}(y, \mathbf{x})$ is a Gaussian process and has the same covariance kernel as $\bar{\mathbb{S}}_{{\mu, \boldsymbol{\nu}}}(y, \mathbf{x})$, and (iii) \begin{align*} \sup_{y \in \mathcal{Y}, \mathbf{x} \in \mathcal{X}}\left|\bar{\mathbb{S}}^{\prime}_{{\mu, \boldsymbol{\nu}}}(y, \mathbf{x})-\mathbb{G}_{{\mu, \boldsymbol{\nu}}}(y, \mathbf{x})\right| = O_{\mathtt{TC}}\left(\mathtt{r_{SA}}\right). \end{align*}

The Gaussian approximation in the above lemma is not feasible, as its covariance kernel depends on unknowns. To be more precise, the covariance kernel takes the form

align*[align* omitted — 421 chars of source]

where

align*[align* omitted — 306 chars of source]

We consider two estimators of the covariance kernel

align*[align* omitted — 573 chars of source]

and

align*[align* omitted — 596 chars of source]
lem[Uniform consistency of the correlation estimator] Let Assumptions (ref), (ref) and (ref) hold with $h \to 0$ and $nh^{d+1} / \log (n)\to\infty$. In addition, $\theta_{0,\boldsymbol{\nu}}$ exists and is continuous for all $|\boldsymbol{\nu}|\leq \mathfrak{q}+1$. Then \begin{align*} \sup_{y,y' \in \mathcal{Y}, \mathbf{x},\mathbf{x}' \in \mathcal{X}}\left| \check{\rho}_{{\mu, \boldsymbol{\nu}}}(y,\mathbf{x},y',\mathbf{x}') - \rho_{{\mu, \boldsymbol{\nu}}}(y,\mathbf{x},y',\mathbf{x}') \right| =O_{\mathtt{TC}}\left(\mathtt{r_{VE}}\right), \end{align*} where $\mathtt{r_{VE}}$ is defined in Lemma (ref). Let $G = F_y$, then the same conclusion holds for $\hat{\rho}_{{\mu, \boldsymbol{\nu}}}(y,\mathbf{x},y',\mathbf{x}')$.
lem[Gaussian comparison] Let Assumptions (ref), (ref) and (ref) hold with $h \to 0$, $nh^{d+1} / \log (n)\to\infty$. In addition, $\theta_{0,\boldsymbol{\nu}}$ exists and is continuous for all $|\boldsymbol{\nu}|\leq \mathfrak{q}+1$. Then conditional on the data there exists a centered Gaussian process, $\check{\mathbb{G}}_{{\mu, \boldsymbol{\nu}}}(y, \mathbf{x}) $ with unit variance and correlation function $\check{\rho}_{{\mu, \boldsymbol{\nu}}}$, and another centered Gaussian process, $\hat{\mathbb{G}}_{{\mu, \boldsymbol{\nu}}}(y, \mathbf{x}) $ with unit variance and correlation kernel $\hat{\rho}_{{\mu, \boldsymbol{\nu}}}$, such that \begin{align*} &\sup_{u \in \mathbb{R}}\Big| \mathbb{P}\Big[ \sup_{y \in \mathcal{Y}, \mathbf{x} \in \mathcal{X}}|\check{\mathbb{G}}_{{\mu, \boldsymbol{\nu}}}(y, \mathbf{x}) |\leq u \Big| \mathbf{Y},\mathbf{X} \Big] - \mathbb{P}\Big[ \sup_{y \in \mathcal{Y}, \mathbf{x} \in \mathcal{X}}|\mathbb{G}_{{\mu, \boldsymbol{\nu}}}(y, \mathbf{x}) |\leq u \Big] \Big| = O_{\mathbb{P}} \left(\log(n)\sqrt{\mathtt{r_{VE}}}\right),\\ &\sup_{u \in \mathbb{R}}\Big| \mathbb{P}\Big[ \sup_{y \in \mathcal{Y}, \mathbf{x} \in \mathcal{X}}|\hat{\mathbb{G}}_{{\mu, \boldsymbol{\nu}}}(y, \mathbf{x}) |\leq u \Big| \mathbf{Y},\mathbf{X} \Big] - \mathbb{P}\Big[ \sup_{y \in \mathcal{Y}, \mathbf{x} \in \mathcal{X}}|\mathbb{G}_{{\mu, \boldsymbol{\nu}}}(y, \mathbf{x}) |\leq u \Big] \Big| = O_{\mathbb{P}} \left(\log(n)\sqrt{\mathtt{r_{VE}}}\right). \end{align*}
theorem[Feasible normal approximation] Let Assumptions (ref), (ref) and (ref) hold with $h \to 0$ and $nh^{d+1} / \log (n)\to\infty$. In addition, $\theta_{0,\boldsymbol{\nu}}$ exists and is continuous for all $|\boldsymbol{\nu}|\leq \mathfrak{q}+1$. Also assume $\mu\geq 1$. Then \begin{align*} &\sup_{u \in \mathbb{R}}\Big| \mathbb{P}\Big[ \sup_{y \in \mathcal{Y}, \mathbf{x} \in \mathcal{X}}|\check{\mathbb{T}}_{{\mu, \boldsymbol{\nu}}}^\circ (y, \mathbf{x}) |\leq u \Big] - \mathbb{P}\Big[ \sup_{y \in \mathcal{Y}, \mathbf{x} \in \mathcal{X}}|\check{\mathbb{G}}_{{\mu, \boldsymbol{\nu}}}(y, \mathbf{x})|\leq u \Big| \mathbf{Y},\mathbf{X} \Big] \Big|\\ &\qquad\qquad = O_{\mathbb{P}} \left(\sqrt{\log(n)}\mathtt{r_{SA}} + \log(n)\sqrt{\mathtt{r_{VE}}}\right),\\ &\sup_{u \in \mathbb{R}}\Big| \mathbb{P}\Big[ \sup_{y \in \mathcal{Y}, \mathbf{x} \in \mathcal{X}}|\hat{\mathbb{T}}_{{\mu, \boldsymbol{\nu}}}^\circ (y, \mathbf{x}) |\leq u \Big] - \mathbb{P}\Big[ \sup_{y \in \mathcal{Y}, \mathbf{x} \in \mathcal{X}}|\hat{\mathbb{G}}_{{\mu, \boldsymbol{\nu}}}(y, \mathbf{x})|\leq u \Big| \mathbf{Y},\mathbf{X} \Big] \Big|\\ &\qquad\qquad = O_{\mathbb{P}} \left(\sqrt{\log(n)}\mathtt{r_{SA}} + \log(n)\sqrt{\mathtt{r_{VE}}}\right). \end{align*}

Applications

Confidence bands

A natural corollary of Theorem (ref) is that one can employ critical values computed from $\check{\mathbb{G}}_{{\mu, \boldsymbol{\nu}}}(y, \mathbf{x}) $ and $\hat{\mathbb{G}}_{{\mu, \boldsymbol{\nu}}}(y, \mathbf{x})$ to construct confidence bands. To be very precise, define

align*[align* omitted — 542 chars of source]

Then level $(1-\alpha)$ confidence bands can be constructed as

align*[align* omitted — 613 chars of source]

whose coverage error is given in the following theorem.

theorem[Confidence band] Consider the setting of Theorem (ref). In addition, $\theta_{\mu',\boldsymbol{\nu}'}$ exists and is continuous for all $\mu' + |\boldsymbol{\nu}'|= \max\{ \mathfrak{q}+1+\mu,\ \mathfrak{p}+1+|\boldsymbol{\nu}| \}$. Then \begin{align*} \mathbb{P}\left[ \theta_{\mu,\boldsymbol{\nu}}(y|\mathbf{x}) \in \check{\mathcal{C}}_{{\mu, \boldsymbol{\nu}}}(1-\alpha),\ \forall (y,\mathbf{x})\in\mathcal{Y}\times \mathcal{X} \right] \geq 1-\alpha - O\Big(\sqrt{\log(n)}\Big(\mathtt{r_{SA}} + \frac{\mathtt{r_{B}}}{\mathtt{r_{V}}} \Big) + \log(n)\sqrt{\mathtt{r_{VE}}}\Big),\\ \mathbb{P}\left[ \theta_{\mu,\boldsymbol{\nu}}(y|\mathbf{x}) \in \hat{\mathcal{C}}_{{\mu, \boldsymbol{\nu}}}(1-\alpha),\ \forall (y,\mathbf{x})\in\mathcal{Y}\times \mathcal{X} \right] \geq 1-\alpha - O\Big(\sqrt{\log(n)}\Big(\mathtt{r_{SA}} + \frac{\mathtt{r_{B}}}{\mathtt{r_{V}}} \Big) + \log(n)\sqrt{\mathtt{r_{VE}}}\Big). \end{align*}

Parametric specification testing

In applications, it is not uncommon to estimate conditional densities or higher-order derivatives by specifying a parametric family of distributions. While such parametric restrictions may provide reasonable approximations, it is still worthwhile to conduct specification testing. To be specific, assume the researcher postulates the following class

align*[align* omitted — 156 chars of source]

where $\mathsf{\Gamma}_{\mu,\boldsymbol{\nu}}$ is some compact parameter space. We abstract away from the specifics of the estimation technique, and assume that the researcher also picks some estimator (maximum likelihood, minimum distance, etc.) $\hat{\boldsymbol{\gamma}}$. Under fairly mild conditions, the estimator will converge in probability to some (possibly pseudo-true) parameter $\bar{\boldsymbol{\gamma}}$ in the parameter space $\mathsf{\Gamma}_{\mu,\boldsymbol{\nu}}$. As before, we will denote the true parameter as $\theta_{\mu,\boldsymbol{\nu}}(y|\mathbf{x})$, and consider the following competing hypotheses:

align*[align* omitted — 296 chars of source]

The test statistics we employ takes the following form

align*[align* omitted — 526 chars of source]
theorem[Parametric specification testing] Consider the setting of Theorem (ref). In addition, $\theta_{\mu',\boldsymbol{\nu}'}$ exists and is continuous for all $\mu' + |\boldsymbol{\nu}'|= \max\{ \mathfrak{q}+1+\mu,\ \mathfrak{p}+1+|\boldsymbol{\nu}| \}$. Assume the parametric estimate satisfies \begin{align*} \sup_{ y \in \mathcal{Y}, \mathbf{x} \in \mathcal{X}}\left| \theta_{\mu,\boldsymbol{\nu}}(y|\mathbf{x};\hat{\boldsymbol{\gamma}}) - \theta_{\mu,\boldsymbol{\nu}}(y|\mathbf{x};\bar{\boldsymbol{\gamma}}) \right| = O_{\mathtt{TC}}\left(\mathtt{r_{PS}}\right), \end{align*} for some $\mathtt{r_{PS}}$. Then under the null hypothesis, \begin{align*} \mathbb{P}\Big[ \sup_{y \in \mathcal{Y}, \mathbf{x} \in \mathcal{X}}|\check{\mathbb{T}}_{\mathtt{PS}}(y, \mathbf{x}) | > \check{\mathtt{cv}}_{{\mu, \boldsymbol{\nu}}}(\alpha) \Big] \leq \alpha + O\Big(\sqrt{\log(n)}\Big(\mathtt{r_{SA}} + \frac{\mathtt{r_{B}}+\mathtt{r_{PS}}}{\mathtt{r_{V}}} \Big) + \log(n)\sqrt{\mathtt{r_{VE}}}\Big),\\ \mathbb{P}\Big[ \sup_{y \in \mathcal{Y}, \mathbf{x} \in \mathcal{X}}|\hat{\mathbb{T}}_{\mathtt{PS}}(y, \mathbf{x}) | > \hat{\mathtt{cv}}_{{\mu, \boldsymbol{\nu}}}(\alpha) \Big] \leq \alpha + O\Big(\sqrt{\log(n)}\Big(\mathtt{r_{SA}} + \frac{\mathtt{r_{B}}+\mathtt{r_{PS}}}{\mathtt{r_{V}}} \Big) + \log(n)\sqrt{\mathtt{r_{VE}}}\Big). \end{align*}

Testing shape restrictions

Now consider shape restrictions on the conditional density or its derivatives. Let $c(y,\mathbf{x})$ be a pre-specified function, and we study the following one-sided competing hypotheses.

align*[align* omitted — 204 chars of source]

The statistic we employ takes the form

align*[align* omitted — 412 chars of source]

and we will reject the null hypothesis if the test statistic exceeds a critical value.

theorem[Shape restriction testing] Consider the setting of Theorem (ref). In addition, $\theta_{\mu',\boldsymbol{\nu}'}$ exists and is continuous for all $\mu' + |\boldsymbol{\nu}'|= \max\{ \mathfrak{q}+1+\mu,\ \mathfrak{p}+1+|\boldsymbol{\nu}| \}$. Then under the null hypothesis, \begin{align*} \mathbb{P}\Big[ \sup_{y \in \mathcal{Y}, \mathbf{x} \in \mathcal{X}}\check{\mathbb{T}}_{\mathtt{SR}}(y, \mathbf{x}) > \check{\mathtt{cv}}_{{\mu, \boldsymbol{\nu}}}(\alpha) \Big] \leq \alpha + O\Big(\sqrt{\log(n)}\Big(\mathtt{r_{SA}} + \frac{\mathtt{r_{B}}}{\mathtt{r_{V}}} \Big) + \log(n)\sqrt{\mathtt{r_{VE}}}\Big),\\ \mathbb{P}\Big[ \sup_{y \in \mathcal{Y}, \mathbf{x} \in \mathcal{X}}\hat{\mathbb{T}}_{\mathtt{SR}}(y, \mathbf{x}) > \hat{\mathtt{cv}}_{{\mu, \boldsymbol{\nu}}}(\alpha) \Big] \leq \alpha + O\Big(\sqrt{\log(n)}\Big(\mathtt{r_{SA}} + \frac{\mathtt{r_{B}} }{\mathtt{r_{V}}} \Big) + \log(n)\sqrt{\mathtt{r_{VE}}}\Big). \end{align*}

Bandwidth selection

We assume throughout this section that $\mu >0$. Using the bias expression derived in Lemma (ref), and the leading variance is as characterized in Lemma (ref), we can derive precise expressions for bandwidth selection.

Pointwise asymptotic MSE minimization

Following from Fan-Gijbels_1996_Book, the pointwise MSE-optimal bandwidth is defined as a minimizer of the following optimization problem

align*[align* omitted — 234 chars of source]

The solution to this equation gives an MSE-optimal bandwidth that depends on (i) the order of the polynomials, (ii) the order of the derivative to be estimated, and (iii) the position of the evaluation point. \

Case 1: $\mathfrak{q}-|\boldsymbol{\nu}| = \mathfrak{p}-\mu$, odd

In this case, both the leading bias constants, $B_{(i),\mathfrak{q}+1}(y,\mathbf{x})$ and $B_{(ii),\mathfrak{p}+1}(y,\mathbf{x})$, are nonzero. Therefore, the MSE-optimal bandwidth is

align*[align* omitted — 694 chars of source]

Case 2: $\mathfrak{q}-|\boldsymbol{\nu}| = \mathfrak{p}-\mu$, even; either $\mathbf{x}$ or $y$ is at or near the boundary

In this case, at least one of the leading bias constants, $B_{(i),\mathfrak{q}+1}(y,\mathbf{x})$ and $B_{(ii),\mathfrak{p}+1}(y,\mathbf{x})$, is nonzero. Therefore, the MSE-optimal bandwidth is the same as in Case 1:

align*[align* omitted — 694 chars of source]

Case 3: $\mathfrak{q}-|\boldsymbol{\nu}| = \mathfrak{p}-\mu \neq 0$, even; both $\mathbf{x}$ and $y$ are interior

In this case, both leading bias constants are zero. Therefore, the MSE-optimal bandwidth will depend on higher-order bias terms:

align*[align* omitted — 694 chars of source]

Case 4: $\mathfrak{q}-|\boldsymbol{\nu}| = \mathfrak{p}-\mu = 0$, even; both $\mathbf{x}$ and $y$ are interior

As in Case 3, both leading bias constants are zero. The difference, however, is that the leading bias will involve an extra term:

align*[align* omitted — 700 chars of source]

Case 5: $\mathfrak{q}-|\boldsymbol{\nu}| < \mathfrak{p}-\mu$, $\mathfrak{q}-|\boldsymbol{\nu}|$ odd

In this case, the leading bias will involve only one term:

align*[align* omitted — 522 chars of source]

Case 6: $\mathfrak{q}-|\boldsymbol{\nu}| = \mathfrak{p}-\mu-1$, $\mathfrak{q}-|\boldsymbol{\nu}|$ even; $\mathbf{x}$ is interior

In this case, the leading bias will involve two terms:

align*[align* omitted — 697 chars of source]

Case 7: $\mathfrak{q}-|\boldsymbol{\nu}| < \mathfrak{p}-\mu-1$, $\mathfrak{q}-|\boldsymbol{\nu}|$ even; $\mathbf{x}$ is interior

In this case, the leading bias will involve only one term:

align*[align* omitted — 531 chars of source]

Case 8: $\mathfrak{q}-|\boldsymbol{\nu}| > \mathfrak{p}-\mu$, $\mathfrak{p}-\mu$ odd

In this case, the leading bias will involve only one term:

align*[align* omitted — 509 chars of source]

Case 9: $\mathfrak{q}-|\boldsymbol{\nu}|-1 = \mathfrak{p}-\mu$, $\mathfrak{q}-|\boldsymbol{\nu}|$ even; $y$ is interior

In this case, the leading bias will involve two terms:

align*[align* omitted — 697 chars of source]

Case 10: $\mathfrak{q}-|\boldsymbol{\nu}|-1 > \mathfrak{p}-\mu$, $\mathfrak{p}-\mu$ even; $y$ is interior

In this case, the leading bias will involve only one term:

align*[align* omitted — 518 chars of source]

Rule-of-thumb bandwidth selection

This section outlines the methodology that the companion R package, lpcde, uses to construct the rule-of-thumb bandwidth selection.

The rule-of-thumb estimation uses the following assumptions in order to compute the optimal bandwidth:

itemize• the data is jointly normal, • $\mathbf{X}$ and $\mathbf{Y}$ are independent, and, • $p-\mu = q-|\nu| = 1$.

Using these assumptions, each of the terms in the formula given in Case 1 of Section (ref) are computed as follows:

enumerate• The densities and relevant derivatives are evaluated based on the joint normal distribution assumption. • $\mathbf{S}_y$, $\mathbf{T}_y$, $\mathbf{T}_{\mathbf{x}}$ and $\mathbf{S}_{\mathbf{x}}$ matrices are computed by plugging in for the range of the data, the evaluation point, the respective marginal densities, and the kernel used. • Similarly, the $\mathbf{c}_{y}$ and $\mathbf{c}_{\mathbf{x}}$ vectors are computed by using the range of the data, the evaluation point, kernel function, and the respective marginal densities. • Bias and variance estimates are constructed using the relevant entries of the vectors and matrices.

Alternative variance estimators

V-statistic variance estimator

We propose here an alternative variance estimator that is quick to implement in practice. We start by first observing that the estimator $\hat{\theta}_{\mu, \boldsymbol{\nu}}(y|\mathbf{x})$ is a V-statistic. That is,

align[align omitted — 589 chars of source]

where,

align*[align* omitted — 332 chars of source]

Note that $a(\cdot)$ and $b(\cdot)$ are scalar functions that are non-zero only for data points that are within $h$ distance of the evaluation point. The second term in (ref) can now be symmetrized and treated as a U-statistic. Applying the Hoeffding decomposition to the symmetrized version of the second term and plugging it back into Equation (ref), we get

align[align omitted — 495 chars of source]

where

align*[align* omitted — 192 chars of source]

and

align*[align* omitted — 466 chars of source]

Dependence on polynomial orders is suppressed for notational simplicity. Since each of the terms in (ref) are orthogonal, the variance of the estimator can be expressed as the sum of the variance of each of the terms on the right hand side. Furthermore, we note that the first three terms and $W_{\mu, \boldsymbol{\nu}}(y, \mathbf{x})$ have higher-order variance. Thus, we only need to look at the variance of $L_{\mu, \boldsymbol{\nu}}(y, \mathbf{x})$.

align*[align* omitted — 361 chars of source]

where we know

align*[align* omitted — 249 chars of source]

We can expand and simplify this to get

align*[align* omitted — 794 chars of source]

Note that this expression is identical to the variance expression derived in the proof of Lemma (ref). This leads to a natural alternative jackknife covariance estimator,

align*[align* omitted — 225 chars of source]

where

align*[align* omitted — 176 chars of source]

In particular, note that if the two evaluation points are equivalent, we return the variance estimator,

align*[align* omitted — 236 chars of source]

Asymptotic variance estimator

Another alternative variance estimator is a sample version of the asymptotic variance derived in Lemma (ref). That is, each of the matrices in the formula are replaced with sample analogs. That is, \\ (i) $\mu=0$:

align*[align* omitted — 374 chars of source]

(ii) $\mu > 0$:

align*[align* omitted — 463 chars of source]

The covariance can be estimated using similar idea.

Proofs

Proof of Lemma (ref)

Part (i). See the proof of Lemma 1 in the main paper (i.e., Appendix A.3).

Part (ii). Next consider $\mathbf{e}_{\mu}^{\intercal}\mathbf{S}_y^{-1}\big(\bar{\mathbf{R}}_{y, \mathbf{x}} - \mathbb{E}[\bar{\mathbf{R}}_{y, \mathbf{x}} |\mathbf{X}]\big)$, which takes the form

align*[align* omitted — 317 chars of source]

It is straightforward to see that

align*[align* omitted — 287 chars of source]

for some $C'$ that holds uniformly for $y\in \mathcal{Y}$ and $\mathbf{x}\in\mathcal{X}$. We also have the following bound on the variance

align*[align* omitted — 383 chars of source]

Consider the first case above ($\mu=0$). By a discretization $\{ (y_\ell,\mathbf{x}_\ell): 1\leq \ell\leq M_n \}$ of $\mathcal{Y}\times\mathcal{X}$, we have the probabilistic bound due to Bernstein's inequality

align*[align* omitted — 389 chars of source]

provided that we set $\mathtt{r} = \sqrt{\log (n)/(nh^d)}$.$M_n$ is at most polynomial in $n$, and the error from discretization can be ignored. This concludes the proof for the $\mu = 0$ case.

For $\mu > 0$, we set $\mathtt{r} = \sqrt{\log (n)/(nh^{d-1})}$, and the probabilistic bound takes the form

align*[align* omitted — 561 chars of source]

This concludes the proof for the second case, where $\mu>0$.

Proof of Lemma (ref)

The conditional expectation of $\bar{\mathbf{R}}_{y, \mathbf{x}}$ in $\check{\theta}_{{\mu, \boldsymbol{\nu}}}$ is

align*[align* omitted — 544 chars of source]

To proceed, we employ a Taylor expansion of the conditional distribution function to order $s$:

align*[align* omitted — 286 chars of source]

Then, the conditional expectation can be simplified as

align*[align* omitted — 1,169 chars of source]

We note that

align*[align* omitted — 120 chars of source]

and

align*[align* omitted — 170 chars of source]

Therefore,

align*[align* omitted — 628 chars of source]

By Lemma (ref), the second term on the right-hand side satisfies

align*[align* omitted — 547 chars of source]

which means we can denote the leading bias as

align*[align* omitted — 436 chars of source]

For the second claim of this lemma, we again consider a Taylor expansion

align*[align* omitted — 292 chars of source]

Then

align*[align* omitted — 1,675 chars of source]

Proof of Lemma (ref)

Let $\mathbf{c}_1 = \mathbf{S}_y^{-1}\mathbf{e}_{\mu}$ and $\mathbf{c}_2 = \mathbf{S}_{\mathbf{x}}^{-1} \mathbf{e}_{\boldsymbol{\nu}}$.

align*[align* omitted — 1,075 chars of source]

We make a further expansion:

align*[align* omitted — 242 chars of source]

Note that the remainder term, $O(h^2)$, holds uniformly for $y\in\mathcal{Y}$ and $\mathbf{x}_i\in\mathcal{X}$ since the conditional distribution function is assumed to have bounded second derivative. Therefore, {

align*[align* omitted — 1,346 chars of source]

} To conclude the proof, we note that two scenarios can arise: $\mu=0$ and $\mu > 0$. In the second case,

align*[align* omitted — 383 chars of source]

The first case is more involved. If $\theta_{0,\mathbf{0}}(y|\mathbf{x})\neq 0,1$, then

align*[align* omitted — 327 chars of source]

If $\theta_{0,\mathbf{0}}(y|\mathbf{x})=0$ or $1$, then a further expansion is needed, which is why an extra $h$ will be present in the leading variance.

Proof of Lemma (ref)

Consistency of $\check{\mathsf{V}}_{\mu,\boldsymbol{\nu}}(y,\mathbf{x})$. For the purposes of this proof, let $\mathbf{c}_1 = \mathbf{S}_{y}^{-1}\mathbf{e}_{\mu}$, $\hat{\mathbf{c}}_2 = \hat{\mathbf{S}}_{\mathbf{x}}^{-1}\mathbf{e}_{\boldsymbol{\nu}}$, and $\mathbf{c}_2 = \mathbf{S}_{\mathbf{x}}^{-1}\mathbf{e}_{\boldsymbol{\nu}}$. To start, consider

align*[align* omitted — 1,530 chars of source]

First consider term (III). With the uniform convergence result for the estimated conditional distribution function, it is clear that {

align*[align* omitted — 434 chars of source]

}

Now we study term (I), which is clearly unbiased for $\mathsf{V}_{\mu,\boldsymbol{\nu}}(y,\mathbf{x})$. Therefore, we compute its variance.

align*[align* omitted — 755 chars of source]

With iterative expectation (by conditioning on $\mathbf{x}_i$), the above further reduces to

align*[align* omitted — 447 chars of source]

In other words,

align*[align* omitted — 404 chars of source]

Finally, we consider (II). Using the Cauchy-Schwartz inequality, we have

align*[align* omitted — 103 chars of source]

As a result,

align*[align* omitted — 421 chars of source]

To conclude the proof for $\check{\mathsf{V}}_{\mu,\boldsymbol{\nu}}(y,\mathbf{x})$, we note that replacing $\hat{\mathbf{c}}_2$ by $\mathbf{c}_2$ only leads to an additional multiplicative factor $1 + O_{\mathbb{P}}(1/\sqrt{nh^d})$. See Lemma (ref).

Consistency of $\hat{\mathsf{V}}_{\mu,\boldsymbol{\nu}}(y,\mathbf{x})$. For the purposes of this proof, let $\hat{\mathbf{c}}_1 = \hat{\mathbf{S}}_{y}^{-1}\mathbf{e}_{\mu}$, $\mathbf{c}_1 = \mathbf{S}_{y}^{-1}\mathbf{e}_{\mu}$, $\hat{\mathbf{c}}_2 = \hat{\mathbf{S}}_{\mathbf{x}}^{-1}\mathbf{e}_{\boldsymbol{\nu}}$, and $\mathbf{c}_2 = \mathbf{S}_{\mathbf{x}}^{-1}\mathbf{e}_{\boldsymbol{\nu}}$. We first consider the following decomposition

align*[align* omitted — 1,829 chars of source]

By the uniform convergence rate of the estimated conditional distribution function, we have

align*[align* omitted — 434 chars of source]

Next we consider (II). Using the Cauchy-Schwartz inequality, we have

align*[align* omitted — 103 chars of source]

Finally, consider term (I), which has the expansion

align*[align* omitted — 1,622 chars of source]

Then,

align*[align* omitted — 1,266 chars of source]

Using similar techniques, one can show that

align*[align* omitted — 666 chars of source]

To streamline the remaining derivation, define

align*[align* omitted — 339 chars of source]

Then

align*[align* omitted — 708 chars of source]

We have studied the term (I.1.3) in the proof for $\check{\mathsf{V}}_{\mu,\boldsymbol{\nu}}(y,\mathbf{x})$. In particular,

align*[align* omitted — 407 chars of source]

Term (I.1.1) is a mean zero third order U-statistic. Consider its variance

align*[align* omitted — 313 chars of source]

The above expectation is non-zero only in three scenarios: $(j=j',k=k',i\neq i')$, $(j=j',k=k',i=i')$ or $(j=i',k=k',i=j')$. Therefore,

align*[align* omitted — 540 chars of source]

Finally consider (I.1.2), which has a mean of zero. Its variance is

align*[align* omitted — 992 chars of source]

In addition, an extra $h$ factor emerges if $\mu > 0$, or if $\theta_{0, \mathbf{0}}= 0$ or $1$. As a result,

align*[align* omitted — 354 chars of source]

To conclude the proof for $\hat{\mathsf{V}}_{\mu,\boldsymbol{\nu}}(y,\mathbf{x})$, we note that replacing $\hat{\mathbf{c}}_1$ by $\mathbf{c}_1$ and $\hat{\mathbf{c}}_2$ by $\mathbf{c}_2$ only leads to an additional multiplicative factor $1 + O_{\mathbb{P}}(1/\sqrt{nh^d})$. See Lemma (ref).

Proof of Theorem (ref)

We will write

align*[align* omitted — 380 chars of source]

Define $\mathbf{c}_1 = \mathbf{S}_{y}^{-1}\mathbf{e}_{\mu}$ and $\mathbf{c}_2 = \mathbf{S}_{\mathbf{x}}^{-1}\mathbf{e}_{\boldsymbol{\nu}}$.

To apply the Berry-Esseen theorem, we first compute the third moment

align*[align* omitted — 490 chars of source]

The leading term in the above is simply

align*[align* omitted — 904 chars of source]

Note that the above will be exactly zero in cases (ii) and (iii) of Lemma (ref).

Omitted details of Remark (ref)

Approximation and coverage error of $\check{\mathbb{S}}_{{\mu, \boldsymbol{\nu}}}^\circ(y, \mathbf{x})$. To start, {

align*[align* omitted — 662 chars of source]

} By allowing the constant $\mathfrak{c}_1$ to take possibly different values in each term, we have

align*[align* omitted — 839 chars of source]

where the conclusions follow from the uniform rates established in Lemma (ref) and the variance calculations in Lemma (ref). Next, we consider the normal approximation error. Note that

align*[align* omitted — 472 chars of source]

which means

align*[align* omitted — 220 chars of source]

where $\mathtt{r_{BE}}$ is defined in Theorem (ref).

\noindentApproximation and coverage error of $\hat{\mathbb{S}}_{{\mu, \boldsymbol{\nu}}}^\circ(y, \mathbf{x})$. To begin with, we decompose the double sum into

align*[align* omitted — 1,184 chars of source]

where we set $G = F_y$. Term (I) represents the leave-in bias, and it is straightforward to show that

align*[align* omitted — 221 chars of source]

for some constants $\mathfrak{c}_{1}$, $\mathfrak{c}_{2}$, and $\mathfrak{c}_{3}$. See Lemma (ref) for the proof strategy.

Term (II) is a degenerate U-statistic. Define

align*[align* omitted — 384 chars of source]

where $\mathbf{c}_1$ and $\mathbf{c}_2$ are arbitrary (fixed) vectors of conformable dimensions. Then we apply Equation (3.5) of Gine-Latala-Zinn_2000_Ustat (Lemmas 7 and 8 in the main paper), which gives (the value of $C'$ may change for each line)

align*[align* omitted — 472 chars of source]

As a result,

align*[align* omitted — 201 chars of source]

for some constants $\mathfrak{c}_{1}$, $\mathfrak{c}_{2}$, and $\mathfrak{c}_{3}$.

We now collect the pieces. The difference between $\hat{\mathbb{S}}_{{\mu, \boldsymbol{\nu}}}^\circ(y, \mathbf{x})$ and $\check{\mathbb{S}}_{{\mu, \boldsymbol{\nu}}}^\circ(y, \mathbf{x})$ is

align*[align* omitted — 743 chars of source]

and the conclusion follows from Lemmas (ref) and (ref).

Omitted details of Remark (ref)

To show this result, we first partition the support $\mathcal{Y} \times \mathcal{X}$ into cubes with edge length $\mathfrak{c}_3h$, where the constant $\mathfrak{c}_3$ is chosen so that, for any $(y,\mathbf{x})$ in $\mathcal{Y} \times \mathcal{X}$, at least one of the cubes will be contained in the ball $\{ y': |y'-y|\leq \mathfrak{c}_1h\}\times \{ \mathbf{x}': |\mathbf{x}'-\mathbf{x}|\leq \mathfrak{c}_1h\}$. The number of cubes in this partition is $\lceil1/(\mathfrak{c}_3h)^{d+1}\rceil$. Then the conclusion follows from Lemma (ref).

Proof of Lemma (ref). For simplicity let $c_n = (1-\delta_n) \frac{n}{J_n}$. We first employ the union bound

align*[align* omitted — 114 chars of source]

Note that $z_j\sim \mathrm{Binomial}(n;\frac{1}{J_n})$, and therefore

align*[align* omitted — 363 chars of source]

Then we have

align*[align* omitted — 221 chars of source]

Therefore, the above will vanish faster than any polynomial of $n$ provided that $\delta_n^2\pi_n\to\infty$.

Proof of Lemma (ref)

Part (i) Convergence of $\check{\theta}_{\mu,\boldsymbol{\nu}} - \theta_{\mu,\boldsymbol{\nu}}$. Recall that we have the following decomposition of our estimator

align*[align* omitted — 1,273 chars of source]

(I) is simply the conditional bias, whose order is given in Lemma (ref). The convergence rate of (II) can be easily deduced from that of $\mathbf{e}_{\mu}^{\intercal}\mathbf{S}_y^{-1}\left(\bar{\mathbf{R}}_{y, \mathbf{x}} - \mathbb{E} \left[\bar{\mathbf{R}}_{y, \mathbf{x}}|\mathbf{X}\right]\right)$ in Lemma (ref). Finally, it should be clear that (III) is negligible relative to (II).

Part (ii) Convergence of $\hat{\theta}_{\mu,\boldsymbol{\nu}} - \theta_{\mu,\boldsymbol{\nu}}$. This part follows from Remark (ref).

Proof of Lemma (ref)

Uniform consistency of $\check{\mathsf{V}}_{\mu,\boldsymbol{\nu}}(y,\mathbf{x})$. For the purposes of this proof, let $\mathbf{c}_1 = \mathbf{S}_{y}^{-1}\mathbf{e}_{\mu}$, $\hat{\mathbf{c}}_2 = \hat{\mathbf{S}}_{\mathbf{x}}^{-1}\mathbf{e}_{\boldsymbol{\nu}}$, and $\mathbf{c}_2 = \mathbf{S}_{\mathbf{x}}^{-1}\mathbf{e}_{\boldsymbol{\nu}}$. To start, consider

align*[align* omitted — 1,538 chars of source]

First consider term (I). Clearly this term is unbiased for $\mathsf{V}_{\mu,\boldsymbol{\nu}}(y,\mathbf{x})$. In the proof of Lemma (ref), we showed that

align*[align* omitted — 392 chars of source]

Also note that

align*[align* omitted — 290 chars of source]

In the above, the constants, $C_1$ and $C_2$, can be chosen to be independent of the evaluation point, the sample size, and the bandwidth. Then by a proper discretization of $\mathcal{Y}\times \mathcal{X}$, and applying the union bound and Bernstein's inequality, one has

align*[align* omitted — 426 chars of source]

for some constants $\mathfrak{c}_1$, $\mathfrak{c}_2$, and $\mathfrak{c}_3$. In addition, $\mathfrak{c}_3$ can be made arbitrarily large by appropriate choices of $\mathfrak{c}_1$. See the proof of Lemma (ref) for an example of this proof strategy.

Next consider term (III). With the uniform convergence result for the estimated conditional distribution function, it is clear that

align*[align* omitted — 302 chars of source]

Finally, we consider (II). Using the Cauchy-Schwartz inequality, we have

align*[align* omitted — 103 chars of source]

As a result,

align*[align* omitted — 293 chars of source]

To conclude the proof for $\check{\mathsf{V}}_{\mu,\boldsymbol{\nu}}(y,\mathbf{x})$, we note that replacing $\hat{\mathbf{c}}_2$ by $\mathbf{c}_2$ only leads to an additional multiplicative factor $1 + O_{\mathbb{P}}(\sqrt{\log (n)/(nh^d)})$. See Lemma (ref).

\noindentUniform consistency of $\hat{\mathsf{V}}_{\mu,\boldsymbol{\nu}}(y,\mathbf{x})$. For the purposes of this proof, let $\hat{\mathbf{c}}_1 = \hat{\mathbf{S}}_{y}^{-1}\mathbf{e}_{\mu}$, $\mathbf{c}_1 = \mathbf{S}_{y}^{-1}\mathbf{e}_{\mu}$, $\hat{\mathbf{c}}_2 = \hat{\mathbf{S}}_{\mathbf{x}}^{-1}\mathbf{e}_{\boldsymbol{\nu}}$, and $\mathbf{c}_2 = \mathbf{S}_{\mathbf{x}}^{-1}\mathbf{e}_{\boldsymbol{\nu}}$. We consider the same decomposition used in the proof of Lemma (ref):

align*[align* omitted — 1,829 chars of source]

By the uniform convergence rate for the estimated conditional distribution function, we have

align*[align* omitted — 302 chars of source]

Employing the Cauchy-Schwartz inequality gives

align*[align* omitted — 103 chars of source]

As a result, a probabilistic order for term (II) follows that of terms (I) and (III).

Finally, consider term (I), which has the expansion

align*[align* omitted — 1,615 chars of source]

Then,

align*[align* omitted — 800 chars of source]

which means

align*[align* omitted — 239 chars of source]

Using similar techniques, one can show that

align*[align* omitted — 475 chars of source]

To streamline the remaining derivation, define

align*[align* omitted — 339 chars of source]

Then

align*[align* omitted — 708 chars of source]

By employing the same techniques in the proof for $\check{\mathsf{V}}_{\mu,\boldsymbol{\nu}}(y,\mathbf{x})$, we have that

align*[align* omitted — 430 chars of source]

Term (I.1.2) admits the following decomposition:

align*[align* omitted — 526 chars of source]

Using the same techniques of Lemmas (ref) and (ref), we have

align*[align* omitted — 521 chars of source]

Term (I.1.2.2) is a degenerate second order U-statistic. We adopt Equation (3.5) of Gine-Latala-Zinn_2000_Ustat (Lemmas 7 and 8 in the main paper), which implies (see Remark (ref) and its proof for an example)

align*[align* omitted — 258 chars of source]

To handle term (I.1.1), first consider the quantity $\phi_{j,i} - \phi_i$, which takes the form

align*[align* omitted — 490 chars of source]

Then it is straightforward to show that

align*[align* omitted — 247 chars of source]

As a result,

align*[align* omitted — 243 chars of source]

To conclude the proof for $\hat{\mathsf{V}}_{\mu,\boldsymbol{\nu}}(y,\mathbf{x})$, we note that replacing $\hat{\mathbf{c}}_1$ by $\mathbf{c}_1$ and $\hat{\mathbf{c}}_2$ by $\mathbf{c}_2$ only leads to an additional multiplicative factor $1 + O_{\mathbb{P}}(\sqrt{\log (n)/nh^d})$. See Lemma (ref).

Proof of Lemma (ref)

First consider $\check{\mathbb{T}}_{{\mu, \boldsymbol{\nu}}}^\circ(y, \mathbf{x})$. The difference between $\check{\mathbb{T}}_{{\mu, \boldsymbol{\nu}}}^\circ(y, \mathbf{x})$ and $\check{\mathbb{S}}_{{\mu, \boldsymbol{\nu}}}^\circ(y, \mathbf{x})$ is

align*[align* omitted — 362 chars of source]

From Lemma (ref), we have

align*[align* omitted — 301 chars of source]

To close the proof, it is straightforward to verify that

align*[align* omitted — 238 chars of source]

which follows from the uniform convergence rate in Lemma (ref). The same technique applies to the analysis of $\hat{\mathbb{T}}_{{\mu, \boldsymbol{\nu}}}^\circ(y, \mathbf{x})-\hat{\mathbb{S}}_{{\mu, \boldsymbol{\nu}}}^\circ(y, \mathbf{x})$.

Proof of Theorem (ref)

See the proof of Theorem 2 in the main paper (i.e., Appendix A.6).

Proof of Lemma (ref)

Consider $\check{\rho}_{{\mu, \boldsymbol{\nu}}}(y,\mathbf{x},y',\mathbf{x}')$. Note that we can decompose the difference into

align*[align* omitted — 1,235 chars of source]

The probabilistic order of the second term is given in Lemma (ref).

Using similar techniques as in the proof of Lemma (ref) or (ref), it is also straightforward to verify that term (I) has the same order. That is,

align*[align* omitted — 198 chars of source]

Proof of Lemma (ref)

Consider an $\varepsilon$ discretization of $\mathcal{Y}\times \mathcal{X}$, which is denoted by $\mathcal{A}_{\varepsilon} = \{(y_\ell,\mathbf{x}_{\ell}^\intercal)^\intercal:\ 1\leq \ell \leq L\}$. Then one can define two Gaussian vectors, $\mathbf{z},\check{\mathbf{z}}\in\mathbb{R}^L$, such that

align*[align* omitted — 270 chars of source]

Then we apply the Gaussian comparison result in Corollary 5.1 of chernozhukov2022central (Lemma 11 in the main paper) and the error rate in Lemma (ref), which lead to

align*[align* omitted — 682 chars of source]

Since $\varepsilon$ only enters the above error bound logarithmically, one can choose $\varepsilon = n^{-c}$ for some $c$ large enough, so that the error that arises from discretization becomes negligible. The same applies to $\hat{\mathbb{G}}_{{\mu, \boldsymbol{\nu}}}(y_{\ell},\mathbf{x}_{\ell})$.

Proof of Theorem (ref)

First consider $\check{\mathbb{T}}_{{\mu, \boldsymbol{\nu}}}^\circ(y, \mathbf{x})$. Since

align*[align* omitted — 742 chars of source]

then with Lemma (ref),

align*[align* omitted — 594 chars of source]

In the above, we also used the fact that the difference $\check{\mathbb{S}}_{{\mu, \boldsymbol{\nu}}}^\circ(y, \mathbf{x})-\bar{\mathbb{S}}_{{\mu, \boldsymbol{\nu}}}(y, \mathbf{x})$ is negligible compared to $\mathtt{r_{SE}}$ (see Remark (ref)).

By applying Lemma (ref),

align*[align* omitted — 619 chars of source]

Finally, we apply the Gaussian comparison result in Lemma (ref), which implies that

align*[align* omitted — 675 chars of source]

Finally, due to Theorem 2.1 of Chernozhukov-Chetverikov-Kato_2014b_AoS (Lemma 12 in the main paper), we have

align*[align* omitted — 281 chars of source]

Proof of Theorem (ref)

Note that $\theta_{\mu,\boldsymbol{\nu}}(y|\mathbf{x})$ falls into the confidence band $\check{\mathcal{C}}_{{\mu, \boldsymbol{\nu}}}(1-\alpha)$ if and only if

align*[align* omitted — 312 chars of source]

A sufficient condition would then be

align*[align* omitted — 471 chars of source]

The conclusion then follows from Theorem (ref) and the bias calculation in Lemma (ref). The same analysis applies to $\hat{\mathcal{C}}_{{\mu, \boldsymbol{\nu}}}(1-\alpha)$.

Proof of Theorem (ref)

To start, we decompose the test statistic into

align*[align* omitted — 523 chars of source]

Then by the leading bias order in Lemma (ref) and the leading variance order in Lemma (ref), we have that

align*[align* omitted — 419 chars of source]

Similarly, under the null hypothesis,

align*[align* omitted — 427 chars of source]

Then we have the following error bound

align*[align* omitted — 531 chars of source]

As a result,

align*[align* omitted — 379 chars of source]

The same strategy can be employed to establish results for $\hat{\mathbb{T}}_{\mathtt{PS}}(y, \mathbf{x})$.

Proof of Theorem (ref)

The conclusion follows directly from Theorem (ref).

fundingCattaneo gratefully acknowledges financial support from the National Science Foundation through grants SES-1947805 and DMS-2210561, and from the National Institute of Health (R01 GM072611-16). Jansson gratefully acknowledges financial support from the National Science Foundation through grant SES-1947662 and the research support of CREATES.