1 · The line of best fit
What OLS does, and recovering a known slope from data.
The line of best fit, how it's computed, inference, and the assumptions behind it.
Course overview
This free course uses real Python and statsmodels in your browser. Work through the modules below with explanations, executable examples, interactive controls, and questions.
What OLS does, and recovering a known slope from data.
The normal equations — OLS in one line of linear algebra.
Standard errors, t-statistics, confidence intervals — and how they shrink with n.
Gauss–Markov, heteroskedasticity, and robust standard errors.