statsmodels

statsmodels provides statistical modeling and econometrics tools in Python.

github.com/statsmodels/statsmodels
statsmodels homepage screenshot

About statsmodels

statsmodels is an open source Python package that complements scipy for statistical computations. It covers descriptive statistics and the estimation and inference of statistical models. Its main model families include linear and discrete regression, time series analysis, survival analysis, multivariate methods, and a wide range of statistical tests.

The package can be installed from PyPI as binaries or source, or through Anaconda with conda. Its sandbox folder holds code still in development and testing, which the project does not consider production ready. The source notes that pandas has a more recent version of the Stata .dta file reader.

Key features

  • Linear regression models, including ordinary, generalized, and weighted least squares
  • Discrete choice models such as Logit, Probit, and Poisson regression
  • Time series models, including seasonal ARIMA, VAR, and state space frameworks
  • Survival analysis with Cox proportional hazards and Kaplan-Meier estimation
  • Multivariate methods such as principal component and factor analysis
  • Statistical tests, diagnostics, and imputation with MICE
Best for: Python users who need statistical modeling, econometrics, time series, or survival analysis tools in open source code.
Good for
  • Covers many model families in one open source Python package
  • Available through PyPI and Anaconda
  • Documentation is published for both the stable release and the development version
Watch out for
  • Code in the sandbox folder is not considered production ready
  • The Stata .dta reader is older than the version in pandas

statsmodels at a glance

Type
Open-source project
Pricing
Not confirmed. Check the site
Open source
Yes · Source code
Language
English
Last checked
Oct 6, 2026 · Online when checked
Listed
Oct 5, 2026

statsmodels alternatives

Tools and sites you could use instead, ranked by how closely they match.

All 24 alternatives

Popular in Developer Tools

Well-known listings from the same topic.

All 423

statsmodels FAQ

How can I install statsmodels?
Binaries and source distributions are available from PyPI. Binaries can also be installed in Anaconda with the command conda install statsmodels.
Where is the documentation?
Documentation for the latest release is at statsmodels.org/stable, and documentation for the development version is at statsmodels.org/dev.
Is all of the code considered stable?
No. The sandbox folder contains code in various stages of development and testing that is not considered production ready.
Is something wrong or out of date?

Tell us and an editor will check it.

Own this website?

Claim the listing and suggest updates yourself. An editor checks every claim first.

Claim this listing