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.
Past exam of the mathematics course of the University of Cambridge 2007 iii Paper 49 2 Solution Created 2026-10-03 Updated 2026-10-14
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 giveThis 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 asThe 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 giveswhenever 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. ThusThe 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 provesEndpoint cells, including the omitted site at zero, contribute the same error order. ConsequentlyBoth 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 givesIn 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 areso , , andAt 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.
Past exam of the mathematics course of the University of Cambridge 2012 iii Paper 39 5 Solution Created 2026-10-03 Updated 2026-10-07
In fixed-design nonparametric regression, the covariates are deterministic andFor 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 iswhen the denominator is positive; replace by for random-design nonparametric regression. The local polynomial regression estimator of degree minimizes the weighted least squares criterionand 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 andThis 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 yieldFor the stochastic part, variance additivity for independent random variables and Cauchy-Schwarz inequality giveFor 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. ThusCombining the two parts provesThe 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.
Past exam of the mathematics course of the University of Cambridge 2021 iii Paper 210 3 Solution 2026-09-28
At a target , the degree- local polynomial regression estimate minimizesand . Let have row
and let be diagonal with the kernel weights. Assume the local polynomial Gram matrix is positive definite. The weighted normal equations giveso it is a linear estimator in nonparametric regression.
and let be diagonal with the kernel weights. Assume the local polynomial Gram matrix is positive definite. The weighted normal equations giveso it is a linear estimator in nonparametric regression.
Now put . At and for the uniform kernel,For the usual bandwidth range , . The elementary power-sum formulas and show, for , thatThe limiting moment determinant isFor , the displayed errors can consume at most a fixed fraction of this value, sofor 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 . Writefor . The reproduced terms have zero bias. Using , the numerator contributed by the remainders is bounded byDivision by the determinant lower bound givesThe 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.
Past exam of the mathematics course of the University of Cambridge 2022 iii Paper 210 3 Solution Created 2026-09-28 Updated 2026-10-03
PutThe degree- local polynomial estimator is , whereDefine the local polynomial Gram matrixAssume that it is positive definite, and writeThe normal equations then giveThus 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 andThe 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 , , soFor the regular design , at most points satisfy when . Polynomial reproduction cancels , and thereforeThus the universal exponent in the question is , with the displayed choice of .
Past exam of the mathematics course of the University of Cambridge 2023 iii Paper 210 3 Solution Created 2026-09-28 Updated 2026-10-03
Write , , and defineThe degree- local polynomial regression fit minimizesAssume its local polynomial Gram matrixis positive definite. The normal equations then give
Because the polynomial is written in the scaled coordinate, the local polynomial derivative estimator is . If , thenFor 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 thatSince 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 satisfiesPolynomial reproduction removes from the bias. On the kernel window the remainder is at most , so the weight-sum bound gives
Past exam of the mathematics course of the University of Cambridge 2026 iii Paper 210 3 Solution Created 2026-09-24 Updated 2026-09-25
A linear estimator in nonparametric regression at has the form , where the weights may depend on the design, , , , and , but not on the responses. Putand define the local polynomial Gram matrixWhen , the weighted least squares normal equations have the unique solutionTherefore , where the effective kernel weight is
The identityshows 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 givesBecause 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 andgive the Taylor remainder boundPolynomial reproduction cancels in the bias. The same support count and weight bound giveConsequentlyso .