Local linear regression Created 2026-10-06 Updated 2026-10-07
Local linear regression fits to responses near each target by weighted least squares, then returns the fitted intercept. With weights , put and . If , then . Its polynomial reproduction property of local polynomial regression reproduces affine functions, reducing boundary bias relative to a local constant fit.
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.
In fixed-design nonparametric regression, the covariates are deterministic and
For the usual finite-variance model assume independent errors with . In random-design nonparametric regression, the pairs are independent observations and ; equivalently with conditional mean-zero errors. Conditional variances are generally assumed bounded for risk bounds.
For a nonnegative regression kernel and a smoothing bandwidth , the Nadaraya–Watson estimator is
when the denominator is positive; replace by for random-design nonparametric regression. The local polynomial regression estimator of degree minimizes the weighted least squares criterion
and reports . If the weighted Gram matrix is invertible, this minimizer is unique. The Nadaraya-Watson estimator is exactly local polynomial regression of degree zero. Higher degrees reproduce nonconstant polynomials and reduce boundary bias of an estimator.
The requested error bound needs and mean-zero independent errors of uniformly bounded variance, along with the matrix condition in the hint. The degree requirement is missing from the printed question. To see the problem, take , , , zero errors, , and . This regression function has two bounded derivatives, but the local constant estimate is the average of for :
The scalar matrix is bounded away from zero for every . Nevertheless , so the printed conclusion with fails. A bounded-variance error hypothesis is also essential; otherwise an expectation bound need not even be finite.
Under the qualified hypotheses, use and
This symmetric Gram matrix has inverse operator norm bounded by the reciprocal of its uniform positive eigenvalue lower bound. If is supported in , only contribute. The equally spaced design and imply that there are at most such points. The bounded kernel and bounded on this interval therefore yield
For the stochastic part, variance additivity for independent random variables and Cauchy-Schwarz inequality give
For the deterministic part, let be the Taylor polynomial of at of degree . The polynomial reproduction property of local polynomial regression gives . By Taylor's theorem, on the kernel window. Thus
Combining the two parts proves
The argument also applies at the endpoints when the assumed matrix bound holds. With arbitrary degree, the generally valid smoothness term is ; extra symmetry can improve some interior biases but does not fix the general boundary counterexample.
At a target , the degree- local polynomial regression estimate minimizes
and . Let have row
and let be diagonal with the kernel weights. Assume the local polynomial Gram matrix is positive definite. The weighted normal equations give
so it is a linear estimator in nonparametric regression.
Define
Inverting the two-by-two Gram matrix for yields
Now put . At and for the uniform kernel,
For the usual bandwidth range , . The elementary power-sum formulas and show, for , that
The limiting moment determinant is
For , the displayed errors can consume at most a fixed fraction of this value, so
for a universal and .
As printed, the claim “for all ” cannot hold for this design: if , all points receive weight , each , and the determinant is , not bounded below by a positive multiple of . The standard bandwidth restriction is therefore necessary for that intermediate assertion. The final bias bound remains harmless for , since and the finite design response means are uniformly bounded.
The polynomial reproduction property of local polynomial regression makes the local-linear weights reproduce both and . Write
for . The reproduced terms have zero bias. Using , the numerator contributed by the remainders is bounded by
Division by the determinant lower bound gives
The degree-zero Nadaraya–Watson estimator reproduces constants but not linear functions. The term therefore remains, and its boundary bias is bounded by ; this first-order boundary bias is the improvement that local linear fitting removes.
Put
The degree- local polynomial estimator is , where
Define the local polynomial Gram matrix
Assume that it is positive definite, and write
The normal equations then give
Thus the estimator is a linear estimator in nonparametric regression, and the displayed are its effective kernel weights.
If is a polynomial of degree at most , then for some . Feeding into the weighted least-squares problem gives the exact zero-residual fit , whose intercept is . Hence the polynomial reproduction property of local polynomial regression is
Let . The Hölder class consists of functions with derivatives through order bounded by and
The subclass additionally makes every derivative of order below -Lipschitz.
Suppose . Taylor's theorem and that additional Lipschitz condition give, for the degree- Taylor polynomial at ,
On the support of , , so
For the regular design , at most points satisfy when . Polynomial reproduction cancels , and therefore
Thus the universal exponent in the question is , with the displayed choice of .
Write , , and define
The degree- local polynomial regression fit minimizes
Assume its local polynomial Gram matrix
is positive definite. The normal equations then give
Because the polynomial is written in the scaled coordinate, the local polynomial derivative estimator is . If , then
For a polynomial of degree at most , the local least-squares fit to is exactly the Taylor polynomial , so its scaled linear coefficient is . Therefore the polynomial reproduction property of local polynomial regression gives
Positive definiteness and the fixed finite-dimensional basis provide a number such that
Since outside ,
and
The regular design has at most points in this window when . Since the errors are independent with variance at most ,
Finally let and take the degree- Taylor polynomial of at . The Hölder class remainder satisfies
Polynomial reproduction removes from the bias. On the kernel window the remainder is at most , so the weight-sum bound gives
A linear estimator in nonparametric regression at has the form , where the weights may depend on the design, , , , and , but not on the responses. Put
and define the local polynomial Gram matrix
When , the weighted least squares normal equations have the unique solution
Therefore , where the effective kernel weight is
The identity
shows that these weights exactly reproduce at every multivariate polynomial of total degree at most . This is the required polynomial reproduction property of local polynomial regression.
Only grid points with have nonzero weight. There are at most such points because . On this support,
so the operator norm bound gives
Because the errors are independent random variables with the stated variance bounds,
Thus .
Let be the Multivariate Taylor polynomial of at through total degree . The assumed Hölder continuity of the derivatives and
give the Taylor remainder bound
Polynomial reproduction cancels in the bias. The same support count and weight bound give
Consequently
so .