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.4.tar.gz (18.2 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.4-cp311-cp311-win_amd64.whl (9.0 MB view details)

Uploaded CPython 3.11Windows x86-64

statsmodels-0.13.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (9.9 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

statsmodels-0.13.4-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (9.6 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ ARM64

statsmodels-0.13.4-cp311-cp311-macosx_11_0_arm64.whl (9.2 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

statsmodels-0.13.4-cp311-cp311-macosx_10_9_x86_64.whl (9.7 MB view details)

Uploaded CPython 3.11macOS 10.9+ x86-64

statsmodels-0.13.4-cp310-cp310-win_amd64.whl (9.1 MB view details)

Uploaded CPython 3.10Windows x86-64

statsmodels-0.13.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (9.9 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

statsmodels-0.13.4-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (9.6 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ ARM64

statsmodels-0.13.4-cp310-cp310-macosx_11_0_arm64.whl (9.2 MB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

statsmodels-0.13.4-cp310-cp310-macosx_10_9_x86_64.whl (9.7 MB view details)

Uploaded CPython 3.10macOS 10.9+ x86-64

statsmodels-0.13.4-cp39-cp39-win_amd64.whl (9.2 MB view details)

Uploaded CPython 3.9Windows x86-64

statsmodels-0.13.4-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.4-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (9.6 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ ARM64

statsmodels-0.13.4-cp39-cp39-macosx_11_0_arm64.whl (9.2 MB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

statsmodels-0.13.4-cp39-cp39-macosx_10_9_x86_64.whl (9.7 MB view details)

Uploaded CPython 3.9macOS 10.9+ x86-64

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

Uploaded CPython 3.8Windows x86-64

statsmodels-0.13.4-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.4-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (9.6 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.17+ ARM64

statsmodels-0.13.4-cp38-cp38-macosx_11_0_arm64.whl (9.1 MB view details)

Uploaded CPython 3.8macOS 11.0+ ARM64

statsmodels-0.13.4-cp38-cp38-macosx_10_9_x86_64.whl (9.6 MB view details)

Uploaded CPython 3.8macOS 10.9+ x86-64

statsmodels-0.13.4-cp37-cp37m-win_amd64.whl (9.1 MB view details)

Uploaded CPython 3.7mWindows x86-64

statsmodels-0.13.4-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (9.9 MB view details)

Uploaded CPython 3.7mmanylinux: glibc 2.17+ x86-64

statsmodels-0.13.4-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (9.6 MB view details)

Uploaded CPython 3.7mmanylinux: glibc 2.17+ ARM64

statsmodels-0.13.4-cp37-cp37m-macosx_10_9_x86_64.whl (9.6 MB view details)

Uploaded CPython 3.7mmacOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: statsmodels-0.13.4.tar.gz
  • Upload date:
  • Size: 18.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for statsmodels-0.13.4.tar.gz
Algorithm Hash digest
SHA256 8ee5d1b69f64bc0e9379667455ee3585849d5e6bcd3f3e48e58ba6cadadfead5
MD5 228fe48a47ed9d0099e0758b6e9197c5
BLAKE2b-256 89ebfee5161d621a23c31b83928614a9f2ee520854688b6bb60fde361a289f94

See more details on using hashes here.

File details

Details for the file statsmodels-0.13.4-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for statsmodels-0.13.4-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 98b33318d3366eeb3631a9caf317cc667a36866c4b69d488ffa70dee9af37959
MD5 c7d94566d0d21183c3acac10c3003d4e
BLAKE2b-256 71558b03b8686f355d80f63dab709f680b5fbb8d630ec8d88edb0dbaa219effa

See more details on using hashes here.

File details

Details for the file statsmodels-0.13.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for statsmodels-0.13.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e0a92b3dd2bcd1bef6363c824421c8532f24d7f1a88f55f0d2bc99f6ad4ff2a2
MD5 6e05f45ffa52fdab7d6afee3a72ac760
BLAKE2b-256 c034f6aba327146ad367b4aafe3914765bc7de13f33ac224c6e3841c7b0094c1

See more details on using hashes here.

File details

Details for the file statsmodels-0.13.4-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for statsmodels-0.13.4-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 d42683f2a8e51b67bc286a5bf4a573613ef1d1d12d66925367695f36a8667589
MD5 a49d86c94b1e3841bff06b005c0d5fdd
BLAKE2b-256 ee3b68a11a7b2afc41a6b71d309749b737b89c7fe585946d4ec14639c3473be1

See more details on using hashes here.

File details

Details for the file statsmodels-0.13.4-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for statsmodels-0.13.4-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b5e37fd711f7436c92c9e24a6fc0cb9f22d87fc0d2ce0f3ee47c11d75983f28a
MD5 12a78f7b6aed380d1b2d8c904d9158ec
BLAKE2b-256 f957ba713c03f4d7fed3ef1a4a5c9055bf3dda9845933e8530b5cf39efa5bb02

See more details on using hashes here.

File details

Details for the file statsmodels-0.13.4-cp311-cp311-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for statsmodels-0.13.4-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 33dc53eda31ac4f0d06ab4b30d4877f8f09d417a1120f0b919b0258b95335f44
MD5 6388e9f61585af9d42291807c933118b
BLAKE2b-256 5805a55e329a537f7f191d8f98963bed5b56d54d9e881b2e88afe716fdc57a09

See more details on using hashes here.

File details

Details for the file statsmodels-0.13.4-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for statsmodels-0.13.4-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 aa1c157c7fae3f7be5daed308cb928bba320005de51cfb59681bec157a6fca99
MD5 cf48c7288b058f28d165a869ace17b99
BLAKE2b-256 23bcca931d2f889ab2060f8ca7330e5c1a8f1996a534a435c7f4feb09140f7e1

See more details on using hashes here.

File details

Details for the file statsmodels-0.13.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for statsmodels-0.13.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ef075faad0a4ca9972dca7e2f3ed5538923c97639aa2ef7dcc6bff2398e15a24
MD5 c8c8ec6813a88b365641f5bdf6b1ba5f
BLAKE2b-256 65a593b82c7d0deb15bae1dd26125f0ca3fcc9953509cfc5f5dab6bb5e32ef80

See more details on using hashes here.

File details

Details for the file statsmodels-0.13.4-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for statsmodels-0.13.4-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 57b4c90ccf776c6848aca94b7bd7e0d79f4b161baca179a8e2fbc727e2ff613b
MD5 d39bece2e8371e00686f21242b08f1f2
BLAKE2b-256 718f2f0d541a40d7aabb30bad817692df1dcac841622d6491404ce86305e2de0

See more details on using hashes here.

File details

Details for the file statsmodels-0.13.4-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for statsmodels-0.13.4-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e5d7b16cbfae069effeda91ba713f36300b2afcb1ccd0c6d2617771910d97e0f
MD5 b2e84beb7d9552d70b40b7238e44c291
BLAKE2b-256 83ac47eaef9914d081eaec25821628afec5cd4d99031826a529b64aa5bfa2672

See more details on using hashes here.

File details

Details for the file statsmodels-0.13.4-cp310-cp310-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for statsmodels-0.13.4-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 41b94ae84f1bf77a0dfadf88d153189735c96218bc72e2b8309bc74393f026bb
MD5 77c6c32bd238500323c4cbcd7c7bce75
BLAKE2b-256 f6c6a9373a8e86dbcb0f325b3e25e86d39c3c0e277f81032cd6eb1bccaa19607

See more details on using hashes here.

File details

Details for the file statsmodels-0.13.4-cp39-cp39-win_amd64.whl.

File metadata

File hashes

Hashes for statsmodels-0.13.4-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 7d50c9c9ecdf23e1b8339cfa839f689817467c4f4a4ae8561b655faa3dc53f5f
MD5 9c7cfd9365247a42db560a29bd8e89b3
BLAKE2b-256 19eae0fde5371d42d402a2cfb50ad42fc4c8fcb7f162fb62fc8b88cf09b11ef8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for statsmodels-0.13.4-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 719a0d175dae8466112d5847adc49e0f76adf4bb735b03ff2b73b97140712d09
MD5 952cfa53bc657ebbcc36b1f0d959e2cc
BLAKE2b-256 734fac3ad7eefa15b37656bb278f9ef1486096b8fae86c49b98d755c12f48baf

See more details on using hashes here.

File details

Details for the file statsmodels-0.13.4-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for statsmodels-0.13.4-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 7e3e379d3c6ecdcb5065541c36a1b2421f6a27a8c4cbeec488b917631a7d207a
MD5 03d242b1c12925b570ee593356633d67
BLAKE2b-256 75b15f4a2e36260b9a06b6554260e90eeb97134c15aef17f658f728f99d21f65

See more details on using hashes here.

File details

Details for the file statsmodels-0.13.4-cp39-cp39-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for statsmodels-0.13.4-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 606e5aa5ca33a5468c5065f4b9dfc249d7f499f262c0d84a514f4346fd97f049
MD5 b9b1fcfd6604b17a417712a7e2c11015
BLAKE2b-256 4a2952a66070503effb8ea41b0d5bba7cf60efd4e28af14c18f18e37b50ddf5c

See more details on using hashes here.

File details

Details for the file statsmodels-0.13.4-cp39-cp39-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for statsmodels-0.13.4-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 e44542d45d242c24eaf960e95e54cbc83cfeb07922e14c78f2771c4e81ffd6f7
MD5 191649dae82adc2f04577a0614292486
BLAKE2b-256 ca36df6f3a73783bea08cfcaf70d770cf4218640bb532fa72cc99832efeb3dac

See more details on using hashes here.

File details

Details for the file statsmodels-0.13.4-cp38-cp38-win_amd64.whl.

File metadata

File hashes

Hashes for statsmodels-0.13.4-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 b10e712dc51c814db2578530d3d64e982d265312636b520952db63c555b9b4e2
MD5 88f33d07ea5d0f41626b45bd2efe5bdf
BLAKE2b-256 2d28483feec0fbb6f1f5552e2f4f29d1635928b142849ac778927a6e4245cb85

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for statsmodels-0.13.4-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 9bdcd7938c0cadbf4be632407dbc6cf5d9ce3234cfe1c9a37e9cc61d717e6e27
MD5 02770e857a18f978292e80d236e943e9
BLAKE2b-256 744c9b4a74931844e5b07aefeb8675980824a031152293b6e4ef99a376669694

See more details on using hashes here.

File details

Details for the file statsmodels-0.13.4-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for statsmodels-0.13.4-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 be5916bd3d63370bf53711dea3f309e08d634c72859973a22384ade2a00e6675
MD5 8f73781051457e881a7f915b70dd5ddf
BLAKE2b-256 246f4762eb77d2f7743d543c0612418fa5f02a7c41a42c5e5bb5d4fe6fa67bed

See more details on using hashes here.

File details

Details for the file statsmodels-0.13.4-cp38-cp38-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for statsmodels-0.13.4-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e8be9d7e2d3c7b2dd8162022667e5352c96c3334087c6cb9e352f7dc310cca8e
MD5 a76f0311d4c0aa8ed1296a489add8037
BLAKE2b-256 2f8703b9227ffb7e1aa3cda932feb852ac8ced13689cfc860da8f97e48a7165f

See more details on using hashes here.

File details

Details for the file statsmodels-0.13.4-cp38-cp38-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for statsmodels-0.13.4-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 1818c0f366a50c873e56d8c18925c188c691e0c2cd80ea7cdcd2d3b71788290f
MD5 04c5d485477287d10a91966ad648e004
BLAKE2b-256 d08692fe733eeab88b0eb83096389be3abde7b82bbffcbcebcc5337042dc8f35

See more details on using hashes here.

File details

Details for the file statsmodels-0.13.4-cp37-cp37m-win_amd64.whl.

File metadata

File hashes

Hashes for statsmodels-0.13.4-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 00b41f3d2c2a563d95abc1b948cf54c910e8f4c1bc42696380344708ce6882d9
MD5 d44baf6a713de2e57a8c2ee35e463d8f
BLAKE2b-256 c8530b6d49575df00aaa9dd021e0fa4d72f34a3e00a0946bc0e6d86d008b4f7f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for statsmodels-0.13.4-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ecba51dda0583afcb8b179df380b3e9217bde405e24490d4124ac9b0cd1bf20d
MD5 d196de133a2a7d4b0b56f8f6e79e75d9
BLAKE2b-256 c5d4139b6196a53dc1862df9c41b6c5649c952bacaa39edc1e9f8c2a0c6fbac5

See more details on using hashes here.

File details

Details for the file statsmodels-0.13.4-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for statsmodels-0.13.4-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 91ec9ebfe4e74b33cc6b2007b3ee53d1fa7ceae90589fcd10de213bbebada2d7
MD5 df18e846f110d5b27bbbb90809bd30fb
BLAKE2b-256 e4a611b871672b8e270d8896cc45535cafea159903f0b29f4e4c4abf5502a180

See more details on using hashes here.

File details

Details for the file statsmodels-0.13.4-cp37-cp37m-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for statsmodels-0.13.4-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 80a5014be675ed2d5ebc0ef4ccbb7d3dba63bab2d0d4f780b51429d51f3aa2e6
MD5 fd738a32ca7caedb171776b6faae43e7
BLAKE2b-256 673b2c8c94a8732a744f0c45dcfb9e9fca4b2087d511695d533a3edae52d64a2

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