What to explore
Change parameters and watch the model adjust.
- Cutoff, the true jump, and the common trend slope
- Noise and the estimation bandwidth around the cutoff
Intermediate causal inference
When treatment switches on at a threshold of a running variable, units just below the cutoff are a credible counterfactual for units just above. The jump in the outcome at the cutoff estimates the treatment effect.
The cutoff, the local-linear fits, and the jump that estimates the treatment effect
See how a discontinuity identifies a causal effect: fit a line each side of the cutoff and read the vertical jump between them, then watch the bandwidth trade bias against noise.Interactive diagram
Each dot is a unit with a running variable on the x-axis (a test score, an income threshold, a vote share). Treatment switches on for everyone at or above the cutoff — so units just below are a natural comparison group for units just above.
Fit a straight line to the points inside the bandwidth on each side. The vertical gap between the two fitted values at the cutoff is the estimated treatment effect (τ̂). With no noise it lands exactly on the true jump; add noise and it wobbles around it.
Drag the bandwidth: a narrow window uses only points near the cutoff (less bias, but few points, so noisier); a wide window borrows more data but leans harder on the straight-line assumption far from the cutoff. That tension is the core practical choice in regression discontinuity.
What to explore
Core ideas
Learning goals
Prerequisites
Newsletter
Next models to study
Upper-undergraduate econometrics
Adjust treatment effects, group gaps, noise, and trend violations to see exactly when the DiD estimate matches the truth and when it drifts.
Upper-undergraduate econometrics
See when IV improves on OLS, when weak instruments make the estimate unstable, and how exclusion violations undermine the design.