What to explore
Change parameters and watch the model adjust.
- True intercept, true slope, noise level, and sample size
- A deterministic random seed keeps the notebook stable across exports
Upper-undergraduate econometrics
A deterministic simulated-data notebook for simple linear regression, coefficient interpretation, residuals, and the role of noise and sample size.
Fitted line, residuals, precision, and known truth
Adjust the data-generating process and watch the fitted line, coefficient estimates, and residual behavior move with noise, slope, and sample size.What to explore
Core ideas
Learning goals
Prerequisites
Next models to study
Upper-undergraduate econometrics
Change confounding strength and the omitted variable's effect to compare the true coefficient, the naive regression, and the fully controlled benchmark.
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.