liveBook · Manning

Local linear regression

As explained in Causal Inference for Data Science

Local linear regression estimates a locally linear relationship by fitting weighted linear models around each prediction point.

Local linear regression (LLR) estimates a relationship near a prediction point by fitting weighted linear models to nearby observations. In regression discontinuity design, it estimates the treatment effect as the jump at a threshold, such as a time-related event. section 11.2.5

For an RDD analysis, LLR supports a practical workflow:

  • Restrict observations to a chosen window around the cutoff. section 11.2.5
  • Fit separate local trends on the two sides, allowing different intercepts and slopes. section 11.2.5
  • Interpret the discontinuity at the cutoff as the estimated average treatment effect and inspect its confidence interval. section 11.2.5

Estimating an event effect

Using synthetic observations before and after time zero, an LLR fit estimates an effect of 770.05, but its confidence interval includes negative values. Changing the time window changes the estimate, so window choice requires care. section 11.2.5

How Causal Inference for Data Science covers it

How deep it goes
Explains separate local trends, cutoff jumps, window sensitivity, and confidence intervals, but not full mathematical derivations.
Examples
Uses synthetic time-event data, varying time windows, linear models, and rdrobust output.
What it assumes
Assumes regression discontinuity data with a cutoff, treatment indicator, outcome, and running variable.
What you can do after
Apply it via rdrobust to estimate an RDD effect and assess its confidence interval.
How it connects
Connects regression discontinuity design with supervised learning, machine learning, average treatment effects, and confidence intervals.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Causal Inference for Data Science. The section links point to the parts of the book it draws on.