= Effective kernel weight
{title2=$W_i(x_0)$}
The <effective kernel weights> express a <local polynomial regression> fit as a linear combination of the responses. At target $x$, set $z_i=(x_i-x)/h$, $r_i=(1,z_i,\ldots,z_i^p)^T$, and $w_i=K(z_i)$. If the <local polynomial Gram matrix> $B=\sum_iw_ir_ir_i^T$ is invertible, then
$$
\widehat m(x)=\sum_iW_i(x)Y_i,\qquad
W_i(x)=e_0^TB^{-1}w_ir_i,
$$
where $e_0=(1,0,\ldots,0)^T$. This follows by solving the <weighted least squares> normal equations and taking the fitted intercept.
The <effective kernel weights> are not the raw weights $K(z_i)$. They depend on the whole local design and satisfy the <polynomial reproduction> identities $\sum_iW_i=1$ and $\sum_iW_i z_i^j=0$ for $1\leq j\leq p$. Even when $K\geq0$, individual $W_i$ can be negative. For a <local linear regression> at $x=0$ through observations at $1,2$, the weights are $2,-1$, giving intercept $2Y_1-Y_2$. The negative weight is what permits exact extrapolation of a straight line; forcing all weights positive would lose that property at this target.
Back to article page