This is a statsmodels course for the Swiftener statsmodels editor. pd is pandas, sm is statsmodels. Tables belong in Learn pandas. sklearn estimators belong in Learn scikit-learn. This course stays on statistical models and printed params.
Goal
Finish every chapter by running the copy-paste blocks. The last chapter is a sales OLS you can reuse.
How to take the course
- Keep this tutorial tab and the statsmodels workbench side by side.
- Wait until statsmodels is ready.
- Paste each exercise as the whole editor. Print
params/ pvalues. Callplt.show()for figures. Keep n small.
Sample files
sales.csv— city, units, shillingsrain.csv— city, month, mmkiosk.csv— units, weekend, busy