Skip to main content

Statistical computations and models for Python

Project description

PyPI Version Conda Version License Azure CI Build Status Codecov Coverage 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/

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 model, 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 main 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.13.0.tar.gz (17.8 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.13.0-cp39-none-win_amd64.whl (9.4 MB view details)

Uploaded CPython 3.9Windows x86-64

statsmodels-0.13.0-cp39-none-win32.whl (8.9 MB view details)

Uploaded CPython 3.9Windows x86

statsmodels-0.13.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (9.9 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64

statsmodels-0.13.0-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl (9.9 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ i686manylinux: glibc 2.5+ i686

statsmodels-0.13.0-cp39-cp39-macosx_10_15_x86_64.whl (9.6 MB view details)

Uploaded CPython 3.9macOS 10.15+ x86-64

statsmodels-0.13.0-cp38-none-win_amd64.whl (9.4 MB view details)

Uploaded CPython 3.8Windows x86-64

statsmodels-0.13.0-cp38-none-win32.whl (8.9 MB view details)

Uploaded CPython 3.8Windows x86

statsmodels-0.13.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (9.9 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.17+ x86-64

statsmodels-0.13.0-cp38-cp38-macosx_10_15_x86_64.whl (9.5 MB view details)

Uploaded CPython 3.8macOS 10.15+ x86-64

statsmodels-0.13.0-cp37-none-win_amd64.whl (9.4 MB view details)

Uploaded CPython 3.7Windows x86-64

statsmodels-0.13.0-cp37-none-win32.whl (8.8 MB view details)

Uploaded CPython 3.7Windows x86

statsmodels-0.13.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (9.8 MB view details)

Uploaded CPython 3.7mmanylinux: glibc 2.17+ x86-64

statsmodels-0.13.0-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl (9.8 MB view details)

Uploaded CPython 3.7mmanylinux: glibc 2.17+ i686manylinux: glibc 2.5+ i686

statsmodels-0.13.0-cp37-cp37m-macosx_10_15_x86_64.whl (9.5 MB view details)

Uploaded CPython 3.7mmacOS 10.15+ x86-64

File details

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

File metadata

  • Download URL: statsmodels-0.13.0.tar.gz
  • Upload date:
  • Size: 17.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.0 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.8.11

File hashes

Hashes for statsmodels-0.13.0.tar.gz
Algorithm Hash digest
SHA256 f2efc02011b7240a9e851acd76ab81150a07d35c97021cb0517887539a328f8a
MD5 914005bd636aaaf2110d3d236aaf6ccb
BLAKE2b-256 9e5e4a2ade283411d1f46d6f8dd5fe951b9152062d55a20750cd5d4b556322bf

See more details on using hashes here.

File details

Details for the file statsmodels-0.13.0-cp39-none-win_amd64.whl.

File metadata

  • Download URL: statsmodels-0.13.0-cp39-none-win_amd64.whl
  • Upload date:
  • Size: 9.4 MB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.0 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.8.11

File hashes

Hashes for statsmodels-0.13.0-cp39-none-win_amd64.whl
Algorithm Hash digest
SHA256 9fd7fed6e6f810bf0097737af9233c69019e6ef17f1ef469a0cb4c4ea451e8b2
MD5 629e456fddba30b89c8006d3454b360c
BLAKE2b-256 870f50dc46f7762981145a2285de8aa86cdeebced96a92b5dbeae76685db55c4

See more details on using hashes here.

File details

Details for the file statsmodels-0.13.0-cp39-none-win32.whl.

File metadata

  • Download URL: statsmodels-0.13.0-cp39-none-win32.whl
  • Upload date:
  • Size: 8.9 MB
  • Tags: CPython 3.9, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.7

File hashes

Hashes for statsmodels-0.13.0-cp39-none-win32.whl
Algorithm Hash digest
SHA256 0cd0448d1f75048b74fc6ff80f0bc912512beba1cc2ebc77e71b3ffbacc3fdba
MD5 9de65caafec01eb1d20a365e2473bc54
BLAKE2b-256 4219fb5af926fe95ed2e31535fafc3883e7024b756480d5ced8f66ae872ba7ee

See more details on using hashes here.

File details

Details for the file statsmodels-0.13.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for statsmodels-0.13.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b29ab5b4f5f182afbf8c6e3889cfcd438887fdb59e2d5452d99c7154e8af3926
MD5 ad767722a58b885c29bc8eb519b047b5
BLAKE2b-256 35c82ab156d377e8dac8fb0b5848b7aa5e2419742b0c9510ad857c86574b641b

See more details on using hashes here.

File details

Details for the file statsmodels-0.13.0-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl.

File metadata

File hashes

Hashes for statsmodels-0.13.0-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 2643cf99271c1dc9d61e6badb5d1f670e7bb2d0bc6aafd731b0e348a3aa78f63
MD5 8f04f13f698eda5faa4eeb0918d68098
BLAKE2b-256 439e7b5c653d71d01fbdde385d632409d3b43a453e26acfe8365466611236b3a

See more details on using hashes here.

File details

Details for the file statsmodels-0.13.0-cp39-cp39-macosx_10_15_x86_64.whl.

File metadata

  • Download URL: statsmodels-0.13.0-cp39-cp39-macosx_10_15_x86_64.whl
  • Upload date:
  • Size: 9.6 MB
  • Tags: CPython 3.9, macOS 10.15+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.0 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.8.11

File hashes

Hashes for statsmodels-0.13.0-cp39-cp39-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 ea512ccd29f61c8bfdf8b8ba18bfda179371922f7f9f4c0bb0b8e694944271b0
MD5 622ba3cb1540472d8de592482646f723
BLAKE2b-256 21ba7aebb623d5cb94249c7742c06282d2ee878c1fa3872a55381f27b78c0700

See more details on using hashes here.

File details

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

File metadata

  • Download URL: statsmodels-0.13.0-cp38-none-win_amd64.whl
  • Upload date:
  • Size: 9.4 MB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.7

File hashes

Hashes for statsmodels-0.13.0-cp38-none-win_amd64.whl
Algorithm Hash digest
SHA256 5de8c18e8cc64f1e582fdbce1a385c84dc0c60a717a2d54fec9407a6585e42ea
MD5 950a51b584c82e102598683c69950637
BLAKE2b-256 7b8309e443fd8f6f2e51002b38374387a7bdf31f0db336b1d8141a611e9ac260

See more details on using hashes here.

File details

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

File metadata

  • Download URL: statsmodels-0.13.0-cp38-none-win32.whl
  • Upload date:
  • Size: 8.9 MB
  • Tags: CPython 3.8, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.7

File hashes

Hashes for statsmodels-0.13.0-cp38-none-win32.whl
Algorithm Hash digest
SHA256 73cd86493329dabf2961db48f64ecf9fe7bb019521eca7640c561c805eb22eeb
MD5 b6f009fcc5982dc06eb814480398a804
BLAKE2b-256 3d6dfd6196a90b19aa87860abce05d22a99947ea8248efa1f54450cc6ac94b1b

See more details on using hashes here.

File details

Details for the file statsmodels-0.13.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for statsmodels-0.13.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 379b0116bc134a53e13d0fa0d12c7a06acca85c45502a2907d23c516e8252228
MD5 e54c4e52d6e04dce6c7ef9a90607a01d
BLAKE2b-256 cbfb14a33b737525468a0cd7fe085802d2ecfd4c2757cbe02097f9104d949d22

See more details on using hashes here.

File details

Details for the file statsmodels-0.13.0-cp38-cp38-macosx_10_15_x86_64.whl.

File metadata

  • Download URL: statsmodels-0.13.0-cp38-cp38-macosx_10_15_x86_64.whl
  • Upload date:
  • Size: 9.5 MB
  • Tags: CPython 3.8, macOS 10.15+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.0 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.8.11

File hashes

Hashes for statsmodels-0.13.0-cp38-cp38-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 823710d235f00b31785c845d595c14a9cae00d6f4dda9d4a916f1b0fec699397
MD5 6da6328ab5a7e957dd67fc76cd5759fc
BLAKE2b-256 69fe057158e7c04e51aaacd6f059499c9967f70cc0a72e890a3e06e9790d0426

See more details on using hashes here.

File details

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

File metadata

  • Download URL: statsmodels-0.13.0-cp37-none-win_amd64.whl
  • Upload date:
  • Size: 9.4 MB
  • Tags: CPython 3.7, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.7

File hashes

Hashes for statsmodels-0.13.0-cp37-none-win_amd64.whl
Algorithm Hash digest
SHA256 62e26636be704ac6601dea7ce44c5315a2f3a41862fc0ae6ee09b891098a8bab
MD5 dc0e744b512d6b2efbdbb9776a4fd033
BLAKE2b-256 298ef3b0c7f36a66fbd6cb0f383cf6feba9000a6ab7015f8353f84547d3d1d27

See more details on using hashes here.

File details

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

File metadata

  • Download URL: statsmodels-0.13.0-cp37-none-win32.whl
  • Upload date:
  • Size: 8.8 MB
  • Tags: CPython 3.7, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.7

File hashes

Hashes for statsmodels-0.13.0-cp37-none-win32.whl
Algorithm Hash digest
SHA256 b477063321088a92ff1e885f92d7f19b007026263d1af8779ba5c2a5d1b8ca3e
MD5 14f61c464c7ac36d312164007a3ab1cb
BLAKE2b-256 b8a72d77cd3ee5c57dfa0bff6a900ea24cb144865a3024042959d10e6045037a

See more details on using hashes here.

File details

Details for the file statsmodels-0.13.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for statsmodels-0.13.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 4ac2fe813c7e2cdd7f1b3a7e53494c70939c06970d475f11c5a1faae91efac48
MD5 1e91f608b3ac349c55fb6bd60a4214a6
BLAKE2b-256 cfebaf556d8aba814662d8b87568063d5a35a8f48459384c4646bf4133e7500e

See more details on using hashes here.

File details

Details for the file statsmodels-0.13.0-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl.

File metadata

File hashes

Hashes for statsmodels-0.13.0-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 3caf03a024987bb19ec198bb1bb67ab89bc8195e959a039e6f86050440085b1a
MD5 fd38a7eaa93cc056f6aad30cfd721fb2
BLAKE2b-256 79a674be37750c6e0445cd40a18ce65540015ebd8c0d01dedf47fe9e28a6dbd2

See more details on using hashes here.

File details

Details for the file statsmodels-0.13.0-cp37-cp37m-macosx_10_15_x86_64.whl.

File metadata

  • Download URL: statsmodels-0.13.0-cp37-cp37m-macosx_10_15_x86_64.whl
  • Upload date:
  • Size: 9.5 MB
  • Tags: CPython 3.7m, macOS 10.15+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.0 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.8.11

File hashes

Hashes for statsmodels-0.13.0-cp37-cp37m-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 905bfcedcada6e854f36b70e16e8982e0905268d0317d6a2309f0bf61f602483
MD5 b74c250e0e40dc2a660e12434c1a7d05
BLAKE2b-256 b6fee74a9c13fba2115ffaf67e8f754a433b34f864db05f8fe55934960db804b

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