typestar

Statistics with statsmodels

19 steps in 6 sets of Python.

Where scikit-learn predicts, statsmodels explains. It gives you coefficients, standard errors, p-values and a summary table that looks like the ones in papers, which is exactly why people reach for it.

Linear models first, then model design with formulas and categorical variables, diagnostics and robust standard errors, generalized linear models and quantile regression, and finally time series. If you have ever needed to defend a regression rather than just run one, this is the tour.

Start this tour

Linear models

Model design

Diagnostics & robustness

Beyond least squares

Time series

Encore

The other Python tours