What to explore
Change parameters and watch the model adjust.
- True causal slope, omitted-variable effect, confounding correlation, noise, and sample size
- The notebook keeps the simulated design deterministic so the bias story is easy to isolate
Upper-undergraduate econometrics
A simulated regression notebook where an unobserved confounder shifts the naive OLS slope away from the true causal effect.
Bias direction, confounding strength, and benchmark truth
Change confounding strength and the omitted variable's effect to compare the true coefficient, the naive regression, and the fully controlled benchmark.What to explore
Core ideas
Learning goals
Prerequisites
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.