Skip to main content

Statistical computations and models for Python

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

statsmodels-0.9.0rc1.tar.gz (12.6 MB view details)

Uploaded Source

Built Distributions

statsmodels-0.9.0rc1-cp36-cp36m-win_amd64.whl (7.0 MB view details)

Uploaded CPython 3.6m Windows x86-64

statsmodels-0.9.0rc1-cp35-cp35m-win_amd64.whl (7.0 MB view details)

Uploaded CPython 3.5m Windows x86-64

statsmodels-0.9.0rc1-cp34-cp34m-win_amd64.whl (6.9 MB view details)

Uploaded CPython 3.4m Windows x86-64

statsmodels-0.9.0rc1-cp27-cp27m-win_amd64.whl (7.1 MB view details)

Uploaded CPython 2.7m Windows x86-64

File details

Details for the file statsmodels-0.9.0rc1.tar.gz.

File metadata

File hashes

Hashes for statsmodels-0.9.0rc1.tar.gz
Algorithm Hash digest
SHA256 70d23eec508561610092102baa887e4c50a69637f45f636fd26392aed746d23e
MD5 d449d39a0ae7daaa4ed32e617a04188a
BLAKE2b-256 92a8e92ef4e8805546d8547e89ff2ab8ca3859c52dabc14576ace1e11d4f831f

See more details on using hashes here.

File details

Details for the file statsmodels-0.9.0rc1-cp36-cp36m-win_amd64.whl.

File metadata

File hashes

Hashes for statsmodels-0.9.0rc1-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 af53873004191bffca77944c850b46de93f67947c785bb69e20fb4b3e1246d6a
MD5 1b497a1104f7447d0ddbad4db4ec8148
BLAKE2b-256 df6fdf6cf5faecd8082ee23916ff45d396dfee5a1f17aa275da7bab4f5c8926a

See more details on using hashes here.

File details

Details for the file statsmodels-0.9.0rc1-cp35-cp35m-win_amd64.whl.

File metadata

File hashes

Hashes for statsmodels-0.9.0rc1-cp35-cp35m-win_amd64.whl
Algorithm Hash digest
SHA256 7f23d1428baa446e66dda016f58ffcfd39ba7644f0e3c5f3a480ea4facc86754
MD5 07ae8f4ece564c96c5701398d7d78a49
BLAKE2b-256 5fd3c80f82dd087993385adb9510c4d23c00f52b23576be4a900f159d2afcec5

See more details on using hashes here.

File details

Details for the file statsmodels-0.9.0rc1-cp34-cp34m-win_amd64.whl.

File metadata

File hashes

Hashes for statsmodels-0.9.0rc1-cp34-cp34m-win_amd64.whl
Algorithm Hash digest
SHA256 edc10f3011952cde91ebe82e524c44fac8f2a4ce95db4def323ff2561792f7b3
MD5 adaa5551174448f3cb2eb8587383b9d8
BLAKE2b-256 e3328a7fd2598dcf8d8ec6bb3eb73984cbed138c54afd54ab49ebe429ae0963a

See more details on using hashes here.

File details

Details for the file statsmodels-0.9.0rc1-cp27-cp27m-win_amd64.whl.

File metadata

File hashes

Hashes for statsmodels-0.9.0rc1-cp27-cp27m-win_amd64.whl
Algorithm Hash digest
SHA256 d498ce003470932609d61ba75782c3a0753b4c7d29e2f6623ae49cbe548f98f3
MD5 f02f1dac203cd7144b4543dfce31c42d
BLAKE2b-256 3c05d7843dfc4bf514b642c9d9713dd9c0115b9595752d3c35a5c51ad17ca3dc

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page