Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Statsmodels: statistical modeling and econometrics in Python
Python AGS Script HTML Stata R C Other

Merge pull request #2574 from hlin117/monotone_fn_inverter_docstring

DOC: monotone_fn_inverter: fixed docstring
latest commit 102fbb2b8e
@josef-pkt josef-pkt authored
Failed to load latest commit information.
docs Update DynamicVAR docs
examples REF: fix (whiten in) last iteration, add rho to history, remove histo…
statsmodels monotone_fn_interver: Fixed docstring in non-sandbox version
tools MAINT: update URL for mathjax om [skip ci]
.bzrignore sandbox
.coveragerc VAR test coverage
.gitattributes add gitattributes (numpy minus .nsi)
.gitignore MAINT: add statsmodels/tsa/statespace/_statespace.pyx to .gitignore
.mailmap MAINT: Update mailmap.
.travis.yml TST: Modify Travis to have configuration without matplotlib
.travis_coveragerc Test coveralls issue removing if, then DOC: Point to changes in the docs.
CONTRIBUTING.rst DOC: Ask for release notes and example.
COPYRIGHTS.txt Docs: add license for qsturng-py and license notice for ordereddict
INSTALL.txt MAINT: Update patsy min version
LICENSE.txt DOC: Update copyright dates BLD: Include README in sdist
README.rst DOC: add section for github docs
README_l1.txt Updated examples
build_bdists.bat MAINT: Update folders for build bot BLD: Add setuptools bootstrap script to version control MAINT: change dev version number for pep440 closes #2243


What Statsmodels is

Statsmodels is a Python package that provides a complement to scipy for statistical computations including descriptive statistics and estimation and inference for statistical models.

Change in Location of Documentation

Due to the current outage of our online documentation, we recreated the documentation on GitHub.

The documentation for the latest release is at

The documentation for the development version is at

This is currently a temporary solution that will be transformed into the new permanent location.

Main Features

  • linear regression models: Generalized least squares (including weighted least squares and least squares with autoregressive errors), ordinary least squares.
  • glm: Generalized linear models with support for all of the one-parameter exponential family distributions.
  • discrete: regression with discrete dependent variables, including Logit, Probit, MNLogit, Poisson, based on maximum likelihood estimators
  • rlm: Robust linear models with support for several M-estimators.
  • tsa: models for time series analysis - univariate time series analysis: AR, ARIMA - vector autoregressive models, VAR and structural VAR - descriptive statistics and process models for time series analysis
  • nonparametric : (Univariate) kernel density estimators
  • datasets: Datasets to be distributed and used for examples and in testing.
  • stats: a wide range of statistical tests - diagnostics and specification tests - goodness-of-fit and normality tests - functions for multiple testing - various additional statistical tests
  • iolib - Tools for reading Stata .dta files into numpy arrays. - printing table output to ascii, latex, and html
  • miscellaneous models
  • sandbox: statsmodels contains a sandbox folder with code in various stages of developement and testing which is not considered "production ready". This covers among others Mixed (repeated measures) Models, GARCH models, general method of moments (GMM) estimators, kernel regression, various extensions to scipy.stats.distributions, panel data models, generalized additive models and information theoretic measures.

Where to get it

The master branch on GitHub is the most up to date code

Source download of release tags are available on GitHub

Binaries and source distributions are available from PyPi

Binaries can be installed in Anaconda

conda install statsmodels

Development snapshots are also avaiable in Anaconda

conda install -c statsmodels

Installation from sources

See INSTALL.txt for requirements or see the documentation


Modified BSD (3-clause)


The official documentation is hosted on SourceForge

Windows Help

The source distribution for Windows includes a htmlhelp file (statsmodels.chm). This can be opened from the python interpreter

>>> import statsmodels.api as sm
>>> sm.open_help()

Discussion and Development

Discussions take place on our mailing list.

We are very interested in feedback about usability and suggestions for improvements.

Bug Reports

Bug reports can be submitted to the issue tracker at
Something went wrong with that request. Please try again.