At a target , local polynomial regression fits a polynomial of degree at most by weighted least squares:
Define the response vector , the design matrix by for , and the diagonal matrix by . The normal equations for linear least squares give
This formula assumes the local polynomial Gram matrix is invertible. It is invertible whenever at least distinct sites have positive weights: a nonzero degree- polynomial cannot vanish at all of them. With fixed , a nonzero continuous regression kernel, and , this condition holds eventually at the target points considered here. Using weights instead gives exactly the same fit.
Use the usual unit-integral normalization . A regression kernel need not intrinsically have unit integral, but multiplying all weights by a positive constant leaves local polynomial regression unchanged. With unnormalized raw moments the interior coefficient below is ; the version written using alone requires this normalization. A zero regression kernel cannot define an estimator.
Write the local moment sums as
The local constant estimator is . Since the errors have zero mean, its bias of an estimator is the corresponding weighted average of . By the second-order Taylor expansion, uniformly for contributing sites with ,
where . This uniform remainder follows from uniform continuity of on . Nonnegativity of the regression kernel therefore gives
whenever tends to a positive limit and .
For fixed interior , the moment approximations give , , and . The hypothesis makes , so the odd-moment contribution is negligible at second order. Thus
The symmetry of the regression kernel is what removes the first-order interior bias of an estimator.
At , the rescaled observation window is truncated to . Put and . Symmetry, nonnegativity, and unit mass give . The supplied moment approximations already imply the leading boundary bias of local constant regression:
To retain the second-order term rigorously, we need slightly more precise control of the first moment. The rescaled grid has spacing . Each truncated function has bounded variation, because is continuously differentiable on its support. The Riemann sum error is bounded by this variation times the grid spacing: summing the oscillation bounds on the grid cells proves
Endpoint cells, including the omitted site at zero, contribute the same error order. Consequently
Both discretization errors are under . The preceding Taylor expansion therefore proves the second-order boundary expansion for local constant regression:
Equivalently, expanding the derivatives about zero gives
In general the truncated first moment is nonzero, so the boundary bias of an estimator has order , although it can be smaller when or the omitted part of the regression kernel carries no mass.
For local linear regression, the polynomial reproduction property of local polynomial regression removes the constant and linear terms exactly. Let . Its effective kernel weights are
so , , and
At either an interior or the specified boundary target, is asymptotic to a positive constant times . At the boundary that constant is , the mass squared times the variance of the continuous normalized truncated regression kernel. Moreover , as follows by bounding in the window. Thus the Taylor remainder still contributes , even though some effective kernel weights may be negative. In particular,
At an interior point this coefficient reduces to by symmetry and normalization. Hence local linear regression has bias at both interior and boundary points; its linear reproduction removes the generic order- boundary term.