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

Matching Estimators: Nearest Neighbor and Kernel Methods

Graduate Depth 118 in the knowledge graph ☐ I know this ☆ Set as goal
1topic build on this
665prerequisites beneath it
See this on the map →
Propensity Score Methods and EstimationTreatment Effects: ATE, CATE, and Heterogeneous Effects→→Synthetic Control Methods for Policy Evaluation
causal-inference matching nonparametric

Core Idea

Matching estimators (nearest neighbor, kernel, local polynomial) estimate treatment effects nonparametrically by comparing outcomes between treated and control units with similar covariates. These methods avoid functional form assumptions but require sufficient overlap in covariate distributions and careful choice of bandwidth or neighborhood size.

Explainer

From your prerequisite work on propensity score matching and treatment effect estimation, you know the fundamental causal inference problem: we observe each person in either the treated or control state, never both. The counterfactual — what a treated person's outcome would have been without treatment — must be constructed by finding appropriate comparisons in the control group. Propensity score matching compressed all the covariates into a single number (the predicted probability of treatment) and matched on that scalar. Matching estimators take a more direct approach: compare treated units to control units that look similar on the covariates themselves, without the intermediate step of modelling selection into treatment.

Nearest neighbor matching is the most intuitive version. For each treated unit, find the control unit (or k nearest control units) with the most similar covariate vector — "nearest" in some distance metric, typically Euclidean distance in covariate space or the Mahalanobis distance which accounts for correlations among covariates. The estimated treatment effect for that unit is the difference between its observed outcome and the average outcome of its matched controls. Aggregate across all treated units to get the Average Treatment Effect on the Treated (ATT). The approach is nonparametric: you never specify how the outcome relates to the covariates. The estimate is driven purely by the comparison of similar units.

Kernel matching generalizes this by giving every control unit a weight when constructing the counterfactual for a treated unit, with weights declining as covariate distance grows. Rather than a sharp cutoff (take the k nearest neighbors), kernel matching uses a smooth weighting function. The bandwidth controls how quickly the weights decay: small bandwidth means only very close controls matter (low bias, high variance); large bandwidth averages over more controls (low variance, higher bias if distant controls are genuinely different). Local polynomial matching is a further refinement that fits a local regression surface to the control units' outcomes rather than simply averaging them, improving bias when covariates have real predictive power.

All matching estimators rest on the conditional independence assumption (CIA): conditional on observed covariates, treatment assignment is as good as random. This is the same identifying assumption as propensity score matching — both require that you have measured all the variables that jointly determine selection and outcomes. Where matching methods add value is in robustness to misspecification: if you are wrong about the functional form linking covariates to outcomes, a parametric regression will be biased even if CIA holds, but a nonparametric matching estimator adjusts without needing the form specified. The cost is the overlap requirement — matching only works where there are control units comparable to treated units. If high-covariate-value treated units have no near-control counterparts (a failure of common support), estimates in those regions are unreliable or extrapolated, and the comparison between matching and regression estimates is itself a useful robustness diagnostic.

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 → Treatment Effects: ATE, CATE, and Heterogeneous Effects → Matching Estimators: Nearest Neighbor and Kernel Methods

Longest path: 119 steps · 665 total prerequisite topics

Prerequisites (2)

Leads To (1)