A topic in the Open Knowledge Graph — a free, open map of 15,290 topics and the order to learn them in.

Local Polynomial Regression and Bandwidth Selection

College Depth 118 in the knowledge graph I know this Set as goal
587prerequisites beneath it
See this on the map →
Regression Discontinuity Design
local-polynomial nonparametric bandwidth

Core Idea

Local polynomial regression fits a polynomial within a neighborhood around each point, producing a nonparametric estimate of conditional expectations. Bandwidth (window size) controls smoothness; larger bandwidth reduces variance but increases bias.

Explainer

From regression discontinuity design, you already know the motivation: near a threshold, you need to estimate what the outcome would have been on each side had no discontinuity existed. You do this by fitting a regression line or curve to the data on each side and extrapolating to the cutoff. But what function should you fit? Ordinary least squares assumes a global linear or polynomial relationship — a strong assumption. Local polynomial regression relaxes this entirely: instead of fitting one function to all the data, it fits a separate polynomial in a bandwidth window around each evaluation point, using only observations nearby.

The mechanics work like this. Pick a point x₀ where you want to estimate the conditional expectation E[Y|X = x₀]. Collect all observations within a bandwidth h of x₀. Fit a polynomial (degree 0 = local mean, degree 1 = local linear, degree 2 = local quadratic) to those observations, weighting nearby points more heavily than distant ones using a kernel function — typically a triangular or Epanechnikov kernel that assigns zero weight to observations outside the bandwidth. The fitted value at x₀ is your estimate. Slide x₀ across the full range of X and the resulting curve is the local polynomial estimate.

Bandwidth selection is the central tuning decision and involves a fundamental bias-variance tradeoff you first encountered in statistical modeling. A narrow bandwidth uses only observations very close to x₀, giving a highly local fit with low bias (no need to extrapolate across a wide range) but high variance (few observations, noisy estimate). A wide bandwidth borrows strength from more observations, reducing variance, but forces the local polynomial to approximate the true function over a larger range, introducing bias if the true function curves. Optimal bandwidth minimizes mean squared error, which balances these forces — the standard approach is cross-validation or the plug-in bandwidth selector that estimates the curvature of the underlying function.

The degree of the polynomial also matters. Local linear regression (degree 1) is the workhorse in econometrics, particularly in RD designs, because it has better boundary behavior than local constant regression: it does not suffer from the same upward bias at the edges of the support. Local quadratic adds another layer of flexibility but at the cost of variance. In RD applications, the key quantity is the difference between the fitted values from the left-side and right-side local polynomial regressions evaluated at the cutoff — this gives the causal effect estimate. The choice of bandwidth and polynomial degree are both robustness checks that credible RD papers report across multiple specifications.

Practice Questions 5 questions

Prerequisite Chain

Understanding ZeroThe Number ZeroCounting to FiveCounting to 10Counting to 20Counting a Set of Objects Up to 20Cardinality: The Last Number CountedMatching Numerals to QuantitiesSubitizing Small QuantitiesAddition Within 10Number Bonds to 10Addition Within 20Doubles and Near DoublesDoubles Facts Within 10Near Doubles Facts Within 20Mental Math Strategies for AdditionMental Math: Adding and Subtracting TensAddition Within 100Repeated Addition as MultiplicationMultiplication as Equal GroupsMultiplication: ArraysBasic Multiplication Facts (0s, 1s, 2s, 5s, 10s)Multiplication Facts Within 100Division as Equal SharingDivision as Grouping (Measurement Division)Division: Grouping (Repeated Subtraction) ModelDivision: Fair Sharing ModelDivision as Equal SharingDivision as GroupingBasic Division FactsDivision Facts Within 100Multiplication and Division Fact FamiliesRelationship Between Multiplication and DivisionDivision Facts as Inverse of MultiplicationRemainders and Quotients in DivisionDivision Word ProblemsMulti-Step Word ProblemsSolving Multi-Step Word ProblemsMultiplication Word ProblemsDivision Word ProblemsIntroduction to Long DivisionFactors and MultiplesPrime and Composite NumbersEquivalent FractionsRelating Fractions and DecimalsDecimal Place ValueIntegers and the Number LineComparing and Ordering IntegersAbsolute ValueAdding IntegersSubtracting IntegersMultiplying IntegersDividing IntegersUnit RatesProportionsPercent ConceptConverting Between Fractions, Decimals, and PercentsOperations with Rational NumbersTwo-Step EquationsSolving Multi-Step EquationsEquations with Variables on Both SidesAngle Pairs: Complementary, Supplementary, and VerticalParallel Lines and TransversalsCorresponding AnglesAlternate Interior AnglesTriangle Angle Sum TheoremExterior Angle TheoremTriangle Inequality TheoremSimilar Triangles: AA SimilaritySimilar Triangles: SSS and SAS SimilarityProportions in Similar TrianglesRight Triangle Trigonometry IntroductionSine, Cosine, and Tangent RatiosTrigonometric Ratios ReviewRadian MeasureConverting Between Degrees and RadiansThe Unit CircleGraphing Sine and CosineGraphing Tangent and Reciprocal Trigonometric FunctionsDerivatives of Trigonometric FunctionsAntiderivativesIndefinite IntegralsBasic Integration RulesRiemann SumsDefinite Integral DefinitionProbability Density Functions and Continuous DistributionsCumulative Distribution FunctionsContinuous Random VariablesProbability Density FunctionsExpected ValueWeak Law of Large NumbersProbability Axioms and RulesConditional ProbabilityIndependence of EventsSampling DistributionsStandard Error of EstimatorsHypothesis Testing: Framework and LogicP-values and Statistical SignificanceEffect Size and Practical SignificanceHypothesis Testing: Framework and LogicZ-Tests and T-Tests for MeansOne-Sample Z-Test for MeansOne-Sample and Two-Sample T-TestsInference in Linear RegressionPrediction Intervals in RegressionLinear Regression BasicsResiduals and Goodness of Fit (R²)Simple (Bivariate) OLS RegressionClassical OLS Assumptions (Gauss-Markov)Multiple RegressionInterpreting Regression CoefficientsHypothesis Testing in RegressionF-Test and Joint SignificanceR-Squared and Model FitOmitted Variable BiasCausal Inference and the Identification ProblemPotential Outcomes and the Rubin Causal ModelRegression Discontinuity DesignLocal Polynomial Regression and Bandwidth Selection

Longest path: 119 steps · 587 total prerequisite topics

Prerequisites (1)

Leads To (0)

No topics depend on this one yet.