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.0rc0.tar.gz (17.4 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.0rc0-cp38-none-win_amd64.whl (9.1 MB view details)

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

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

Uploaded CPython 3.8

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

Uploaded CPython 3.8

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

Uploaded CPython 3.8macOS 10.13+ x86-64

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

Uploaded CPython 3.7Windows x86-64

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

Uploaded CPython 3.7Windows x86

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

Uploaded CPython 3.7m

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

Uploaded CPython 3.7m

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

Uploaded CPython 3.7mmacOS 10.13+ x86-64

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

Uploaded CPython 3.6Windows x86-64

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

Uploaded CPython 3.6Windows x86

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

Uploaded CPython 3.6m

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

Uploaded CPython 3.6m

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

Uploaded CPython 3.6mmacOS 10.13+ x86-64

File details

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

File metadata

  • Download URL: statsmodels-0.12.0rc0.tar.gz
  • Upload date:
  • Size: 17.4 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.2.0.post20200714 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.7.7

File hashes

Hashes for statsmodels-0.12.0rc0.tar.gz
Algorithm Hash digest
SHA256 ee498df4514ee090fc32b68cafd2440d14fa2834b2bd90b45dbfe8ff73c7f307
MD5 26e164cd3cd1f669243ef3f5b294fd68
BLAKE2b-256 ab06f7308bb6b325013ec9f125eba2658c38a521098ee7da4c3074a68dc6822b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: statsmodels-0.12.0rc0-cp38-none-win_amd64.whl
  • Upload date:
  • Size: 9.1 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.2.0.post20200714 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.7.7

File hashes

Hashes for statsmodels-0.12.0rc0-cp38-none-win_amd64.whl
Algorithm Hash digest
SHA256 d762d69ddbfe0ef01142962989c8258d4322a7258f7807786899b2f03a629a6e
MD5 8387ccdaeb989b332a21fed056e9355c
BLAKE2b-256 92ba568c9445abeedcbdb169ed82146ae74a8303ef8c32d3a9f1039a49dd770c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: statsmodels-0.12.0rc0-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.2.0.post20200714 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.7.7

File hashes

Hashes for statsmodels-0.12.0rc0-cp38-none-win32.whl
Algorithm Hash digest
SHA256 297f6517d7ac38a7724dcbe7421393c6122238102b27c2e4101d852002919eeb
MD5 7e32cf461e0c5a6fd958db965ba1a064
BLAKE2b-256 1a7709b2d4a7bb533c9752e15ce75be09b20af7ae20c023a441bbbf973840481

See more details on using hashes here.

File details

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

File metadata

  • Download URL: statsmodels-0.12.0rc0-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.2.0.post20200714 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.7.7

File hashes

Hashes for statsmodels-0.12.0rc0-cp38-cp38-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 0bd6436fc6c557d054c300e9e53484e44ef2caeed04a61d120db8b8f66096590
MD5 cd4ec7b53f98aab93e3bbda0dd0b5cb0
BLAKE2b-256 de6fb36e2dfba53f36091a9bfc3d59944fd986828e56d1c7e4eb1af989be48f1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: statsmodels-0.12.0rc0-cp38-cp38-manylinux1_i686.whl
  • Upload date:
  • Size: 9.2 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.2.0.post20200714 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.7.7

File hashes

Hashes for statsmodels-0.12.0rc0-cp38-cp38-manylinux1_i686.whl
Algorithm Hash digest
SHA256 c69bfa87bca6dfb97e3d9ae3e3b0d3b83281b86cd814e1a8f6588438cf3c1c06
MD5 bdf798341c3c1f30c2f6ec4f96a17f78
BLAKE2b-256 3c806423f25336d055415dae90908e6703130dabe7373ce5217db9cec11a2dc0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: statsmodels-0.12.0rc0-cp38-cp38-macosx_10_13_x86_64.whl
  • Upload date:
  • Size: 9.5 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.2.0.post20200714 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.7.7

File hashes

Hashes for statsmodels-0.12.0rc0-cp38-cp38-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 dfdc971ee9033b98e33328f19aacc7a094f5afbece645bc407655b4df753f88c
MD5 4c0437a49e0cbc22e700005d524fcdb3
BLAKE2b-256 cc1582ae9a814df3a3d8cee12a370dc175d5df5d7d55ba674a0822ca9f146066

See more details on using hashes here.

File details

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

File metadata

  • Download URL: statsmodels-0.12.0rc0-cp37-none-win_amd64.whl
  • Upload date:
  • Size: 9.0 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.2.0.post20200714 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.7.7

File hashes

Hashes for statsmodels-0.12.0rc0-cp37-none-win_amd64.whl
Algorithm Hash digest
SHA256 50e4cae6a72d41c64cceeb4d22fb461252bab59cfad00262bb768afca4a5ffd2
MD5 0d4107f8f974cfa1e3f615760d8e9361
BLAKE2b-256 6253be81985dfacdfa65a36b00e2b95c7edb6f5e8160d89e551e5af10650b1ab

See more details on using hashes here.

File details

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

File metadata

  • Download URL: statsmodels-0.12.0rc0-cp37-none-win32.whl
  • Upload date:
  • Size: 8.5 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.2.0.post20200714 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.7.7

File hashes

Hashes for statsmodels-0.12.0rc0-cp37-none-win32.whl
Algorithm Hash digest
SHA256 c2a3ca11cf383a0cdae8e3f04c0e245d7b361176eb58c9c1845912b8ba9f7685
MD5 51b1be22fc00c873852d084f7268d13b
BLAKE2b-256 66a757b739670c42f9314de6b07bbd68ef4bce7cab22a95ac9c06b8acbe5b6e7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: statsmodels-0.12.0rc0-cp37-cp37m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 9.4 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.2.0.post20200714 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.7.7

File hashes

Hashes for statsmodels-0.12.0rc0-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 5f4264a27819520c9e7183653e4d4f3f3c924c9ddb2ef278f42a56795fd5b23a
MD5 172674d1adfdc5eb29b74b7f7b35a73a
BLAKE2b-256 a08416b7b7ab10d3d2fd8d4b2e98356c8190925ee723bde5724b178c338a39a4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: statsmodels-0.12.0rc0-cp37-cp37m-manylinux1_i686.whl
  • Upload date:
  • Size: 9.2 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.2.0.post20200714 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.7.7

File hashes

Hashes for statsmodels-0.12.0rc0-cp37-cp37m-manylinux1_i686.whl
Algorithm Hash digest
SHA256 abce64ecceadb5af843c93a63c39c13f74f231a0bccc610dbb82e53a344e8cff
MD5 620bf0c62879d2a5ef81f3647067185d
BLAKE2b-256 0ab0b37356f4d4c49973786fac018147c1e94d9b38a7e2eda34e9be3a103c3ae

See more details on using hashes here.

File details

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

File metadata

  • Download URL: statsmodels-0.12.0rc0-cp37-cp37m-macosx_10_13_x86_64.whl
  • Upload date:
  • Size: 9.5 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.2.0.post20200714 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.7.7

File hashes

Hashes for statsmodels-0.12.0rc0-cp37-cp37m-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 5e0a8e12d5390150f8dffa7af4e6dab7c8fb324b8949b99f3923e9cee98f3e82
MD5 c84db1c7336513bbf01efca922ef6a82
BLAKE2b-256 001e651c3afc43fc5682f31b917afd297debabb40e493bd2aa4daad59bb5380e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: statsmodels-0.12.0rc0-cp36-none-win_amd64.whl
  • Upload date:
  • Size: 9.0 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.2.0.post20200714 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.7.7

File hashes

Hashes for statsmodels-0.12.0rc0-cp36-none-win_amd64.whl
Algorithm Hash digest
SHA256 3b8f64699864e0fcb459e210a88ccabf7523fc8ac8a6f8a197db753e4bd11b69
MD5 7de2b701f4317cda510b5faa7e9c19a4
BLAKE2b-256 d8f5b2aaa505b2e8f43668c0a067dd9ebf83032648f451b1bad7f769c4a1c085

See more details on using hashes here.

File details

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

File metadata

  • Download URL: statsmodels-0.12.0rc0-cp36-none-win32.whl
  • Upload date:
  • Size: 8.5 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.2.0.post20200714 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.7.7

File hashes

Hashes for statsmodels-0.12.0rc0-cp36-none-win32.whl
Algorithm Hash digest
SHA256 72dabc6513046224c13330f84689182b22aa7a76ba99713570198566f9a50b7e
MD5 fa68ec7ddee2476c666400a2515a5af1
BLAKE2b-256 6eaf44d9381c7fb19eae866d844a2dae1baea718f7d3a18677a94ecdb93c78be

See more details on using hashes here.

File details

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

File metadata

  • Download URL: statsmodels-0.12.0rc0-cp36-cp36m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 9.4 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.2.0.post20200714 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.7.7

File hashes

Hashes for statsmodels-0.12.0rc0-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 218043480347e05e7009b5e9d0dd09d77abf393b2fb727f265e8a146e2ebda87
MD5 1dbb582bf35090a5db8e4ea4dc9878f5
BLAKE2b-256 b4d9a845c6c072d7705ec8360ed037a2e271822d92ea7a34be86ca240112aa86

See more details on using hashes here.

File details

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

File metadata

  • Download URL: statsmodels-0.12.0rc0-cp36-cp36m-manylinux1_i686.whl
  • Upload date:
  • Size: 9.2 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.2.0.post20200714 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.7.7

File hashes

Hashes for statsmodels-0.12.0rc0-cp36-cp36m-manylinux1_i686.whl
Algorithm Hash digest
SHA256 6d9641091d152e4b21be716268ba37781f3e6a9b6c3a61ea9bd004aae7d71487
MD5 af553b90c1501da1b9b629b28e2d8bee
BLAKE2b-256 b8ede323f8e3bdef3d1706634a0f407c975fcf7d2508d66ad29d3baeff0ebd3d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: statsmodels-0.12.0rc0-cp36-cp36m-macosx_10_13_x86_64.whl
  • Upload date:
  • Size: 9.5 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.2.0.post20200714 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.7.7

File hashes

Hashes for statsmodels-0.12.0rc0-cp36-cp36m-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 e690c4987e79e5302131bb73fcaa01d882bbce2b05dbf7d8af39420be3a0c1de
MD5 be98f5527936b693b4f0b65aa1f628ff
BLAKE2b-256 fdd4500bf499f65501560b193cd3b4d4dca8e2a7965ac125d68636ebdce95b76

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