This page provides a series of examples, tutorials and recipes to help you get started with statsmodels. Each of the examples shown here is made available as an IPython Notebook and as a plain python script on the statsmodels github repository.

We also encourage users to submit their own examples, tutorials or cool statsmodels trick to the Examples wiki page


Linear Regression Models




Discrete Choice Models


Nonparametric Statistics


Generalized Linear Models


Robust Regression


Generalized Estimating Equations




Time Series Analysis


State space models


State space models - Technical notes




Multivariate Methods


User Notes

Last update: Jul 16, 2024