Let X_n=\left\{x_i\right\}_{i=1}^n\subset\mathbb{R}^d be a set of scattered data points.
In the following, we work under the assumption that the event \mathscr{E}_I defined in (?) holds; under this event, by (Proof), the expected number of samples in the index set I_{B(\hat{x}, s h_n)} is contained in [\gamma_1 \log n,\gamma_2 \log n] with probability at least 1 - \frac{2}{n^c}.
In [levin1998approximation] it was shown that the MLS approximation is given by
s^\text{MLS}_{F_n,X_n}(x)=\sum_{i \in I_{B\left(\hat{x}, s h_n\right)}} a_i^*(x) f\left(x_i\right),
where the coefficients a_i^*(x) are called shape functions. These functions are obtained by minimizing a quadratic form, a procedure rooted in the foundational work of Backus and Gilbert [backus1968resolving, backus1970uniqueness] regarding optimal local averaging kernels. Specifically, the shape functions are defined as:
a_i^*(x)=\arg\min_{a_i(x)}\sum_{i \in I_{B\left(\hat{x}, s h_n\right)}} a_i(x)^2 \frac{1}{\theta_h\left(x_i-x\right)},
under the constraints
\sum_{i \in I_{B\left(\hat{x}, s h_n\right)}} a_i(x) p\left(x_i\right)=p(x), \quad \forall p \in \Pi_{k-1}\left(\mathbb{R}^d\right),
and \theta_h(x_i-x) is a weight function satisfies the properties in (?). Let A denote the number of multi-indices \alpha = (\alpha_1, \dots, \alpha_d) with nonnegative entries such that |\alpha|\leq k. For a multi-index \alpha and a vector v \in \mathbb{R}^d, we define v^\alpha = \prod_{j=1}^d v_j^{\alpha_j}, where |\alpha| = \sum_{j=1}^d \alpha_j denotes the order of the multi-index. It is shown in [mirzaei2015analysis] that the shape functions can be expressed in the following form:
a_i^*(x)=\theta_h(x_i-x) \sum_{|\alpha| \leq k-1} \eta_\alpha(x) \frac{\left( x_i-x\right)^\alpha}{h_n^{|\alpha|}}, \quad i=1,2, \ldots, n.
where \eta_\alpha(x) are the components of \eta(x)\in\mathbb{R}^A. The polynomial–reproduction property of the shape functions determines \eta(x) as the solution of the positive definite system
\mathscr{G}_n(x)\,\eta(x)=\boldsymbol{p}(x),
where \boldsymbol{p}(x)\in \mathbb{R}^A is the vector whose components are p_\alpha(x),
p_\alpha(x)=\left\{\frac{(x-\hat{x})^\alpha}{h_n^{|\alpha|}}\right\}_{0 \leq|\alpha| \leq k-1},
and \mathscr{G}_n(x)\in \mathbb{R}^{A\times A} is the (unnormalized) Gram matrix with entries
\mathscr{G}_{n\alpha \beta}(x)=\sum_{i=1}^n \theta_h(x_i - x) \frac{(x_i - x)^\alpha}{h_n^{|\alpha|}} \cdot \frac{(x_i - x)^\beta}{h_n^{|\beta|}}, \quad \alpha, \beta =1, \ldots, A.
The normalized moment matrix \mathscr{A}_n(x) analyzed below—the empirical weighted covariance matrix, which converges to the theoretical weighted covariance matrix as n\to\infty—is obtained by averaging \mathscr{G}_n over the active samples,
\mathscr{A}_n(x)=\frac{1}{N_{B(\hat{x}, s h_n)}}\,\mathscr{G}_n(x),
\qquad N_{B(\hat{x}, s h_n)}:=\#I_{B(\hat{x}, s h_n)} .
Consequently the reproduction system (?) is equivalent to
\eta(x)=\mathscr{G}_n^{-1}(x)\,\boldsymbol{p}(x)
=\frac{1}{N_{B(\hat{x}, s h_n)}}\,\mathscr{A}_n^{-1}(x)\,\boldsymbol{p}(x).
To illustrate the approximation of a function by the stochastic MLS operator, we follow Levin’s approach [levin1998approximation]. Given an arbitrary \hat{x}\in\Omega, we define the MLS error as
E_{F_n,X_n}(\hat{x})=s^\text{MLS}_{F_n,X_n}(\hat{x})-f(\hat{x}).
By adding and subtracting a polynomial p(x) of degree \leq k and centered around \hat{x}, we get
E_{F_n,X_n}(\hat{x})=\sum_{i \in I_{B\left(\hat{x}, s h_n\right)}} a_i^*(\hat{x})\left(f\left(x_i\right)-p\left(x_i\right)\right)+p(\hat{x})-f(\hat{x}).
Denote by p_f the taylor polynomial of f(x) around \hat{x}. We have:
\max _{x \in B(\hat{x}, s h_n)}|f(x)-p_f(x)| \leq C|f|_{\mathcal{C}^k\left(B\left(\hat{x},s h_n\right)\right)} h_n^k,
where the seminorm, |f|_{\mathcal{C}^k\left(B\left(\hat{x},s h_n\right)\right)}, is defined by
|f|_{\mathcal{C}^k\left(B\left(\hat{x},s h_n\right)\right)} \triangleq \max _{\substack{|\alpha|=k \\ x \in B\left(\hat{x}, s h_n\right)}}\left|\partial^\alpha f(x)\right|
,
with \alpha=\left(\alpha_1, \ldots, \alpha_d\right) denoting a multi-index of order |\alpha|=k, and
\partial^\alpha f(x)=\partial_{x_1}^{\alpha_1} \partial_{x_2}^{\alpha_2} \cdots \partial_{x_d}^{\alpha_d} f(x).
Using p_f as the polynomial in Equation (?), (?) we get
\left|E_{F_n,X_n}(\hat{x})\right| \leq C|f|_{\mathcal{C}^k\left(B\left(\hat{x},s h_n\right)\right)} h_n^k .
Since the focus is on measuring the error in the derivatives, we obtain
\partial^\alpha E_{F_n,X_n}(x)=\sum_{i \in I_{B\left(x, h_n\right)}}\left(\partial^\alpha a_i^*(x)\right)\left(f\left(x_i\right)-p_f\left(x_i\right)\right)+\partial^\alpha(p_f(x)-f(x)).
Note that in the current case, \partial^\alpha is scalar-valued as f: \mathbb{R}^d \rightarrow \mathbb{R}. Then, for a fixed but arbitrary \hat{x} \in \Omega we get
\left|\partial^\alpha E_{F_n,X_n}(\hat{x})\right| \leq \max _{x \in B(\hat{x},s h_n)}|f(x)-p_f(x)| \sum_{i \in I_{B\left(\hat{x}, s h_n\right)}}\left|\partial^\alpha a_i^*(\hat{x})\right|+\left|\partial^\alpha p_f(x)-\partial^\alpha f(x)\right|.
Since p_f is the Taylor expansion of f(x) at \hat{x} and \|\hat{x}-x\| \leq sh_n we get that
\left|\partial^\alpha p_f(x)-\partial^\alpha f(x)\right| \leq c_1|f|_{\mathcal{C}^k(B(\hat{x},s h_n))}h_n^{k-|\alpha|}.
Given the event \mathscr{E}_I hold, we show in Lemma 9 that for all x \in B(\hat{x},s h_n),
P\left(\sum_{i \in I_{B\left(x, s h_n\right)}}\left|\partial^\alpha a_i^*(x)\right| \leq C_\alpha^{\prime} \cdot h_n^{-|\alpha|}\Big|\mathscr{E}_I\right)\geq 1-\frac{1}{n^{s_1}},
where C'_{\alpha} is a positive constant. Therefor, using (?) to bound the probability of the event \mathscr{E}_I, we have,
P\left(\sum_{i \in I_{B\left(x, s h_n\right)}}\left|\partial^\alpha a_i^*(x)\right| \leq C_\alpha^{\prime} \cdot h_n^{-|\alpha|}\right)\geq 1-\frac{2}{n^c}-\frac{1}{n^{s_1}}.
Hence, exists a constant c_{\mu} such that
P\left(\sum_{i \in I_{B\left(x, s h_n\right)}}\left|\partial^\alpha a_i^*(x)\right| \leq C_\alpha^{\prime}\cdot h_n^{-|\alpha|}\right)\geq 1-\frac{1}{n^{c_\mu}}.
Substituting the bounds from Equations (?) and (?) into Equation (?), and using the fact that \max_{x \in B(\hat{x},h_n)} |f(x) - p_f(x)| is bounded by h_n^k up to a positive constant (Taylor remainder estimate, (?)), we evaluate at \hat{x}, and we obtain that exits a positive constant \mathcal{K} such that
P\left(\left|\partial^{\alpha} s^\text{MLS}_{F_n,X_n}(\hat{x})-\partial^{\alpha} f(\hat{x})\right| \leq\mathcal{K}\cdot h_n^{k-|\alpha|}\right)\geq 1-\frac{1}{n^{c_\mu}}.
That is,
\lim_{n\rightarrow\infty}P\left(\left|\partial^{\alpha} s^\text{MLS}_{F_n,X_n}(\hat{x})-\partial^{\alpha} f(\hat{x})\right| \leq\mathcal{K}\cdot h_n^{k-|\alpha|}\right)=1,
as desired.