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 Zero → The Number Zero → Counting to Five → Counting to 10 → Counting to 20 → Counting a Set of Objects Up to 20 → Cardinality: The Last Number Counted → Matching Numerals to Quantities → Subitizing Small Quantities → Addition Within 10 → Number Bonds to 10 → Addition Within 20 → Doubles and Near Doubles → Doubles Facts Within 10 → Near Doubles Facts Within 20 → Mental Math Strategies for Addition → Mental Math: Adding and Subtracting Tens → Addition Within 100 → Repeated Addition as Multiplication → Multiplication as Equal Groups → Multiplication: Arrays → Basic Multiplication Facts (0s, 1s, 2s, 5s, 10s) → Multiplication Facts Within 100 → Division as Equal Sharing → Division as Grouping (Measurement Division) → Division: Grouping (Repeated Subtraction) Model → Division: Fair Sharing Model → Division as Equal Sharing → Division as Grouping → Basic Division Facts → Division Facts Within 100 → Multiplication and Division Fact Families → Relationship Between Multiplication and Division → Division Facts as Inverse of Multiplication → Remainders and Quotients in Division → Division Word Problems → Multi-Step Word Problems → Solving Multi-Step Word Problems → Multiplication Word Problems → Division Word Problems → Introduction to Long Division → Factors and Multiples → Prime and Composite Numbers → Equivalent Fractions → Relating Fractions and Decimals → Decimal Place Value → Integers and the Number Line → Comparing and Ordering Integers → Absolute Value → Adding Integers → Subtracting Integers → Multiplying Integers → Dividing Integers → Unit Rates → Proportions → Percent Concept → Converting Between Fractions, Decimals, and Percents → Operations with Rational Numbers → Two-Step Equations → Solving Multi-Step Equations → Equations with Variables on Both Sides → Angle Pairs: Complementary, Supplementary, and Vertical → Parallel Lines and Transversals → Corresponding Angles → Alternate Interior Angles → Triangle Angle Sum Theorem → Exterior Angle Theorem → Triangle Inequality Theorem → Similar Triangles: AA Similarity → Similar Triangles: SSS and SAS Similarity → Proportions in Similar Triangles → Right Triangle Trigonometry Introduction → Sine, Cosine, and Tangent Ratios → Trigonometric Ratios Review → Radian Measure → Converting Between Degrees and Radians → The Unit Circle → Graphing Sine and Cosine → Graphing Tangent and Reciprocal Trigonometric Functions → Derivatives of Trigonometric Functions → Antiderivatives → Indefinite Integrals → Basic Integration Rules → Riemann Sums → Definite Integral Definition → Probability Density Functions and Continuous Distributions → Cumulative Distribution Functions → Continuous Random Variables → Probability Density Functions → Expected Value → Weak Law of Large Numbers → Probability Axioms and Rules → Conditional Probability → Independence of Events → Sampling Distributions → Standard Error of Estimators → Hypothesis Testing: Framework and Logic → P-values and Statistical Significance → Effect Size and Practical Significance → Hypothesis Testing: Framework and Logic → Z-Tests and T-Tests for Means → One-Sample Z-Test for Means → One-Sample and Two-Sample T-Tests → Inference in Linear Regression → Prediction Intervals in Regression → Linear Regression Basics → Residuals and Goodness of Fit (R²) → Simple (Bivariate) OLS Regression → Classical OLS Assumptions (Gauss-Markov) → Multiple Regression → Interpreting Regression Coefficients → Hypothesis Testing in Regression → F-Test and Joint Significance → R-Squared and Model Fit → Omitted Variable Bias → Causal Inference and the Identification Problem → Potential Outcomes and the Rubin Causal Model → Regression Discontinuity Design → Local 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.