Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Travis Build Status Appveyor Build Status Coveralls Coverage

About Statsmodels

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

Documentation

The documentation for the latest release is at

http://www.statsmodels.org/stable/

The documentation for the development version is at

http://www.statsmodels.org/dev/

Recent improvements are highlighted in the release notes

http://www.statsmodels.org/stable/release/version0.9.html

Backups of documentation are available at http://statsmodels.github.io/stable/ and http://statsmodels.github.io/dev/.

Main Features

  • Linear regression models:

    • Ordinary least squares

    • Generalized least squares

    • Weighted least squares

    • Least squares with autoregressive errors

    • Quantile regression

    • Recursive least squares

  • Mixed Linear Model with mixed effects and variance components

  • GLM: Generalized linear models with support for all of the one-parameter exponential family distributions

  • Bayesian Mixed GLM for Binomial and Poisson

  • GEE: Generalized Estimating Equations for one-way clustered or longitudinal data

  • Discrete models:

    • Logit and Probit

    • Multinomial logit (MNLogit)

    • Poisson and Generalized Poisson regression

    • Negative Binomial regression

    • Zero-Inflated Count models

  • RLM: Robust linear models with support for several M-estimators.

  • Time Series Analysis: models for time series analysis

    • Complete StateSpace modeling framework

      • Seasonal ARIMA and ARIMAX models

      • VARMA and VARMAX models

      • Dynamic Factor models

      • Unobserved Component models

    • Markov switching models (MSAR), also known as Hidden Markov Models (HMM)

    • Univariate time series analysis: AR, ARIMA

    • Vector autoregressive models, VAR and structural VAR

    • Vector error correction modle, VECM

    • exponential smoothing, Holt-Winters

    • Hypothesis tests for time series: unit root, cointegration and others

    • Descriptive statistics and process models for time series analysis

  • Survival analysis:

    • Proportional hazards regression (Cox models)

    • Survivor function estimation (Kaplan-Meier)

    • Cumulative incidence function estimation

  • Multivariate:

    • Principal Component Analysis with missing data

    • Factor Analysis with rotation

    • MANOVA

    • Canonical Correlation

  • Nonparametric statistics: Univariate and multivariate kernel density estimators

  • Datasets: Datasets used for examples and in testing

  • Statistics: a wide range of statistical tests

    • diagnostics and specification tests

    • goodness-of-fit and normality tests

    • functions for multiple testing

    • various additional statistical tests

  • Imputation with MICE, regression on order statistic and Gaussian imputation

  • Mediation analysis

  • Graphics includes plot functions for visual analysis of data and model results

  • I/O

    • Tools for reading Stata .dta files, but pandas has a more recent version

    • 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

    • Generalized method of moments (GMM) estimators

    • Kernel regression

    • Various extensions to scipy.stats.distributions

    • Panel data models

    • Information theoretic measures

How to get it

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

https://www.github.com/statsmodels/statsmodels

Source download of release tags are available on GitHub

https://github.com/statsmodels/statsmodels/tags

Binaries and source distributions are available from PyPi

http://pypi.python.org/pypi/statsmodels/

Binaries can be installed in Anaconda

conda install statsmodels

Installing from sources

See INSTALL.txt for requirements or see the documentation

http://statsmodels.github.io/dev/install.html

License

Modified BSD (3-clause)

Discussion and Development

Discussions take place on our mailing list.

http://groups.google.com/group/pystatsmodels

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

Bug Reports

Bug reports can be submitted to the issue tracker at

https://github.com/statsmodels/statsmodels/issues

Metadata

Release files for statsmodels 0.9.0rc1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for statsmodels 0.9.0rc1
File Size Uploaded Provenance Actions
statsmodels-0.9.0rc1.tar.gz 12.6 MB Without provenance Details for statsmodels-0.9.0rc1.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for statsmodels 0.9.0rc1
File Actions
statsmodels-0.9.0rc1-cp36-cp36m-win_amd64.whl CPython 3.6 CPython 3.6 pymalloc Windows x86-64 Details for statsmodels-0.9.0rc1-cp36-cp36m-win_amd64.whl
statsmodels-0.9.0rc1-cp35-cp35m-win_amd64.whl CPython 3.5 CPython 3.5 pymalloc Windows x86-64 Details for statsmodels-0.9.0rc1-cp35-cp35m-win_amd64.whl
statsmodels-0.9.0rc1-cp34-cp34m-win_amd64.whl CPython 3.4 CPython 3.4 pymalloc Windows x86-64 Details for statsmodels-0.9.0rc1-cp34-cp34m-win_amd64.whl
statsmodels-0.9.0rc1-cp27-cp27m-win_amd64.whl CPython 2.7 CPython 2.7 pymalloc Windows x86-64 Details for statsmodels-0.9.0rc1-cp27-cp27m-win_amd64.whl

Total release size: 40.6 MB

Release files / statsmodels-0.9.0rc1.tar.gz

Download URL statsmodels-0.9.0rc1.tar.gz
Size 12.6 MB
Tags Source
SHA-256 checksum
How to use checksums
70d23eec508561610092102baa887e4c50a69637f45f636fd26392aed746d23e
BLAKE2b-256 checksum
How to use checksums
92a8e92ef4e8805546d8547e89ff2ab8ca3859c52dabc14576ace1e11d4f831f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / statsmodels-0.9.0rc1-cp36-cp36m-win_amd64.whl

Download URL statsmodels-0.9.0rc1-cp36-cp36m-win_amd64.whl
Size 7.0 MB
Tags CPython 3.6 CPython 3.6 pymalloc Windows x86-64
SHA-256 checksum
How to use checksums
af53873004191bffca77944c850b46de93f67947c785bb69e20fb4b3e1246d6a
BLAKE2b-256 checksum
How to use checksums
df6fdf6cf5faecd8082ee23916ff45d396dfee5a1f17aa275da7bab4f5c8926a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / statsmodels-0.9.0rc1-cp35-cp35m-win_amd64.whl

Download URL statsmodels-0.9.0rc1-cp35-cp35m-win_amd64.whl
Size 7.0 MB
Tags CPython 3.5 CPython 3.5 pymalloc Windows x86-64
SHA-256 checksum
How to use checksums
7f23d1428baa446e66dda016f58ffcfd39ba7644f0e3c5f3a480ea4facc86754
BLAKE2b-256 checksum
How to use checksums
5fd3c80f82dd087993385adb9510c4d23c00f52b23576be4a900f159d2afcec5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / statsmodels-0.9.0rc1-cp34-cp34m-win_amd64.whl

Download URL statsmodels-0.9.0rc1-cp34-cp34m-win_amd64.whl
Size 6.9 MB
Tags CPython 3.4 CPython 3.4 pymalloc Windows x86-64
SHA-256 checksum
How to use checksums
edc10f3011952cde91ebe82e524c44fac8f2a4ce95db4def323ff2561792f7b3
BLAKE2b-256 checksum
How to use checksums
e3328a7fd2598dcf8d8ec6bb3eb73984cbed138c54afd54ab49ebe429ae0963a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / statsmodels-0.9.0rc1-cp27-cp27m-win_amd64.whl

Download URL statsmodels-0.9.0rc1-cp27-cp27m-win_amd64.whl
Size 7.1 MB
Tags CPython 2.7 CPython 2.7 pymalloc Windows x86-64
SHA-256 checksum
How to use checksums
d498ce003470932609d61ba75782c3a0753b4c7d29e2f6623ae49cbe548f98f3
BLAKE2b-256 checksum
How to use checksums
3c05d7843dfc4bf514b642c9d9713dd9c0115b9595752d3c35a5c51ad17ca3dc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for statsmodels 0.9.0rc1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.4.0rc2

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page