Kernel regression 2026-10-14
Kernel regression estimates a regression function using localized kernel weights rather than a fixed finite-dimensional functional form. The Nadaraya–Watson estimator is the local-constant version; local polynomial regression improves its local approximation by fitting a polynomial.
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 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 2025 iii Paper 210 3 Solution Created 2026-09-24 Updated 2026-10-03
Let . The Hölder class consists of functions with continuous derivatives whose th derivative satisfieswith the equivalent Lipschitz convention when is an integer.
The degree- local polynomial regression estimator minimizesand takes . Put , , and rescale by . If is positive definite, weighted least squares givesDefineThen . If has degree at most , fitting the noiseless response reproduces that polynomial exactly, and hence
For nonzero , the polynomial cannot vanish throughout . Thereforeand compactness of the unit sphere makes its minimum eigenvalue positive. Choose and so that makes the supplied lower bound on at least . On the kernel support, is bounded by a constant depending only on , and . It follows that only weights are nonzero andPolynomial reproduction cancels the Taylor polynomial of degree . The Hölder remainder on is at most , so the squared bias is at most . Independence and bound the variance by . Combining them uniformly in and proves
Random-design nonparametric regression 2026-10-07
The predictor values are random, and the regression function is the conditional mean of the response. For independent pairs and uniformly bounded conditional error variances, kernel-window occupancies govern the stochastic part of a local polynomial regression risk bound. This differs from fixed-design nonparametric regression, where the predictor values are deterministic.
Unit-width box kernel 2026-10-07
The unit-width centred box kernel is . It has integral one and squared norm one. Its rescaling averages a function on intervals of length . It is obtained from the uniform smoothing kernel with support by rescaling, and is useful in both kernel density estimation and local polynomial regression.