Learn statsmodels

How this course works, what the workbench can do, and the chapter list.

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

  1. Keep this tutorial tab and the statsmodels workbench side by side.
  2. Wait until statsmodels is ready.
  3. Paste each exercise as the whole editor. Print params / pvalues. Call plt.show() for figures. Keep n small.

Sample files

  • sales.csv — city, units, shillings
  • rain.csv — city, month, mm
  • kiosk.csv — units, weekend, busy

Chapter list