Skip to content
Skipper Seabold edited this page May 3, 2013 · 7 revisions

This wiki page assembles a collection "official" and user-contributed examples, tutorials and recipes for statsmodels.

Official examples

The following table includes a list of examples that have been accept for distribution in the official statsmodels repository:

Getting started HTML View IPython Notebook
Autoregressive Moving Average (ARMA) Model HTML View IPython Notebook
Discrete data models HTML View IPython Notebook
Interactions and ANOVA HTML View IPython Notebook
Generalized Linear Models HTML View IPython Notebook
Generic Maximum Likelihood Model HTML View IPython Notebook
Ordinary Least Squares Regression HTML View IPython Notebook
Out of Sample Prediction HTML View IPython Notebook
Robust Linear Models HTML View IPython Notebook
Using Dates With Timeseries Models HTML View IPython Notebook
Weighted Least Squares HTML View IPython Notebook

User contributions

If you have an interesting example, or if you can write a quick tutorial describing one of statsmodels' features, please consider posting it here. We would be delighted!

Feel free to post your example file in any of the common formats (e.g. .py, .rst, .html) and to use any hosting service you like. One very slick, free, and convenient alternative is to:

  1. Write-up your example in an IPython notebook
  2. Save the content of the .ipynb file in a Gist
  3. Use nbviewer to display the notebook in html format on the web. This step simply involves swapping the domain name in the Gist URL (e.g. https://gist.github.com/3484337 -> http://nbviewer.ipython.org/3484337)

Please post your contributions below!

User-contributed examples