Algorithmcore
Local polynomial regression
Also called LOESS, LOWESS, locally weighted scatterplot smoothing.
Fits a low-degree polynomial by weighted least squares around each point. It removes the boundary bias of kernel regression; LOWESS adds robust reweighting.
- Time
- O(q (n p + p^3)) worstO(n log n + (t + 1) n k) lowess
- Space
- O(p^2) extra
- Where
- k = the number of neighbours in a window; n = the number of data points; p = the degree; q = the number of points where the estimate is wanted; t = the number of robustness iterations
- Model
- Real RAM
- Properties
- deterministicexactlinear smoothernot randomizedreproduces polynomials of degree p
- Evidence
- Proof sketchCode in 1 languages
- Origin
- William S. Cleveland, Susan J. Devlin, Charles J. Stone, Jianqing Fan, Irène Gijbels, 1979
Local polynomial regression estimates a regression function by fitting, at each point , a polynomial of low degree to the nearby data by weighted least squares, and taking the value of that polynomial at . The weights come from a kernel of bandwidth . With it is the Nadaraya-Watson estimator. With , the local linear fit, it reproduces straight lines exactly, so it has no bias of order at the ends of the data or where the design is uneven. LOWESS (Cleveland 1979) is a local linear fit on nearest-neighbour windows with tricube weights, followed by a few robustness iterations that give less weight to points with large residuals. LOESS is the same idea with local quadratics and several predictors.
In plain words
To estimate a curve at some place, take the data points nearby, give the closest ones the most weight, and fit a straight line through them by least squares. The height of that line at the place is the estimate. Then move to the next place and fit a new line.
A plain weighted average of the nearby points does well in the middle of the data, but at the ends all the neighbours are on one side, and a rising curve gets pulled down or up. A line through the neighbours follows the slope, so it does not have this error. LOWESS adds one more idea: after a first fit, points far from the curve are probably bad, so it fits again with less weight on them.
The problem
The input is pairs from the model , a kernel , a bandwidth and a degree . At a point , the local fit minimizes
and the estimate is . The other coefficients estimate the derivatives: estimates . LOWESS uses , the tricube kernel and, at each , the bandwidth equal to the distance to the -th nearest , where for a span , often .
The algorithm
LOCAL-POLYNOMIAL(x, (x_i, y_i), h, p, δ) ▷ δ: robustness weights, all 1 by default- 1
w_i ← δ_i · K((x_i − x)/h) for all i - 2
S_jk ← Σ_i w_i (x_i − x)^(j+k); t_j ← Σ_i w_i (x_i − x)^j y_i for 0 ≤ j, k ≤ p - 3
solve S β = t; return β_0 ▷ undefined if S is singular LOWESS((x_i, y_i), f, t)- 4
δ_i ← 1 for all i; h_i ← the distance from x_i to its r-th nearest x_j, r = round(f n) - 5
repeat t + 1 times - 6
ŷ_i ← LOCAL-POLYNOMIAL(x_i, data, h_i, 1, δ) with the tricube kernel, for all i - 7
r_i ← y_i − ŷ_i; s ← median |r_i| - 8
δ_i ← B(r_i / (6s)), with B(u) = (1 − u²)² for |u| < 1 and 0 otherwise - 9
return ŷ
Lines L2 and L3 are the normal equations of a weighted least squares fit in the shifted variable , so that is the value at . They have unknowns, usually 2 or 3. The robustness weights of line L8 are the Tukey biweight of the residuals, scaled by 6 times their median absolute value; this is iteratively reweighted least squares with a local fit in place of a global one. The code skips line L8 after the last fit, and when it gives weight 1 to the points with residual 0 and weight 0 to the others.
Example
Local linear against local constant. Seven points on at , the Epanechnikov kernel and . Exact values from the test file:
| 0 | 1 | 2 | 3 | 4 | 5 | 6 | |
|---|---|---|---|---|---|---|---|
| true | 0 | 1 | 4 | 9 | 16 | 25 | 36 |
| local linear | −20/73 ≈ −0.27 | 67/35 ≈ 1.91 | 28/5 = 5.6 | 53/5 = 10.6 | 17.6 | 907/35 ≈ 25.91 | 2608/73 ≈ 35.73 |
| local constant | 14/11 ≈ 1.27 | 43/15 ≈ 2.87 | 5.6 | 10.6 | 17.6 | 343/15 ≈ 22.87 | 302/11 ≈ 27.45 |
At the neighbours lie symmetrically, the slope term has no effect, and the two fits agree; both are too high by , because they flatten the curvature. At the ends the local constant fit is far off: for at . The local linear fit is off by only , because it follows the slope. For the line at the same points, the local linear fit gives exactly , while the local constant fit gives at .
LOWESS with an outlier. Ten points near , with one wild value at ; span , so neighbours:
| 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | |
|---|---|---|---|---|---|---|---|---|---|---|
| 3.1 | 4.9 | 7.2 | 8.8 | 11.1 | 13.0 | 30.0 | 16.9 | 19.2 | 21.0 | |
| no robustness () | 3.05 | 5.03 | 7.01 | 9.01 | 12.50 | 16.84 | 19.31 | 20.07 | 20.47 | 20.49 |
| LOWESS, | 3.05 | 5.03 | 7.01 | 9.01 | 11.00 | 12.99 | 15.01 | 17.03 | 19.04 | 21.06 |
Without robustness, the outlier lifts the curve from to the end. After the first fit its residual is the largest by far, its bisquare weight is 0, and the next fits ignore it. The robust fit is within of the line everywhere.
Correctness
If at least distinct points have positive weight, the weighted least squares problem has one solution. If the data lie on a polynomial of degree at most , that polynomial has weighted residual sum 0, so it is the fit, and exactly, at every , inside or at the edge of the data. For this means the local linear fit reproduces any line. It follows that the equivalent weights in satisfy and . So for a smooth , the constant and linear parts of the Taylor expansion cancel, and the bias comes from the second derivative only. At the end point of an equally spaced design,
with the one-sided moments . For the Epanechnikov kernel the factor is . The Nadaraya-Watson estimator has a boundary bias of order instead. The full proofs are below. The rates for random designs and the minimax efficiency are cited.
Proof: A local polynomial fit of degree p reproduces polynomials of degree p exactly, and the local linear fit has a boundary bias of order h squaredfull
Setting. The data are pairs . Fix a point , a kernel , a bandwidth , optional robustness weights and a degree . Line L1 sets , and with the fit minimizes
Line L2 forms the normal equations , with and for , and line L3 solves them and returns .
Part 1. The normal equations
Lemma 1. is positive definite if and only if at least distinct values have . Then has exactly one minimizer, the solution of .
Proof. For a vector , , where is the polynomial with coefficients . This is 0 if and only if vanishes at every with . A nonzero polynomial of degree at most has at most roots, so with distinct such only gives 0. With or fewer, a nonzero with those roots exists. is a quadratic in with Hessian and gradient , so a positive definite gives one minimizer, where the gradient is 0.
When is singular, the code returns "undefined". The test file skips such cases.
Part 2. Exact reproduction
Theorem 2 (polynomials of degree p are reproduced). Let be positive definite. If for a polynomial of degree at most , then , and more generally for every .
Proof. Taylor's formula is exact for a polynomial of degree at most : . So the vector with makes every residual 0 and . Since , is a minimizer, and by Lemma 1 it is the only one. Line L3 returns .
Corollary 3 (the local linear fit reproduces a line). With and at least two distinct with positive weight, a line gives exactly, at every : in the interior of the data, at its ends, and outside it. The local constant fit () reproduces only constants.
The test file checks Theorem 2 in exact rational arithmetic for degrees 1, 2 and 3, at random points that include points at the edge of and outside the data, and checks .
Corollary 4 (equivalent kernel). with weights that satisfy
Proof. and is linear in , which gives the formula. Apply Theorem 2 to : then and , which is 1 for and 0 for .
For , solving the 2 by 2 system gives the closed form
and the test compares the general solver with it, exactly. With , , the Nadaraya-Watson estimator; the test checks this too.
Part 3. Bias at the boundary
Take the equally spaced design , , no robustness weights, a kernel that is symmetric, vanishes outside and has bounded variation, and the end point . Let . The weights depend only on the design, so .
Theorem 5 (local linear boundary bias of order ). Let have a bounded second derivative that is continuous at 0. As and ,
Proof. By Corollary 4 with , the constant and linear parts of cancel exactly:
where by Taylor's theorem , since only have weight. From the closed form, , and
because and . Write with . Then by the same Riemann sum bound as for the Nadaraya-Watson estimator, applied to . So
and the ratio stays bounded. The denominator is positive by the Cauchy-Schwarz inequality, which is strict because is not concentrated at one point. So the first term gives the stated main term, and the terms are .
For the Epanechnikov kernel, , , and , so the factor is . For the remainder is 0, and the test measures the ratio of the bias to : for , and for , , against the limit . Compare the Nadaraya-Watson estimator, whose boundary bias is for the same kernel: order , not .
In the interior, at a design point with , the design is symmetric around , so and the local linear fit equals the local constant fit there; the bias is by the same argument.
What is cited, not proved
For a random design with density , the local linear fit has interior bias with no design bias term, variance , the same bias order at the boundary, and it is the best linear smoother in a minimax sense (Fan 1992, 1993; Fan and Gijbels 1996, Chapter 3). For odd , where is the order of the derivative estimated, the bias has the same order in the interior and at the boundary. These are cited, not proved here. The robustness iterations of LOWESS have no general convergence theorem; their effect on the example and in the tests is measured.
Cost
Line L1 costs . Line L2 costs for the power sums and line L3 costs . So one point costs , and the fitted values at all data points cost , or when only the nearest neighbours have weight and the data are sorted. LOWESS repeats this times for robustness iterations.
Complexity
- One point. The weights cost , the power sums , and the solve : time and extra space. For points, .
- Nearest-neighbour windows. With sorted data, the nearest neighbours of each point form a window that slides along the data, so all fitted values cost for fixed . LOWESS repeats the fits times, usually .
- Interpolation. LOESS software fits at a set of vertices and interpolates between them, which makes the cost nearly linear in .
- Grid. On an equally spaced design, the equivalent weights are the same at every interior point, and the fit is a convolution: this is the Savitzky-Golay filter.
Properties
- Exact for polynomials of degree p. Proved above, and checked in exact arithmetic for .
- No boundary or design bias of order h. For , the bias is in the interior and of order at the boundary, with no term in for an uneven design. The variance has the same order as for the local constant fit, , with a larger constant at the boundary (Fan 1992; Fan and Gijbels 1996). The rates are cited, not proved here.
- Odd degrees. Going from an even to removes a bias term without raising the variance order, so odd degrees (, or for derivatives) are usually preferred.
- Linear smoother. Without robustness weights, for a matrix that depends only on the . Leave-one-out residuals and degrees of freedom follow directly.
- Robustness. LOWESS resists isolated outliers in . It does not resist many outliers in one window, and the robustness iterations have no general convergence guarantee.
Variants and improvements
- LOESS. Cleveland and Devlin (1988) allow several predictors, local quadratic fits and conditionally parametric terms, and choose the span by a -type criterion.
- Derivatives. estimates ; use .
- Variable bandwidth. Nearest-neighbour windows, as in LOWESS, or a bandwidth from a plug-in rule (Fan and Gijbels 1992).
- Bandwidth choice. Cross-validation, generalized cross-validation, or plug-in rules for the regression AMISE; see bandwidth selection.
- Local likelihood. For counts or binary responses, fit a local generalized linear model by local likelihood instead of local least squares.
- Seasonal decomposition. STL applies LOESS repeatedly to separate the trend and the seasonal part of a time series.
When to use it
Use the local linear fit as the default nonparametric regression in one or a few predictors: it is simple, it behaves well at the ends of the data, and it adapts to uneven designs. Use LOWESS to draw a smooth trend through a scatter plot, especially when some points may be wild. In a regression discontinuity design, local linear fits on each side of the cut-off are the standard estimator, because the effect is measured at a boundary. For many predictors, or when you need a global smooth function, a smoothing spline, an additive model or a Gaussian process is often better.
Pitfalls
- Sparse windows. With a fixed , a window with fewer than distinct points makes the system singular, and a window with few points makes the fit unstable. Nearest-neighbour windows avoid both.
- Higher degree is not always better. Local quadratics and cubics need wider windows and have more variance, especially at the boundary. Prefer unless the curve has sharp peaks.
- Robustness with small spans. With few points in each window, the robustness iterations can lock onto an outlier. On the example data with span (5 neighbours), the robust fit after four iterations passed through the outlier at and stayed at 30 to the end; with span it did not. This is a measurement, not a rule.
- Extrapolation. The local line at the last data point continues its slope outside the data, which can be far off. Do not evaluate the fit far outside the data.
- Confidence bands. The bias does not vanish at the usual bandwidths, so bands from the variance alone cover too little; undersmooth or correct the bias.
Implementations
Each implementation follows the pseudocode above. A comment @line links a line of code to a line of the pseudocode. Point at a line of the pseudocode to see the matching code. The build runs the native tests of each language.
# SPDX-License-Identifier: MIT
# Part of https://algorithm.tamnd.com/local-polynomial-regression/. The authors are listed in prov/C1XC0A.jsonl.
import math
def epanechnikov(u):
"""(3/4)(1 - u^2) on [-1, 1]; works with floats and Fractions."""
return 3 * (1 - u * u) / 4 if -1 <= u <= 1 else 0 * u
def tricube(u):
"""(1 - |u|^3)^3 on [-1, 1], the weight of LOESS and LOWESS."""
a = abs(u)
return (1 - a * a * a) ** 3 if a < 1 else 0 * u
def bisquare(u):
"""(1 - u^2)^2 on [-1, 1], the robustness weight of LOWESS."""
return (1 - u * u) ** 2 if abs(u) < 1 else 0 * u
def solve(A, b):
"""Gauss-Jordan elimination with pivoting on the largest entry.
Exact for Fractions. Returns None if A is singular."""
n = len(A)
M = [list(row) + [v] for row, v in zip(A, b)]
for c in range(n):
p = max(range(c, n), key=lambda r: abs(M[r][c]))
if M[p][c] == 0:
return None
M[c], M[p] = M[p], M[c]
for r in range(n):
if r != c and M[r][c] != 0:
f = M[r][c] / M[c][c]
M[r] = [a - f * e for a, e in zip(M[r], M[c])]
return [M[i][n] / M[i][i] for i in range(n)]
def local_poly_coefficients(x, xs, ys, h, degree=1, kernel=epanechnikov, delta=None):
"""Weighted least squares fit of y on 1, (x_i - x), ..., (x_i - x)^p.
beta_k estimates m^(k)(x) / k!. Returns None if the local design is singular.
"""
n = len(xs)
w = [kernel((xi - x) / h) * (1 if delta is None else delta[i]) # @line L1
for i, xi in enumerate(xs)]
p = degree
d = [xi - x for xi in xs]
S = [[sum(w[i] * d[i] ** (j + k) for i in range(n)) for k in range(p + 1)] # @line L2
for j in range(p + 1)]
t = [sum(w[i] * d[i] ** j * ys[i] for i in range(n)) for j in range(p + 1)]
return solve(S, t) # @line L3
def local_poly(x, xs, ys, h, degree=1, kernel=epanechnikov, delta=None):
"""The local polynomial estimate of m(x): the intercept beta_0."""
beta = local_poly_coefficients(x, xs, ys, h, degree, kernel, delta)
return None if beta is None else beta[0]
def local_linear_closed_form(x, xs, ys, h, kernel=epanechnikov):
"""Reference: m(x) = sum w_i (S2 - S1 d_i) y_i / (S0 S2 - S1^2), d_i = x_i - x."""
w = [kernel((xi - x) / h) for xi in xs]
d = [xi - x for xi in xs]
s0 = sum(w)
s1 = sum(wi * di for wi, di in zip(w, d))
s2 = sum(wi * di * di for wi, di in zip(w, d))
den = s0 * s2 - s1 * s1
if den == 0:
return None
return sum(wi * (s2 - s1 * di) * yi for wi, di, yi in zip(w, d, ys)) / den
def median(v):
s = sorted(v)
k = len(s)
return s[k // 2] if k % 2 else (s[k // 2 - 1] + s[k // 2]) / 2
def lowess(xs, ys, frac=2 / 3, iterations=2):
"""LOWESS of Cleveland (1979): local linear fits with tricube weights over
the k = round(frac n) nearest neighbours, then robustness iterations with
bisquare weights of the residuals scaled by 6 times their median absolute value.
Returns the fitted values at the x_i.
"""
n = len(xs)
k = max(2, min(n, int(frac * n + 0.5)))
delta = [1] * n # @line L4
# h_i: the distance from x_i to its k-th nearest x_j (x_i itself counts).
hs = [sorted(abs(xj - xi) for xj in xs)[k - 1] for xi in xs]
fit = list(ys)
for it in range(iterations + 1): # @line L5
fit = []
for i in range(n):
h = hs[i]
if h == 0:
fit.append(ys[i])
continue
v = local_poly(xs[i], xs, ys, h, 1, tricube, delta) # @line L6
if v is None: # too few distinct points with weight: fall back to degree 0
v = local_poly(xs[i], xs, ys, h, 0, tricube, delta)
fit.append(ys[i] if v is None else v)
if it == iterations:
break
r = [y - f for y, f in zip(ys, fit)] # @line L7
s = median([abs(v) for v in r])
if s == 0: # @line L8
delta = [1 if v == 0 else 0 for v in r]
else:
delta = [bisquare(v / (6 * s)) for v in r]
return fit # @line L9
test_local_polynomial_regression.py 109 lines
# SPDX-License-Identifier: MIT
# Part of https://algorithm.tamnd.com/local-polynomial-regression/. The authors are listed in prov/C1XC0A.jsonl.
import random
from fractions import Fraction
from local_polynomial_regression import (
epanechnikov, local_linear_closed_form, local_poly, local_poly_coefficients,
lowess, tricube,
)
LOWESS_X = list(range(1, 11))
LOWESS_Y = [3.1, 4.9, 7.2, 8.8, 11.1, 13.0, 30.0, 16.9, 19.2, 21.0]
def F(v):
return [Fraction(t) for t in v]
def test_page_example() -> None:
xs = list(range(7))
sq = [x * x for x in xs]
ll = [local_poly(Fraction(x), xs, sq, Fraction(3)) for x in xs]
lc = [local_poly(Fraction(x), xs, sq, Fraction(3), 0) for x in xs]
assert ll == [Fraction(-20, 73), Fraction(67, 35), Fraction(28, 5), Fraction(53, 5),
Fraction(88, 5), Fraction(907, 35), Fraction(2608, 73)]
assert lc == [Fraction(14, 11), Fraction(43, 15), Fraction(28, 5), Fraction(53, 5),
Fraction(88, 5), Fraction(343, 15), Fraction(302, 11)]
line = [2 * x for x in xs]
assert [local_poly(Fraction(x), xs, line, Fraction(2)) for x in xs] == line
plain = lowess(LOWESS_X, LOWESS_Y, 2 / 3, 0)
robust = lowess(LOWESS_X, LOWESS_Y, 2 / 3, 2)
assert abs(plain[6] - 19.31) < 0.01
assert all(abs(f - (2 * x + 1)) < 0.1 for x, f in zip(LOWESS_X, robust))
def test_reproduces_polynomials_of_its_degree_exactly() -> None:
rng = random.Random(81)
checked = 0
for _ in range(150):
p = rng.choice((1, 1, 2, 3))
n = rng.randint(p + 1, 12)
xs = [Fraction(rng.randint(-30, 30), rng.randint(1, 4)) for _ in range(n)]
coef = [Fraction(rng.randint(-9, 9), rng.randint(1, 5)) for _ in range(p + 1)]
q = lambda t: sum(c * t ** k for k, c in enumerate(coef))
ys = [q(t) for t in xs]
h = Fraction(rng.randint(2, 40), rng.randint(1, 3))
# Any x, including points at the edge of the data and outside it.
x = Fraction(rng.randint(-40, 40), rng.randint(1, 4))
beta = local_poly_coefficients(x, xs, ys, h, p)
if beta is None: # fewer than p + 1 distinct points with weight
continue
checked += 1
assert beta[0] == q(x)
if p >= 1: # beta_1 is the slope q'(x)
assert beta[1] == sum(k * c * x ** (k - 1) for k, c in enumerate(coef) if k)
assert checked > 50
def test_local_linear_matches_closed_form() -> None:
rng = random.Random(82)
for _ in range(200):
n = rng.randint(1, 10)
xs = [Fraction(rng.randint(-20, 20), rng.randint(1, 3)) for _ in range(n)]
ys = [Fraction(rng.randint(-20, 20)) for _ in range(n)]
h = Fraction(rng.randint(1, 30), rng.randint(1, 3))
x = Fraction(rng.randint(-25, 25), rng.randint(1, 3))
assert local_poly(x, xs, ys, h, 1) == local_linear_closed_form(x, xs, ys, h)
def test_degree_zero_is_nadaraya_watson() -> None:
rng = random.Random(83)
for _ in range(200):
n = rng.randint(1, 10)
xs = [Fraction(rng.randint(-20, 20), rng.randint(1, 3)) for _ in range(n)]
ys = [Fraction(rng.randint(-20, 20)) for _ in range(n)]
h = Fraction(rng.randint(1, 30), rng.randint(1, 3))
x = Fraction(rng.randint(-25, 25), rng.randint(1, 3))
w = [epanechnikov((x - xi) / h) for xi in xs]
nw = sum(a * b for a, b in zip(w, ys)) / sum(w) if sum(w) else None
assert local_poly(x, xs, ys, h, 0) == nw
def test_boundary_bias_is_of_order_h_squared() -> None:
# Uniform design i/N on [0, 1]. A line has no bias at the end point 0,
# and for m(x) = x^2 the bias over h^2 tends to
# (mu2^2 - mu1 mu3) / (mu0 mu2 - mu1^2) = -11/95 (Epanechnikov, one-sided moments).
for N, h in ((1000, Fraction(1, 10)), (4000, Fraction(1, 20))):
xs = [Fraction(i, N) for i in range(N + 1)]
assert local_poly(Fraction(0), xs, [3 - 2 * x for x in xs], h) == 3
ratio = local_poly(Fraction(0), xs, [x * x for x in xs], h) / (h * h)
assert abs(ratio + Fraction(11, 95)) < Fraction(1, 2) / (N * h)
def test_lowess_on_a_line_and_with_outliers() -> None:
xs = F(range(12))
line = [Fraction(5) - Fraction(1, 3) * x for x in xs]
assert lowess(xs, line, 2 / 3, 2) == line
rng = random.Random(84)
xs = sorted(rng.uniform(0, 10) for _ in range(40))
ys = [1 + 0.5 * x + rng.gauss(0, 0.2) for x in xs]
for i in rng.sample(range(5, 35), 4):
ys[i] += 15
truth = [1 + 0.5 * x for x in xs]
err = lambda fit: max(abs(f - t) for f, t in zip(fit, truth))
# Measured on this seed: robustness weights remove the pull of the outliers.
assert err(lowess(xs, ys, 2 / 3, 0)) > 1.0
assert err(lowess(xs, ys, 2 / 3, 2)) < 0.4
assert tricube(Fraction(1, 2)) == Fraction(343, 512)
History
Fitting low-degree polynomials to moving windows is old: actuaries used it for graduation of mortality tables, and Savitzky and Golay (1964) used it on equally spaced spectra. Stone (1977) studied local polynomial fits in his work on consistent nonparametric regression. Cleveland (1979) introduced LOWESS for scatter plots, with nearest-neighbour windows, tricube weights and robustness iterations. Cleveland and Devlin (1988) extended it to LOESS. Fan (1992, 1993) and Fan and Gijbels (1992) showed that the local linear fit has no design bias, adapts to the boundary, and is minimax efficient among linear smoothers. Their 1996 book made local polynomial fitting the standard view of kernel regression, with the Nadaraya-Watson estimator as the case .
References
- William S. Cleveland, Robust locally weighted regression and smoothing scatterplots, Journal of the American Statistical Association 74(368), 1979, pp. 829 to 836 (LOWESS; the tricube weights on the nearest neighbours, and the robustness iterations with bisquare weights and 6 times the median absolute residual)
- William S. Cleveland and Susan J. Devlin, Locally weighted regression. An approach to regression analysis by local fitting, Journal of the American Statistical Association 83(403), 1988, pp. 596 to 610 (LOESS with several predictors and local quadratic fits)
- Jianqing Fan, Design-adaptive nonparametric regression, Journal of the American Statistical Association 87(420), 1992, pp. 998 to 1004 (the local linear smoother has no design bias)
- Jianqing Fan, Local linear regression smoothers and their minimax efficiencies, The Annals of Statistics 21(1), 1993, pp. 196 to 216 (minimax efficiency of the local linear smoother)
- Jianqing Fan and Irène Gijbels, Variable bandwidth and local linear regression smoothers, The Annals of Statistics 20(4), 1992, pp. 2008 to 2036 (the local linear fit adapts automatically to the boundary)
- D. Ruppert and M. P. Wand, Multivariate locally weighted least squares regression, The Annals of Statistics 22(3), 1994, pp. 1346 to 1370 (bias and variance of local polynomial fits, in the interior and at the boundary, in several dimensions)
- Jianqing Fan and Irène Gijbels, Local Polynomial Modelling and Its Applications, Chapman and Hall, 1996, Chapter 3 (the local polynomial fit, its equivalent kernel, and its bias and variance)
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H1 sketch |
|
| Lean | L0 no Lean part |
|
| Code (python) | I0 not checked yet |
|
| Visual | V0 none |
|
| Writing | W2 basic |
|
Tag C1XC0A Edit this page History Report an error Markdown