Skip to main content

Statistical computations and models for Python

Project description

PyPI Version Conda Version License Travis Build Status Azure CI Build Status Appveyor Build Status Coveralls Coverage PyPI downloads Conda downloads

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

https://www.statsmodels.org/stable/

The documentation for the development version is at

https://www.statsmodels.org/dev/

Recent improvements are highlighted in the release notes

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

Backups of documentation are available at https://statsmodels.github.io/stable/ and https://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 development 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

https://pypi.org/project/statsmodels/

Binaries can be installed in Anaconda

conda install statsmodels

Installing from sources

See INSTALL.txt for requirements or see the documentation

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

Contributing

Contributions in any form are welcome, including:

  • Documentation improvements

  • Additional tests

  • New features to existing models

  • New models

https://www.statsmodels.org/stable/dev/test_notes

for instructions on installing statsmodels in editable mode.

License

Modified BSD (3-clause)

Discussion and Development

Discussions take place on the mailing list

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

and in the issue tracker. 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.12.0.tar.gz (17.5 MB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

statsmodels-0.12.0-cp38-none-win_amd64.whl (9.2 MB view details)

Uploaded CPython 3.8Windows x86-64

statsmodels-0.12.0-cp38-none-win32.whl (8.6 MB view details)

Uploaded CPython 3.8Windows x86

statsmodels-0.12.0-cp38-cp38-manylinux1_x86_64.whl (9.4 MB view details)

Uploaded CPython 3.8

statsmodels-0.12.0-cp38-cp38-manylinux1_i686.whl (9.3 MB view details)

Uploaded CPython 3.8

statsmodels-0.12.0-cp38-cp38-macosx_10_13_x86_64.whl (9.6 MB view details)

Uploaded CPython 3.8macOS 10.13+ x86-64

statsmodels-0.12.0-cp37-none-win_amd64.whl (9.1 MB view details)

Uploaded CPython 3.7Windows x86-64

statsmodels-0.12.0-cp37-none-win32.whl (8.6 MB view details)

Uploaded CPython 3.7Windows x86

statsmodels-0.12.0-cp37-cp37m-manylinux1_x86_64.whl (9.5 MB view details)

Uploaded CPython 3.7m

statsmodels-0.12.0-cp37-cp37m-manylinux1_i686.whl (9.3 MB view details)

Uploaded CPython 3.7m

statsmodels-0.12.0-cp37-cp37m-macosx_10_13_x86_64.whl (9.6 MB view details)

Uploaded CPython 3.7mmacOS 10.13+ x86-64

statsmodels-0.12.0-cp36-none-win_amd64.whl (9.1 MB view details)

Uploaded CPython 3.6Windows x86-64

statsmodels-0.12.0-cp36-none-win32.whl (8.6 MB view details)

Uploaded CPython 3.6Windows x86

statsmodels-0.12.0-cp36-cp36m-manylinux1_x86_64.whl (9.5 MB view details)

Uploaded CPython 3.6m

statsmodels-0.12.0-cp36-cp36m-manylinux1_i686.whl (9.3 MB view details)

Uploaded CPython 3.6m

statsmodels-0.12.0-cp36-cp36m-macosx_10_13_x86_64.whl (9.6 MB view details)

Uploaded CPython 3.6mmacOS 10.13+ x86-64

File details

Details for the file statsmodels-0.12.0.tar.gz.

File metadata

  • Download URL: statsmodels-0.12.0.tar.gz
  • Upload date:
  • Size: 17.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0.post20200814 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.7

File hashes

Hashes for statsmodels-0.12.0.tar.gz
Algorithm Hash digest
SHA256 5c7d6707ad3112b67f564abaf1845d3c02ecc7174c2d990d539f45c37e98ad35
MD5 dd831ea2a501202eec2ca1d8f389da40
BLAKE2b-256 cc400c30656c6922041e1623c7d5c4fd4345592a80ca050f156eb724a9be0b06

See more details on using hashes here.

File details

Details for the file statsmodels-0.12.0-cp38-none-win_amd64.whl.

File metadata

  • Download URL: statsmodels-0.12.0-cp38-none-win_amd64.whl
  • Upload date:
  • Size: 9.2 MB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0.post20200814 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.7

File hashes

Hashes for statsmodels-0.12.0-cp38-none-win_amd64.whl
Algorithm Hash digest
SHA256 8cf730e37c5f21d9dabfb9af144fb9654d1211ec88eb6aa771ed96d814f7398d
MD5 41a600d88be5c1adaaae1e449c7ecc2d
BLAKE2b-256 3722959fdc710b6b384ad21a876130000557163978880dc50e16ba5d4ce35c18

See more details on using hashes here.

File details

Details for the file statsmodels-0.12.0-cp38-none-win32.whl.

File metadata

  • Download URL: statsmodels-0.12.0-cp38-none-win32.whl
  • Upload date:
  • Size: 8.6 MB
  • Tags: CPython 3.8, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0.post20200814 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.7

File hashes

Hashes for statsmodels-0.12.0-cp38-none-win32.whl
Algorithm Hash digest
SHA256 5d93e7650632ffb05bd407248a673cc8b4a5dfc47bf6def4066c502a331fb5f4
MD5 31d4699b6d752ccb8feac9ba2a8299f1
BLAKE2b-256 f9cd47390814159b1decbc91531c0e9c3d90acacbbc5815af1c9b90f1f9c28f3

See more details on using hashes here.

File details

Details for the file statsmodels-0.12.0-cp38-cp38-manylinux1_x86_64.whl.

File metadata

  • Download URL: statsmodels-0.12.0-cp38-cp38-manylinux1_x86_64.whl
  • Upload date:
  • Size: 9.4 MB
  • Tags: CPython 3.8
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0.post20200814 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.7

File hashes

Hashes for statsmodels-0.12.0-cp38-cp38-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 9e9845db4fcd06272da5db95c75a2e30366d3116260a6e559881a1c9d9bccfba
MD5 6a8e8d2f2121cdfbe0bc882ad859a534
BLAKE2b-256 d697d77cc2db06ab28f207269c2b6d3958c54cb131026f4aa92a49d76af31335

See more details on using hashes here.

File details

Details for the file statsmodels-0.12.0-cp38-cp38-manylinux1_i686.whl.

File metadata

  • Download URL: statsmodels-0.12.0-cp38-cp38-manylinux1_i686.whl
  • Upload date:
  • Size: 9.3 MB
  • Tags: CPython 3.8
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0.post20200814 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.7

File hashes

Hashes for statsmodels-0.12.0-cp38-cp38-manylinux1_i686.whl
Algorithm Hash digest
SHA256 6ef6b8c26ea3ab45ed4f5dce3e79ea725ab8896c15ed6ac405f619e33fa321da
MD5 0408db20a352a8079d63eda49b22765c
BLAKE2b-256 5c10316a723525c5c4bdcbd8e50d8169492ba021dd57ad0a78220b01551a9f52

See more details on using hashes here.

File details

Details for the file statsmodels-0.12.0-cp38-cp38-macosx_10_13_x86_64.whl.

File metadata

  • Download URL: statsmodels-0.12.0-cp38-cp38-macosx_10_13_x86_64.whl
  • Upload date:
  • Size: 9.6 MB
  • Tags: CPython 3.8, macOS 10.13+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0.post20200814 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.7

File hashes

Hashes for statsmodels-0.12.0-cp38-cp38-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 8a555397609e01e7802393dedff19a8811a5fd0d2b177b88dd8a2e156824bbd3
MD5 14cd06dabb4962acf108374a5dac6752
BLAKE2b-256 4bb954fcd2460112a9c1f50987c29878ae7b300292770450e891e5cf14a4ed50

See more details on using hashes here.

File details

Details for the file statsmodels-0.12.0-cp37-none-win_amd64.whl.

File metadata

  • Download URL: statsmodels-0.12.0-cp37-none-win_amd64.whl
  • Upload date:
  • Size: 9.1 MB
  • Tags: CPython 3.7, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0.post20200814 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.7

File hashes

Hashes for statsmodels-0.12.0-cp37-none-win_amd64.whl
Algorithm Hash digest
SHA256 b4d549d8502b349e8e3bdd19ab424b1c5a5cd0b2e14e9aa2156e99d7396276a3
MD5 ba4acad00afc2dd950e4c280ca6d1de4
BLAKE2b-256 5ad1c63261adcd7bec4166e171c1a9444f65a1717578a4b352aa238a25d33946

See more details on using hashes here.

File details

Details for the file statsmodels-0.12.0-cp37-none-win32.whl.

File metadata

  • Download URL: statsmodels-0.12.0-cp37-none-win32.whl
  • Upload date:
  • Size: 8.6 MB
  • Tags: CPython 3.7, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0.post20200814 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.7

File hashes

Hashes for statsmodels-0.12.0-cp37-none-win32.whl
Algorithm Hash digest
SHA256 20e275f63e7e4c79133af444043a6ea95846b6165ecb21c7a4983fa7dbaf5396
MD5 6bd93ebb826c8b5a8f95b699d8bc36d7
BLAKE2b-256 7c1e3734a3d190dfcf31c9fd2f7dfa1ef46923f62b8a872750ad002ed6fcd5ea

See more details on using hashes here.

File details

Details for the file statsmodels-0.12.0-cp37-cp37m-manylinux1_x86_64.whl.

File metadata

  • Download URL: statsmodels-0.12.0-cp37-cp37m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 9.5 MB
  • Tags: CPython 3.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0.post20200814 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.7

File hashes

Hashes for statsmodels-0.12.0-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 9ada3ddf13e60a5728304e6ca176e6ad8ca83b80c85db593087d853c5c6d4a98
MD5 7f74dc82b496627718b49ed9d697cce7
BLAKE2b-256 ff68ca52fc6a114141f13dfaee340fc355e2825753f1cbe3702a13a5046e16de

See more details on using hashes here.

File details

Details for the file statsmodels-0.12.0-cp37-cp37m-manylinux1_i686.whl.

File metadata

  • Download URL: statsmodels-0.12.0-cp37-cp37m-manylinux1_i686.whl
  • Upload date:
  • Size: 9.3 MB
  • Tags: CPython 3.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0.post20200814 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.7

File hashes

Hashes for statsmodels-0.12.0-cp37-cp37m-manylinux1_i686.whl
Algorithm Hash digest
SHA256 6f795ba042f0f183e60d0177da4fb85ebad6fe90f1c0ce2c4ed20336253aacf2
MD5 0c9a60b46e7972e6ddd91d5061d94e7f
BLAKE2b-256 4af699d3bb21ac67f0d2d2e6265ce97d3ad53a977f3b3bb4dda918f50d785d2a

See more details on using hashes here.

File details

Details for the file statsmodels-0.12.0-cp37-cp37m-macosx_10_13_x86_64.whl.

File metadata

  • Download URL: statsmodels-0.12.0-cp37-cp37m-macosx_10_13_x86_64.whl
  • Upload date:
  • Size: 9.6 MB
  • Tags: CPython 3.7m, macOS 10.13+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0.post20200814 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.7

File hashes

Hashes for statsmodels-0.12.0-cp37-cp37m-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 6aa45c4182cd80926222fcff851850ff02778b16c0fb1381e04c1cf1cfbd4a8d
MD5 275f96f5c1bc76a459706cf859b15848
BLAKE2b-256 55141005548bc8de401f7aa4112d5a5d2044357d678240887f9b3eb1e99ade90

See more details on using hashes here.

File details

Details for the file statsmodels-0.12.0-cp36-none-win_amd64.whl.

File metadata

  • Download URL: statsmodels-0.12.0-cp36-none-win_amd64.whl
  • Upload date:
  • Size: 9.1 MB
  • Tags: CPython 3.6, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0.post20200814 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.7

File hashes

Hashes for statsmodels-0.12.0-cp36-none-win_amd64.whl
Algorithm Hash digest
SHA256 e2c513846ffeecf38f901005b06c596e9b115e7c631b43bb5354339de5ee8e95
MD5 9b912f868a57c975445dc63d2977e24f
BLAKE2b-256 52a00dcbf283b3e08d234a313bab9e7c51faadd55de5d2b7c328add6fa8de8f8

See more details on using hashes here.

File details

Details for the file statsmodels-0.12.0-cp36-none-win32.whl.

File metadata

  • Download URL: statsmodels-0.12.0-cp36-none-win32.whl
  • Upload date:
  • Size: 8.6 MB
  • Tags: CPython 3.6, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0.post20200814 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.7

File hashes

Hashes for statsmodels-0.12.0-cp36-none-win32.whl
Algorithm Hash digest
SHA256 63126117af7b402b500742df39b3e5fec2dc3c9084a71852f9c52ac8bfa4c035
MD5 f562b5b0a544acabe390f634e7329e26
BLAKE2b-256 7c7d82ec14a1ea3ef62944c0304cab760ed80d3d1d1033de74baaee36a45792f

See more details on using hashes here.

File details

Details for the file statsmodels-0.12.0-cp36-cp36m-manylinux1_x86_64.whl.

File metadata

  • Download URL: statsmodels-0.12.0-cp36-cp36m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 9.5 MB
  • Tags: CPython 3.6m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0.post20200814 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.7

File hashes

Hashes for statsmodels-0.12.0-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 cb317ab297b4196ac16d4ab671854f2e029916210ab6c93a642b7b94686327fc
MD5 67b5bc372373187f193eda266e41f3b9
BLAKE2b-256 00931b6882f92d94e491a3e3be101fc83934551eada261281980f3957246432f

See more details on using hashes here.

File details

Details for the file statsmodels-0.12.0-cp36-cp36m-manylinux1_i686.whl.

File metadata

  • Download URL: statsmodels-0.12.0-cp36-cp36m-manylinux1_i686.whl
  • Upload date:
  • Size: 9.3 MB
  • Tags: CPython 3.6m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0.post20200814 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.7

File hashes

Hashes for statsmodels-0.12.0-cp36-cp36m-manylinux1_i686.whl
Algorithm Hash digest
SHA256 abb266fb5273fea512a9dac2097e66cbd574d119d162f1c7eab392ae069ee640
MD5 7faef135e670f9140dd5e731ad4e2e3b
BLAKE2b-256 23b4a1f7ec8268f1770c98482508681aba40c643c31a8d8ab627b668264b75db

See more details on using hashes here.

File details

Details for the file statsmodels-0.12.0-cp36-cp36m-macosx_10_13_x86_64.whl.

File metadata

  • Download URL: statsmodels-0.12.0-cp36-cp36m-macosx_10_13_x86_64.whl
  • Upload date:
  • Size: 9.6 MB
  • Tags: CPython 3.6m, macOS 10.13+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0.post20200814 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.7

File hashes

Hashes for statsmodels-0.12.0-cp36-cp36m-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 c8eb0f602e92e59b480001d4f3edac96736f47130a0d4485245cfc168e0ab116
MD5 e0900801f198222acbdd9ee81ebe75f6
BLAKE2b-256 177a1c10bd49896486d243d5319dd08c0ce6c75220c614c0befe1f079453577e

See more details on using hashes here.

Supported by

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